Partly. The Qwen Code CLI is free and open source, but the free model access that made it famous is gone: the project’s authentication guide says “the Qwen OAuth free tier was discontinued on 2026-04-15.” Today you bring a model, and you only pay $0 if that model is a trial quota, a free model on a router, or one running on your own hardware.
Qwen Code is the open-source AI coding agent from the Qwen team: it reads your repository, edits files and runs commands from your terminal, editor or desktop app, using whichever model provider you connect through /auth.
What’s free and what you pay
| Route | Cost | The cap | What you pay past it |
|---|---|---|---|
| Qwen Code CLI itself | $0, Apache 2.0 | None, but it needs a model | Whatever your model provider charges |
| Qwen OAuth free tier | Discontinued April 15, 2026 | Was 60 requests/minute and 1,000/day | Not available to new requests |
| Alibaba Cloud Model Studio new-user quota (Standard API Key) | $0 | Typically 1,000,000 tokens per model, 90 days, Singapore region only | Pay-as-you-go automatically, unless “Free Quota Only” is on |
| Alibaba Cloud Coding Plan Pro | $50/month | 6,000 requests per 5 hours, 45,000 per week, 90,000 per month | Wait for the window to reset |
| QwenCloud Token Plan (Personal) | From $8/month (limited-time $6) | 11,500 Credits a month on Lite | Credit packs, $15 for 20,000 Credits |
OpenRouter :free models |
$0 | 20 requests/minute, 50/day (1,000/day after $10 in credits) | No Qwen model is on the free list today |
| Local Qwen through Ollama | $0 | Your hardware: qwen3-coder:30b is a 19GB download |
Nothing |
What happened to the Qwen Code free tier
Until this spring, the default setup was Qwen OAuth: run qwen, sign in with a qwen.ai account in the browser, and code with no API key. Version 0.14.0 of the docs described it as “free, with a quota of 60 requests/minute and 1,000 requests/day.” That is the number most older guides still quote.

The current guide, checked on October 23, 2026 against npm release 0.26.0, is direct about the change. Qwen OAuth “is no longer a selectable dialog entry,” and “existing cached tokens may continue working briefly, but new requests will be rejected.” The docs point users to Alibaba Cloud Coding Plan, OpenRouter, Fireworks AI or another provider.
So if you install Qwen Code today and run /auth, you see four options, none of them free by default:
- QwenCloud: a Token Plan subscription or a pay-as-you-go Standard API Key.
- Alibaba ModelStudio: Coding Plan, Token Plan, or a Standard API Key.
- Third-party Providers: an API key for DeepSeek, Grok, MiniMax, Z.AI, Kimi, Idealab, ModelScope, OpenRouter or Requesty.
- Custom Provider: any OpenAI, Anthropic or Gemini compatible endpoint, including a local server.
The CLI is still free. The tokens are not.
The closest thing to a free trial: Model Studio’s new-user quota
The one official free allowance on the Qwen side is Alibaba Cloud Model Studio’s free quota for new users, last updated October 16, 2026. The terms:
- Per model, not per account. Each model “has its own independent free quota (typically 1,000,000 tokens),” and quota cannot move between models.
- 90 days. The quota “is valid for 90 days,” counted from activation, the model’s release, or your approval, whichever is later.
- Region-specific. Only models in the Singapore region with the International deployment scope qualify.
- First activation only. Re-registering does not grant more, and a root account shares one quota with its sub-users.
- It bills after. “After the free quota is exhausted, you are automatically billed on a pay-as-you-go basis.”
Two details matter for Qwen Code users. First, only a general pay-as-you-go key draws on this quota; the page says Coding Plan and Token Plan keys do not consume it. In Qwen Code that means /auth, then Alibaba ModelStudio, then Standard API Key. Second, turn on Free Quota Only in the console’s Model usage page before you start. With it on, requests fail with AllocationQuota.FreeTierOnly once the quota runs out, instead of quietly moving to paid usage.
A million tokens sounds large. An agent session that rereads files and tool output on every turn can spend a lot of it in a day, so treat it as a trial, not a free plan. QwenCloud’s Token Plan page lists no free credits for new users.
Where the paid plans start
Coding Plan. Alibaba Cloud’s Coding Plan page, updated October 11, 2026, lists one open plan: Pro at $50 a month, with up to 6,000 requests per five hours, 45,000 per week and 90,000 per month. Lite is closed to new subscriptions. The plan gives Qwen Code a dedicated endpoint and a sk-sp- key, and the Qwen Code docs list models such as qwen3.7-plus, qwen3-coder-plus, qwen3-coder-next, glm-5 and kimi-k2.5 behind it. The plan also lists Claude Code, Cursor and Cline as supported tools.
QwenCloud Token Plan. If $50 is too much, QwenCloud’s Token Plan is the cheapest subscription step. Personal Lite is $8 a month (a limited-time $6) for 11,500 Credits; Essential is $16 (limited-time $10) for 25,500; Standard is $25 (limited-time $18) for 45,000. The page says Token Plan “can be purchased and used only in the Singapore region.”
Pay-as-you-go. A Standard API Key on QwenCloud or Model Studio bills per token. That suits light use and gets expensive in long agent loops. Our piece on cheap models that cost more covers why per-token math misleads for agents.
How to use Qwen Code for free today
Three $0 routes work, each with a real limit.
1. Run a Qwen model locally with Ollama. This is the only route with no quota. Qwen Code’s model providers reference shows Ollama as an OpenAI-compatible provider at http://localhost:11434/v1 with a placeholder key. Pull a coder model first; on Ollama’s library, qwen3-coder:30b is 19GB with a 256K context window.
ollama pull qwen3-coder:30b
Then add it to ~/.qwen/settings.json:
{
"env": { "OLLAMA_API_KEY": "ollama" },
"modelProviders": {
"openai": [
{
"id": "qwen3-coder:30b",
"name": "Qwen3 Coder 30B (Ollama)",
"envKey": "OLLAMA_API_KEY",
"baseUrl": "http://localhost:11434/v1"
}
]
},
"security": { "auth": { "selectedType": "openai" } },
"model": { "name": "qwen3-coder:30b" }
}
Run qwen and it starts on the local model. The docs’ own example raises the request timeout to five minutes for local servers, which tells you what to expect: slower turns, and more retries than a hosted frontier model.
2. The Model Studio quota. Covered above: real Qwen models, hosted, at $0 for up to 90 days, with Free Quota Only switched on.
3. A free model on OpenRouter. OpenRouter is a built-in provider in /auth. Its rate limits page allows :free models 20 requests a minute and 50 a day, rising to 1,000 a day once you have bought at least $10 in credits. The catch for this article: on October 23, 2026, OpenRouter’s model list had no Qwen model with a :free variant. Every Qwen model there was paid. The free list held models from other labs, such as Gemma 4 and Nemotron 3, so you would be running Qwen Code on someone else’s model. At 50 requests a day, a single agent task can use the allowance.
If you want a free hosted agent rather than Qwen Code specifically, OpenCode lists models priced free “for a limited time”, and our free AI API key guide covers routes you can call from your own code. For a broader comparison of what each agent gives away, see is Claude Code free and is Codex free.
Where Sharkly fits
You already have coding agents. Sharkly turns them into a team: it runs the coding agents on your own Computers as assignable Agents, each Task in its own isolated worktree, with the result reported back on the Task for review.

Be clear about two limits. Sharkly does not make any model free, and the Sharkly pricing page says “Sharkly does not sell tokens.” And Qwen Code is not on Sharkly’s documented Runtime list today; the documented Runtimes include Claude Code, Codex and OpenCode. An OpenCode Agent on one of OpenCode’s free models costs nothing in tokens.
On pricing, Free covers organizations of up to 5 people, and Team is $7 per person per month billed yearly after that. “Guests, Agents, and Computers do not occupy seats.” Sharkly pricing explained has the details. If you run more than one coding agent, try Sharkly and keep each on the plan it already has.
If you're mapping which coding tools still offer a usable free path in 2026, Gemini CLI's June 18 pricing change is worth a look — the specifics are more nuanced than the initial announcements made them sound.
FAQ
Is Qwen Code free? The CLI is free and open source under Apache 2.0. Free model access is not: the Qwen OAuth free tier ended on April 15, 2026, so you now connect a paid plan, a trial quota, a free router model, or a local model.
Is Qwen Code still free with Qwen OAuth? No. The docs say new requests through Qwen OAuth “will be rejected,” and the option is gone from the /auth menu. Its old quota of 60 requests per minute and 1,000 per day no longer applies.
Is there a Qwen Code free trial? The closest is Alibaba Cloud Model Studio’s new-user quota: typically 1,000,000 tokens per model for 90 days, region-specific to Singapore, used through a Standard API Key. Turn on Free Quota Only or it bills automatically.
How do I use Qwen Code free with a local model? Install Ollama, pull a Qwen coder model such as qwen3-coder:30b, and point a modelProviders entry at http://localhost:11434/v1 with any placeholder key. It costs nothing but needs hardware that can hold a 19GB model.
Does OpenRouter have a free Qwen model for Qwen Code? Not on October 23, 2026. OpenRouter’s free models were all from other labs, limited to 50 requests a day until you buy $10 in credits.
What is the cheapest paid plan for Qwen Code? QwenCloud’s Token Plan Personal Lite at $8 a month (limited-time $6). Alibaba Cloud’s Coding Plan Pro is $50 a month with request-based limits.



