Qwen Code

A terminal coding agent you can point at OpenAI, Anthropic, Gemini or Qwen models at runtime

An open-source AI coding agent that lives in your terminal.

Category
AI agents & assistants
Audience
Developers
Language
TypeScript
Licence
Apache-2.0

Updated

Qwen Code is a terminal-based AI coding agent from the Qwen team, a command-line program you run inside a project folder and hand a task to in plain language. It is for developers who already live in a shell and want an agent sitting next to their files instead of in a browser tab, and especially for people who do not want to be locked to a single model vendor. The project is written in TypeScript, licensed Apache-2.0, and has collected roughly 29,700 stars and 3,400 forks on GitHub since it first appeared in June 2025.

What it does

The headline claim, from the project and from the channel's own summary, is that the agent handles a full change loop rather than just drafting code:

  • it writes its own pull requests
  • it reviews the code it has written
  • it runs its own tests

Three more things are described as on by default rather than something you wire up: agent teams, memory, and MCP connections. The README also shows Qwen Code reaching beyond the command line. Its screenshot is captioned as the agent running in a terminal, a desktop app, a browser, an editor and chat, with integrations named for VS Code, Zed, JetBrains, Telegram, DingTalk, WeChat and Feishu. The saved copy of the README is cut off before any of those are explained, so read that list as what the project advertises, not as a verified feature tour.

How it works

What separates this from most terminal agents is that the model is a setting, not a given. Qwen Code plugs into OpenAI, Anthropic, Gemini or Qwen's own models and switches between them at runtime, so you can start a task on one provider and finish it on another without reinstalling or rebuilding your setup. Despite the name, nothing here forces you onto Qwen weights.

MCP, the Model Context Protocol, is how the agent reaches things that are not files in your repository, and the project lists it among the pieces that come built in with zero setup. The repository also carries documentation in several languages, including Chinese, German, French, Japanese, Russian, Brazilian Portuguese and Korean, which is unusual for a tool of this kind.

Getting started

The repository is at github.com/QwenLM/qwen-code. It is a Node command-line tool: the README badge asks for Node.js 22.0.0 or newer, and the package is published on npm as @qwen-code/qwen-code, so a global npm install is the route in. After that you type qwen in your project directory and start working. There is no separate build to hunt down in Releases and no app store involved. The project does not list operating system, memory or GPU requirements, so assume the usual: anywhere a current Node runtime runs.

What costs money is the intelligence, not the tool. Qwen Code itself is open source and free, but it does nothing on its own: you supply either a local model running on your own hardware or a paid API key from one of the supported providers. The materials name no free tier and no pricing, so plan on either spare hardware or a metered bill. One more marker worth knowing before you commit: the README heads its own feature table "Qwen Code 1.0 Preview", so this is a preview release by the authors' own label.

When to use it / when not

The main catch is the model requirement. An agent that writes, reviews and tests code burns a lot of tokens doing it, and every one of those tokens is either your API spend or your own machine's time running a local model. Anyone expecting a self-contained free tool will be disappointed at the first prompt.

Use it instead of a single-vendor terminal agent when you want to compare providers on the same task, or when you need the freedom to move work to a different model mid-session because of cost, rate limits or quality. Don't use it if you only want occasional help with a snippet: pasting into a chat window with Claude or ChatGPT is less setup and costs you nothing extra.

Alternatives

The comparison most readers will make is to the vendor-tied terminal agents, Claude Code being the obvious one, which give you a polished single-model experience and a billing relationship to match. Qwen Code trades that tidiness for provider choice and an Apache-2.0 licence you can read. At the other end, plain chat in a browser remains the simplest option, at the cost of the agent never touching your repository, your tests or your pull requests.

Take this one seriously if you already run coding agents daily and have felt the cost of being tied to one provider: the runtime model switching is a real structural difference, not a packaging detail, and the licence and the activity on the repository suggest it will keep moving. Approach it more carefully if you are new to agents, because the preview label and the need to bring your own model mean the first hour is configuration rather than code.

More in AI agents & assistants

All of AI agents & assistants →