Use Qwen3 Coder with Claude Code
$0.9/Mtok inQwen3 Coder is the open-weights specialist for code — strong fill-in and repo comprehension at open-model prices, and Claude Code gives it a production-grade harness.
Facts
At a glance
Model
Qwen3 Coder
qwen/qwen3-coder
Price
$0.9 / M input · $2.7 / M output
Context window
256k tokens
Tool
Claude Code
Setup below — under two minutes
Quickstart
Set up Qwen3 Coder in Claude Code
- 1
Point Claude Code at CompanyFabric:
export ANTHROPIC_BASE_URL="https://api.companyfabric.com" export ANTHROPIC_API_KEY="$COMPANYFABRIC_API_KEY" - 2
Start a session on this model:
claude --model qwen/qwen3-coder - 3
Every turn's exact cost lands in your dashboard usage feed — set a per-key budget cap if the agent runs unattended.
Full tool guide: Use any model with Claude Code →
FAQ
Frequently asked questions
Do I need a Alibaba account to use Qwen3 Coder in Claude Code?
No — one CompanyFabric key covers Qwen3 Coder and every other model in the library. Billing is one prepaid balance with exact per-call metering; BYOK at 0% is available if you already have provider keys.
What does Qwen3 Coder cost in Claude Code?
$0.9 / M input · $2.7 / M output — the same metered price as any other route to the model. Set a per-key budget cap to bound what the tool can spend.
Can I switch models later without touching Claude Code again?
Yes — the endpoint stays the same; the model is a string. Any catalog id works in the same configuration, including cheaper tiers for bulk work.
Explore
Related setups
Use Gemini with Claude Code
Claude Code's agent loop with Gemini's million-token context: point the harness at a model that can hold your whole repo in one window. The messages translation layer makes non-Anthropic models a --model flag, not a different tool.
Use DeepSeek with Claude Code
The cheapest way to run long agent sessions: DeepSeek's commodity token prices under Claude Code's agent loop. Ideal for bulk refactors and test generation where volume dwarfs per-token quality differences.
Use Kimi with Claude Code
Kimi K3's tool-calling is tuned for agentic work, which makes it the strongest open-weights brain for Claude Code sessions — at a fraction of frontier pricing.
Use GPT-5.5 with Claude Code
Run OpenAI's flagship inside Claude Code for a second opinion on hard problems — same session, same tools, different reasoning style. Useful as a review pass over changes drafted by another model.
One key. Every model. Exact prices.
Run Qwen3 Coder in Claude Code with free starter credits. Free starter credits included — no subscription required.