# 🦞 Claw Setup ### Cross-Platform AI Agent Deployment with FREE Qwen OAuth **Use Qwen's FREE tier (2,000 req/day) with ANY Claw platform!** ---

Designed by GLM 5

✨ Autonomously developed by GLM 5 Advanced Coding Model

⚠️ Disclaimer: Test in a test environment prior to using on any live system

---
## ⭐ Key Feature: Qwen OAuth Cross-Platform Import ``` ┌─────────────────────────────────────────────────────────────────┐ │ QWEN OAUTH CROSS-PLATFORM IMPORT │ ├─────────────────────────────────────────────────────────────────┤ │ │ │ 1. Get FREE Qwen OAuth (2,000 req/day) │ │ $ qwen │ │ $ /auth → Select "Qwen OAuth" → Browser login │ │ │ │ 2. Extract OAuth Token │ │ $ cat ~/.qwen/oauth-token.json | jq -r '.access_token' │ │ │ │ 3. Use with ANY Platform │ │ $ export OPENAI_API_KEY="$QWEN_TOKEN" │ │ $ export OPENAI_BASE_URL="https://api.qwen.ai/v1" │ │ $ export OPENAI_MODEL="qwen3-coder-plus" │ │ │ │ Then run: openclaw / nanobot / picoclaw / zeroclaw │ │ │ └─────────────────────────────────────────────────────────────────┘ ``` ## Platforms with Qwen OAuth Support | Platform | Qwen OAuth | Memory | Best For | |----------|------------|--------|----------| | **Qwen Code** | ✅ Native | ~200MB | Coding, FREE tier | | **OpenClaw** | ✅ Import | >1GB | Full-featured | | **NanoBot** | ✅ Import | ~100MB | Research, Python | | **PicoClaw** | ✅ Import | <10MB | Embedded | | **ZeroClaw** | ✅ Import | <5MB | Performance | | **NanoClaw** | ✅ Import | ~50MB | WhatsApp | ## Quick Start: FREE Qwen OAuth Import ### Step 1: Get Qwen OAuth (One-time) ```bash # Install Qwen Code npm install -g @qwen-code/qwen-code@latest # Authenticate (FREE) qwen /auth # Select "Qwen OAuth" → Browser login with qwen.ai # FREE: 2,000 requests/day, 60 req/min ``` ### Step 2: Import to Any Platform ```bash # Extract token export QWEN_TOKEN=$(cat ~/.qwen/oauth-token.json | jq -r '.access_token') # Configure for OpenAI-compatible platforms export OPENAI_API_KEY="$QWEN_TOKEN" export OPENAI_BASE_URL="https://api.qwen.ai/v1" export OPENAI_MODEL="qwen3-coder-plus" # Now use with any platform! openclaw # OpenClaw with FREE Qwen nanobot # NanoBot with FREE Qwen picoclaw # PicoClaw with FREE Qwen zeroclaw # ZeroClaw with FREE Qwen ``` ### Step 3: Automate with Script ```bash # Create import script cat > ~/import-qwen-oauth.sh << 'SCRIPT' #!/bin/bash export OPENAI_API_KEY=$(cat ~/.qwen/oauth-token.json | jq -r '.access_token') export OPENAI_BASE_URL="https://api.qwen.ai/v1" export OPENAI_MODEL="qwen3-coder-plus" echo "✅ Qwen OAuth imported. Run your platform now." SCRIPT chmod +x ~/import-qwen-oauth.sh # Usage source ~/import-qwen-oauth.sh && openclaw ``` ## Platform-Specific Setup ### OpenClaw + Qwen OAuth (FREE) ```bash git clone https://github.com/openclaw/openclaw.git cd openclaw && npm install # Import Qwen OAuth source ~/import-qwen-oauth.sh # Or create .env echo "OPENAI_API_KEY=$(cat ~/.qwen/oauth-token.json | jq -r '.access_token')" > .env echo "OPENAI_BASE_URL=https://api.qwen.ai/v1" >> .env echo "OPENAI_MODEL=qwen3-coder-plus" >> .env npm run start ``` ### NanoBot + Qwen OAuth (FREE) ```bash pip install nanobot-ai # Configure cat > ~/.nanobot/config.json << CONFIG { "providers": { "qwen": { "apiKey": "$(cat ~/.qwen/oauth-token.json | jq -r '.access_token')", "baseURL": "https://api.qwen.ai/v1" } }, "agents": { "defaults": { "model": "qwen/qwen3-coder-plus" } } } CONFIG nanobot gateway ``` ### ZeroClaw + Qwen OAuth (FREE) ```bash # Install wget https://github.com/zeroclaw-labs/zeroclaw/releases/latest/zeroclaw-linux-amd64 chmod +x zeroclaw-linux-amd64 && sudo mv zeroclaw-linux-amd64 /usr/local/bin/zeroclaw # Import Qwen OAuth export OPENAI_API_KEY=$(cat ~/.qwen/oauth-token.json | jq -r '.access_token') export OPENAI_MODEL="qwen3-coder-plus" zeroclaw gateway ``` ## Qwen API Endpoints | Endpoint | Type | Use Case | |----------|------|----------| | `https://api.qwen.ai/v1` | **OAuth (FREE)** | FREE 2K req/day | | `https://dashscope.aliyuncs.com/compatible-mode/v1` | API Key | Alibaba Cloud (China) | | `https://dashscope-intl.aliyuncs.com/compatible-mode/v1` | API Key | Alibaba Cloud (Intl) | | `https://api-inference.modelscope.cn/v1` | API Key | ModelScope | ## Qwen Models | Model | Context | Description | |-------|---------|-------------| | `qwen3-coder-plus` | 128K | **Recommended for coding** | | `qwen3-coder-next` | 128K | Latest features | | `qwen3.5-plus` | 128K | General purpose | ## Free Tier Limits | Metric | Limit | |--------|-------| | Requests/day | 2,000 | | Requests/minute | 60 | | Cost | **FREE** | ## Usage Examples ``` "Setup OpenClaw with FREE Qwen OAuth" "Import Qwen OAuth to NanoBot for free coding" "Configure ZeroClaw with Qwen3-Coder free tier" "Use my Qwen free tier with any Claw platform" ``` ## Troubleshooting **Token not found?** ```bash # Re-authenticate qwen && /auth # Select Qwen OAuth # Check location ls ~/.qwen/ ``` **Token expired?** ```bash # Tokens auto-refresh - just use qwen qwen -p "refresh" # Re-export source ~/import-qwen-oauth.sh ``` ---

Learn more about GLM 5 Advanced Coding Model