Qwen Code vs Claude Code
Qwen Code is Alibaba Qwen's open-source terminal coding agent, originally based on Gemini CLI, which works with Qwen models and OpenAI-, Anthropic- or Gemini-compatible providers; Claude Code is Anthropic's agentic coding tool: it reads your codebase, edits files and runs commands, in the terminal and beyond, driven by Claude models. Side by side, with every command checked.
Updated November 23, 2026 · Checked against Qwen Code 0.24.6 and Claude Code 2.1.308 in EnvHaven v1.9.0
| Qwen Code | Claude Code | |
|---|---|---|
| Made by | Alibaba Qwen | Anthropic |
| Kind | Coding agent | Coding agent |
| Open source | Yes, Apache-2.0 | No |
| Models | Alibaba Qwen models | Anthropic models |
| Install | npm install -g @qwen-code/qwen-code@latest | curl -fsSL https://claude.ai/install.sh | bash |
| Full-access switch | qwen --yolo | claude --dangerously-skip-permissions |
| Instructions file | QWEN.md, AGENTS.md | CLAUDE.md, .claude/CLAUDE.md |
| Add an MCP server | qwen mcp add | claude mcp add |
| Headless | qwen -p | claude -p |
| Version checked | 0.24.6 | 2.1.308 |
How to choose
- Pick Qwen Code if you want to read, audit or modify the agent itself: it is open source under Apache-2.0.
- If you already pay for a plan from Alibaba Qwen, Qwen Code is the natural start: Qwen Plus or Pro through Qwen sign-in (from Qwen Code 0.27; the 0.24.6 build in EnvHaven 1.9.0 predates it), and Alibaba Cloud coding plans.
- If you already pay for a plan from Anthropic, Claude Code is the natural start: Claude Pro, Max, Ultra, Team and Enterprise plans sign in through claude.ai; API keys bill per token.
- Not sure? Run both on the same task. An EnvHaven workspace has both built in: sign in to each once from the Launch menu, give them the same prompt in two terminal windows side by side, and compare, so the comparison costs one prompt each.
Qwen Code in detail
Alibaba Qwen’s open-source terminal coding agent, originally based on Gemini CLI, which works with Qwen models and OpenAI-, Anthropic- or Gemini-compatible providers. --yolo approves every action automatically and adds no sandbox. Without it, trusted folders start in auto mode, where a model classifies each risky call and approves or blocks it.
More: Qwen Code setup and commands, its full-access mode.
Claude Code in detail
Anthropic’s agentic coding tool: it reads your codebase, edits files and runs commands, in the terminal and beyond, driven by Claude models. Bypass mode runs every tool without asking, with two exceptions worth knowing. Claude Code refuses it as root or under sudo (“--dangerously-skip-permissions cannot be used with root/sudo privileges for security reasons”) unless it detects a recognized sandbox, and it ignores the setting in a project’s .claude/settings.json. rm on critical paths still asks, with a two-minute countdown before it denies.