Qwen Portal (OAuth Free Tier)

Alibaba's Qwen Portal provides free OAuth access to Qwen Coder and Vision models — 2,000 requests/day with no token limits. Device-code OAuth flow syncs with Qwen Code CLI login. The most generous free coding model provider.

Qwen Portal is Alibaba's free API gateway for the Qwen model family, specifically designed to power the Qwen Code CLI — an open-source agentic coding tool forked from Gemini CLI. What makes Qwen Portal exceptional is its free tier: 2,000 requests per day with no token limits and a 60 requests per minute rate limit. This is arguably the most generous free coding model offering available. The portal provides access to two model endpoints: 'coder-model' (backed by Qwen3-Coder, Alibaba's latest coding-optimized LLM) and 'vision-model' (backed by Qwen3-VL for multimodal tasks). The coder model supports thinking/reasoning mode, enabling step-by-step problem solving for complex coding challenges. Both models are served through Alibaba's cloud infrastructure with consistent availability. Authentication uses a device-code OAuth flow — the same mechanism used by GitHub CLI and similar tools. You log in through a browser, authorize the device, and the CLI/OpenClaw receives a token. This token is shared between Qwen Code CLI and OpenClaw, so logging in once grants access to both. No API key management required. Qwen3-Coder has emerged as a strong open-source coding model. The 480B MoE variant (with ~35B active parameters) demonstrates strong performance on SWE-Bench and coding benchmarks, competing with Claude Sonnet and GPT-4o on many tasks. While the portal-served model may use a different configuration than the full open-source release, it delivers competent coding assistance at zero cost. For OpenClaw, Qwen Portal is a compelling free option for coding-focused workflows, heartbeat operations, and as a fallback provider when primary API budgets are tight. The 2,000 daily request limit is generous enough for moderate daily use. The main caveat is that, like other free tiers, the data may be used for training — avoid sending sensitive code or proprietary information.

Tags: free-tier, oauth, coding, vision, chinese-ai, alibaba, qwen3-coder, generous-limits

Use Cases

  • Free coding assistant through OpenClaw — 2,000 requests/day at zero cost
  • Secondary/fallback provider for when primary API budget is exhausted
  • Screenshot and UI analysis with the free vision model
  • Rapid prototyping and experimentation without worrying about API costs
  • Learning and education environments where cost is a barrier
  • OpenClaw cron jobs and background tasks with reasonable daily limits

Tips

  • Install Qwen Code CLI first (npx @qwen-code/qwen-code@latest) — OpenClaw can reuse its OAuth credentials.
  • Use as a free fallback provider alongside a paid primary provider. Switch with /model qwen-portal/coder-model.
  • Reserve the 2,000 daily requests for actual coding work. Use other free providers (GLM Flash, Synthetic) for heartbeats.
  • The vision model is useful for screenshot-based debugging and UI feedback at zero cost.
  • For Qwen models with API key access (not OAuth), use DashScope (Alibaba Cloud) instead — separate provider.
  • Consider the privacy tradeoff: free tier likely trains on inputs. Use paid providers for proprietary work.

Known Issues & Gotchas

  • Free tier likely means your data is used for training. Don't send sensitive or proprietary code.
  • OAuth device-code flow requires browser access during initial setup — can't be done headless.
  • Model quality may degrade during peak usage — Qwen notes the model 'may fallback to maintain service quality.'
  • 2,000 requests/day sounds generous but intensive agentic workflows can burn through it (each tool call = 1 request).
  • The 'coder-model' and 'vision-model' endpoints abstract the underlying model. You don't control which exact model version is served.
  • Rate limit is 60 requests/minute — can be hit during rapid multi-step coding sessions.
  • Token refresh and OAuth handling needs to be managed. Sessions may expire and require re-login.

Alternatives

  • GitHub Copilot
  • Gemini CLI (Free Tier)
  • Synthetic (Free GLM/Kimi)
  • DashScope (Alibaba Cloud)

Community Feedback

2,000 free requests per day with no token limits is incredible. It's not Claude Code quality but for things that don't need a frontier model, it's perfect.

— Reddit r/Qwen_AI

Qwen Code CLI is basically Gemini CLI with the Qwen Coder model. Generous free tier but be aware — they might be training on your data, similar to Gemini CLI's practices.

— AI Engineer Guide

It's not Claude Code, but for free? Qwen Coder through the portal handles basic coding tasks surprisingly well. Great as a secondary provider.

— Reddit r/ClaudeCode

Configuration Examples

Qwen Portal as free coding provider

providers:
  qwen-portal:
    # Uses OAuth credentials from Qwen Code CLI
    model: qwen-portal/coder-model
    # 2,000 free requests/day, no token limits

Qwen Portal as fallback to paid provider

providers:
  anthropic:
    apiKey: sk-ant-xxxxx
    model: anthropic/claude-sonnet-4-6
  qwen-portal:
    model: qwen-portal/coder-model
    # Free fallback: /model qwen-portal/coder-model