Qwen Code
Terminal coding agent adapted from Gemini CLI for Qwen models.
Overview
Qwen Code is an open-source command-line agent optimized for Qwen3-Coder models, forked from Gemini CLI. It works with any OpenAI-compatible API key, including DashScope and OpenRouter.
- Agentic coding
- OpenAI-compatible config
- Large codebase handling
- Tool use
Our verdict
What we like
- Free and open
- Works with many endpoints
Watch out for
- Tuned mainly for Qwen models
Works with these providers
Keys from these providers work in this app. Usage is billed by the provider at its list price.
BYOK Key Safety Score
Key handling in Qwen Code
Grade A
Your key is stored on your device and requests go directly to the provider.
- Key storage40/40
Key stays on your device; requests go direct to the provider.
- Auditable code25/25
Open source: anyone can verify how keys are handled.
- Self-hosting8/15
Runs as a local app, but not as a self-hosted service.
- Offline option10/10
Supports local models, so no key is needed at all for private work.
- Provider choice6/10
3 provider options, which lets you pick the provider whose data terms you trust.
Whatever the score, give each app its own key, set a monthly spend limit with your provider, and revoke keys you no longer use. Read the key-safety checklist.
Qwen Code FAQ
- Does Qwen Code support bring your own key?
- Yes. Qwen Code accepts your own API key from OpenRouter, Ollama and OpenAI-compatible. Usage is billed by the provider at its API rates.
- Where does Qwen Code store my API key?
- On your device. Requests go directly from Qwen Code to the provider. Its BYOK Tools Key Safety Score is 89/100.
- Is Qwen Code free?
- Open source: Free & open source. API usage is billed separately by your model provider.
- Is Qwen Code open source?
- Yes. The source code is at https://github.com/QwenLM/qwen-code.
- Can Qwen Code run local models?
- Yes. It can connect to local runtimes such as Ollama or LM Studio, so no API key is needed for private or offline use.
- Which platforms does Qwen Code support?
- CLI, macOS, Windows, Linux.
Community reviews
No reviews yet.
Alternatives to Qwen Code
All command line →LLM (Simon Willison)
Command Line
CLI and Python library for interacting with any LLM.
Fabric
Command Line
Open-source framework of crowdsourced AI prompts for the CLI.
AIChat
Command Line
All-in-one LLM CLI with chat REPL, RAG, agents and a local server.
Open Interpreter
Command Line
Let language models run code on your computer from a terminal.
gptme
Command Line
Personal AI agent in your terminal with code execution.
ShellGPT
Command Line
Command-line productivity tool for generating shell commands and answers.