3 Commits

  • feat: add auto token refresh for ALL platforms
    New qwen-token-refresh.sh script provides automatic token refresh
    for OpenClaw, NanoBot, PicoClaw, NanoClaw (ZeroClaw has native support).
    
    Features:
    - Check token status and expiry
    - Auto-refresh when < 5 min remaining
    - Background daemon mode (5 min intervals)
    - Systemd service installation
    - Updates both oauth_creds.json and .env file
    
    Usage:
      ./scripts/qwen-token-refresh.sh --status   # Check status
      ./scripts/qwen-token-refresh.sh            # Refresh if needed
      ./scripts/qwen-token-refresh.sh --daemon   # Background daemon
      ./scripts/qwen-token-refresh.sh --install  # Systemd service
    
    Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
  • feat: use correct DashScope API endpoint for Qwen OAuth
    Based on ZeroClaw implementation study:
    - Change API endpoint from api.qwen.ai to dashscope.aliyuncs.com/compatible-mode/v1
    - Update credentials file reference to oauth_creds.json
    - Add ZeroClaw native qwen-oauth provider documentation
    - Add API endpoints and models reference table
    - Update import script with correct endpoint and platform support
    - Add PicoClaw and NanoClaw platform configurations
    
    Key findings from ZeroClaw binary:
    - Native qwen-oauth provider with auto token refresh
    - Uses DashScope OpenAI-compatible endpoint
    - Reads ~/.qwen/oauth_creds.json directly
    
    Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
  • feat: Add Qwen OAuth cross-platform import for ALL Claw platforms
    Key Feature: Use FREE Qwen tier (2,000 req/day) with ANY platform!
    
    How it works:
    1. Get Qwen OAuth: qwen && /auth (FREE)
    2. Extract token from ~/.qwen/
    3. Configure any platform with token
    
    Supported platforms:
    - OpenClaw 
    - NanoBot 
    - PicoClaw 
    - ZeroClaw 
    - NanoClaw 
    
    Configuration:
      export OPENAI_API_KEY="$QWEN_TOKEN"
      export OPENAI_BASE_URL="https://api.qwen.ai/v1"
      export OPENAI_MODEL="qwen3-coder-plus"
    
    Added:
    - import-qwen-oauth.sh script for automation
    - Cross-platform configuration examples
    - Qwen API endpoints reference
    - Troubleshooting guide
    
    Free tier: 2,000 requests/day, 60 requests/minute
    
    Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>