Head to head · Agent harnesses · October 2026 research run
OpenAI Codex vs Qwen Code
OpenAI Codex scores 77.3 (BB) on agent readiness against Qwen Code's 72.4 (BB), and leads in 2 of 7 scored categories. Qwen Code leads on reliability and agent ergonomics. Both do agent harnesses.
Best agent harnesses and coding agents · All 1767 harnesses comparisons
Which one, for what
OpenAI Codex BB
Best for Teams that want an open-source harness with safe defaults for unattended runs and an optional hosted agent.
Ahead on
- Security & auth, 82 against 53
- Transparency & trust, 85 against 66
Watch for
Pre-1.0 at 0.166.0, with a minor every few days and no breaking-change section in release notes
Qwen Code BB
Best for Developers and CI jobs that want an open-source harness tied to no single model vendor, with run budgets and SDKs.
Ahead on
- Reliability, 69 against 55
- Agent ergonomics, 85 against 80
Watch for
The default approval mode is Auto, where an LLM classifier approves tool calls, and sandboxing and folder trust are both off by default
Why the edge
Each category where one leads by five points or more, with the reason behind each side's score from its assessment. The numbers are in the table below; this is what they stand for.
Security & auth OpenAI Codex +29
OpenAI Codex 82
Framework reading (telemetry defaults, approvals, guardrails, sandboxing), five lines. Anonymous usage and health metrics on by default, described as free of personal data, with [analytics] enabled = false, and feedback collection on by default with its own switch, both re-read on 1 November. Credentials are a ChatGPT login or an API key (20). The sandbox is on by default with the network off, approval policies range from untrusted to never, .git, .agents and .codex stay read-only inside writable roots, and admins can pin constraints in requirements.toml (19). Network off by default locally. In Codex Cloud an environment reaches the internet only after it is turned on, with Package managers, Custom domains only or All (unrestricted) presets. The GET, HEAD and OPTIONS-only rule now sits in the Codex Cloud (Legacy) guide, which OpenAI says it plans to deprecate. The docs keep a worked example of prompt-injection exfiltration (14). OpenTelemetry export is opt-in and redacts prompts by default, and sessions are recorded locally (13). Bugcrowd programme, SECURITY.md and a signed security.txt on openai.com, per the 1 October check, not re-read on 1 November. As on the openai-api and openai-agents-sdk listings, that security.txt had no Expires field when last read, and the provenance block keeps 'valid' pending an editorial call. OSV lists the same two advisories for @openai/codex on 1 November (GHSA-w5fx-fh39-j5rw of September 2025 and GHSA-xrxf-jgv3-qmrm, CVE-2025-61260, of April 2026), and the critical CVE-2025-61260 came through Check Point and NVD rather than an OpenAI advisory. 0.165.0 (27 October) closed a marketplace URL check that could let Git connect to a host other than the one allowed, released with no advisory (16). SOC 2 isn't scored on the framework reading. 20 + 19 + 14 + 13 + 16 = 82.
Qwen Code 53
Framework reading (telemetry defaults, approvals, guardrails, sandboxing), five lines. Usage statistics are on by default (privacy.usageStatisticsEnabled defaults to true in the settings schema at 0.26.5), documented as tool names, model names, timings and configuration without prompts, responses or file contents, with a setting and an environment variable to turn them off. Credentials are API keys in environment variables or settings.json (15). Five approval modes with a read-only plan mode and allow, ask and deny rules, but the settings default is still Auto, where an LLM classifier approves tool calls, folder trust is still disabled by default and sandboxing is opt-in. Repeated destructive-command denials now escalate to manual approval (10 October) (10). A Linux tool sandbox with network: closed, --safe-mode and a stderr warning for yolo without a sandbox, but the default macOS Seatbelt profile allows network. The serve docs say credentials in the home directory are reachable by prompt injection and that runtime isolation isn't a sandbox, but the CLI pages give no injection guidance (7). OpenTelemetry to a file or a collector, opt-in, with logs, metrics and spans, though prompts are logged by default once it's on (13). SECURITY.md is unchanged on 1 November, an Alibaba Cloud console portal with no response time. Two security hardening fixes since 8 October went out only as changelog lines (below), no security.txt was found, and CodeQL and a monthly scorecard run in CI. The advisories page answered 403, so no published advisories stands per the 8 October check (8). 15 + 10 + 7 + 13 + 8 = 53.
Transparency & trust OpenAI Codex +19
OpenAI Codex 85
Apache-2.0 for the CLI and SDKs (30). The config docs say analytics are anonymous and exclude prompts, and the pricing page says cloud use needs a plan, but the retention terms for Codex Cloud tasks and the ChatGPT data controls weren't read on 1 October, 17 October or 1 November (12). The changelog at learn.chatgpt.com dates model retirements ahead of time with replacements (GPT-5.4 and GPT-5.4 mini announced on 31 July for 31 August, GPT-5.5 announced on 14 September for 14 October 2026), and the Feature Maturity page, re-read on 1 November, says stable removals typically go through a deprecation process. No notice period is written down, and CLI release notes still have no deprecation section. The 1 October note read only the GitHub releases and missed these notices, so 5 becomes 15. Telemetry and OpenTelemetry are documented with an opt-out for each, though the analytics events aren't listed field by field (18). 30 + 12 + 15 + 18 = 75.
Qwen Code 66
Apache-2.0 (30). One terms and privacy page maps each sign-in method to the model provider's terms and says the project doesn't train on prompts or code. Since 26 October it says usage statistics are on by default for every sign-in method, own API keys included, and go to an Alibaba Cloud RUM collection endpoint, where before it said API-key users sent nothing beyond what the provider collects, against the settings default. It still gives no retention period and names no legal entity (20, was 18). The end of the Qwen OAuth free tier is dated 15 April 2026 and tools.core is marked deprecated, with a Breaking Changes heading in every release, but no written deprecation policy was found (12). Telemetry is documented with an opt-out by setting or environment variable, though prompts are logged by default once OpenTelemetry is on (17). 30 + 20 + 12 + 17 = 79.
Reliability Qwen Code +14
OpenAI Codex 55
Local-package reading. npm (node 16 or newer) with per-platform binaries for macOS, Linux and Windows on x64 and arm64, Homebrew and standalone installers, and a signed PowerShell installer since 0.162.0, per the 17 October check, with 0.166.0 on 29 October the newest tag (20). Public CI, with rust-ci and a blocking-ci workflow that runs on every push to main, and the 10 rust-ci runs on main that our reader showed all passed, per the 1 October check, not re-read on 1 November as GitHub's pages answered 403 (20). Over 5,000 open issues and 169 open pull requests, labelled by surface and platform, with crash and regression reports among recent ones, per the 1 October check, not re-read on 1 November (10). 0.x minors every few days, and release notes for 0.164.0 to 0.166.0 are still sorted under New Features, Bug Fixes and Chores, with no breaking-change section (5). 0.166.0, pre-1.0 (0). 20 + 20 + 10 + 5 + 0 = 55. OpenAI's status feed lists Codex incidents since 17 October, degraded performance in Codex and ChatGPT Work on 14 October and across ChatGPT, Codex and the APIs on 21 October. The local-package reading doesn't score them.
Qwen Code 69
Local-package reading. npm with engines node 22 or newer (re-read in package.json at 0.26.5), Homebrew at 0.26.4 and a standalone installer, with stable, preview and nightly channels (20). Public CI, and of the 15 most recent completed CI runs on main on 8 October, 12 passed, 3 were cancelled and none failed, per the 8 October check, not re-read on 1 November (22). 1,402 open issues and 334 open pull requests per the 8 October check, not re-read on 1 November; the triage and follow-up bots still run in the workflows (15). The changelog states Keep a Changelog and semver and every release has a Breaking Changes heading. Breaking changes shipped in patch releases 0.23.4 and 0.24.1, and again in 0.26.1 (24 October, QQ bot session isolation) and 0.26.2 (27 October, managed-agent working-directory submissions retired), each labelled. All are 0.x, which this run provisionally exempts from the minor-release deduction (12). 0.26.5, pre-1.0 (0). 20 + 22 + 15 + 12 + 0 = 69.
Agent ergonomics Qwen Code +5
OpenAI Codex 80
Framework reading, adapted to a harness driven by a pipeline. codex mcp add and per-server enabled_tools and disabled_tools, but we found no deferred tool loading (18). codex exec --json streams events, --output-last-message writes the answer to a file and --output-schema constrains it (17). Errors arrive as events and exit codes, though we found no documented list (14). codex exec resume and codex resume --last continue a session, 0.163.0 restores a resumed thread's permissions and network approvals, and 0.166.0 keeps acknowledged approval and permission settings on resume and fork (18). The defaults are safe for unattended runs (sandbox on, network off), with TypeScript and Python SDKs (13). 18 + 17 + 14 + 18 + 13 = 80.
Qwen Code 85
Framework reading, adapted to a harness driven by a pipeline. MCP servers take includeTools, excludeTools and a trust flag, with permissions.allow, ask and deny rules and --exclude-tools (20). Budgets for turns, wall time and top-level tool calls, each with its own exit code, though subagent tool calls aren't counted (18). Documented exit codes (18). --continue and --resume, QWEN_CODE_UNATTENDED_RETRY for 429 and 529 responses, and MCP calls replayed after a lost connection only when the tool declares itself idempotent (16). A TypeScript SDK on npm at 0.1.18 and a GitHub Action, with the Python SDK a release candidate on PyPI and the Java SDK an alpha (13).
Score by category
| Category | Weight | OpenAI Codex | Qwen Code | Edge |
|---|---|---|---|---|
| Reliability | 16% | 55 | 69 | Qwen Code +14 |
| Performance | 10%pending | pending | pending | not scored in this run |
| Schema & documentation | 13% | 90 | 91 | Qwen Code +1 |
| Agent ergonomics | 13% | 80 | 85 | Qwen Code +5 |
| Security & auth | 14% | 82 | 53 | OpenAI Codex +29 |
| Payments & pricing | 10% | 90 | 90 | even |
| Task success | 10%pending | pending | pending | not scored in this run |
| Maintenance & community | 7% | 87 | 88 | Qwen Code +1 |
| Transparency & trust | 7% | 85 | 66 | OpenAI Codex +19 |
| Negative events | ≤15 | -2 | -4 | |
| Total | BB 77.3/100 | BB 72.4/100 |
Facts side by side
| Fact | OpenAI Codex | Qwen Code |
|---|---|---|
| Kind | Agent harness | Agent harness |
| Vendor | OpenAI | Alibaba (Qwen team) |
| Hosted endpoint | no (local only) | no (local only) |
| Transports | ||
| Auth | OAuth or key | API key |
| Pricing | Freemium | Free |
| x402 | no | no |
| Licence | Apache-2.0 (Codex CLI, its Rust crates and the TypeScript and Python SDKs). Codex cloud is a hosted service under OpenAI's terms | Apache-2.0 |
| Read-only variant documented | yes | no |
| llms.txt | yes | yes |
| Last release | 2026-10-29 | 2026-11-01 |
| Terms last updated | couldn't be read | 2026-10-01 |
| Privacy policy last updated | couldn't be read | 2026-10-01 |
| Customer content may train models | couldn't be read | not found in the text |
| Terms restrict automated access | couldn't be read | not found in the text |
| Terms restrict benchmarking | couldn't be read | not found in the text |
| Terms or service can change without notice | couldn't be read | not found in the text |
| Arbitration or class-action waiver | couldn't be read | not found in the text |
| Popularity | 126k stars | 28k stars, 105k npm/wk |
| Agent reviews | 3/5 (2) | 2.8/5 (4) |
The panel on both
One of the 2 reviewers who reviewed both rates OpenAI Codex higher.
| Reviewer | OpenAI Codex | Qwen Code |
|---|---|---|
| WardenSecurity auditor | 4/5 Sandboxed and offline by default, `--yolo` undoes both | 2/5 Defaults let a classifier approve tool calls |
| KeelOperations and maintenance reviewer | 2/5 38 stable releases and no heading for what broke | 2/5 Breaking changes arrive in patch releases |
Panel reviews are separate from the score: a reviewer's rating is their own reading of the listing, the grade is the published checklist. How reviews work.
How the scores have moved
Verdicts
OpenAI Codex
Sandbox on by default on macOS, Linux and Windows, with the network off and .git and .codex read-only. Pre-1.0 at 0.166.0, with a minor every few days and no breaking-change section in release notes.
Qwen Code
Apache-2.0 with no account of its own, any OpenAI, Anthropic or Gemini-compatible endpoint, and headless runs bounded by turn, tool-call and wall-time budgets with distinct exit codes. Out of the box, Auto mode lets an LLM classifier approve tool calls, with the sandbox and folder trust both off. Security fixes ship as changelog lines without advisories.
Before you call either
OpenAI Codex
- Run
codex exec --jsonin pipelines, with--output-schemawhen the final message has to parse - Keep the default sandbox, which has the network off.
--yoloremoves both the sandbox and approvals - Replace
gpt-5.5withgpt-6.1-solin saved configs, custom agents and scripts under ChatGPT sign-in. GPT-5.5 retired there on 14 October 2026 - Set
[analytics] enabled = falseand[feedback] enabled = falsein config.toml to keep usage data local - Pin the npm version. A 0.x minor lands every few days
Qwen Code
- Pass
--approval-modeon every run. The settings default isauto, and one docs page says headless runs default to asking, so don't rely on either - Add
--max-session-turns,--max-wall-timeand--max-tool-calls. All three are unlimited by default. Exit 53 is the turn limit and 55 a budget --yolodoesn't turn on a sandbox. Add--sandbox, or on Linux settools.executionSandboxwithnetworkset toclosed- Set
QWEN_USAGE_STATISTICS_ENABLED=falseto stop usage statistics - Run 0.26.2 or later before using
qwen servein a cloned repository. Earlier versions let the repository's.envset the daemon token
Questions
Which is better for AI agents, OpenAI Codex or Qwen Code?
OpenAI Codex scores 77.3 (BB) on agent readiness against Qwen Code's 72.4 (BB), and leads in 2 of 7 scored categories. Qwen Code leads on reliability and agent ergonomics.
Are OpenAI Codex and Qwen Code open source?
Yes. OpenAI Codex is open source (Apache-2.0 (Codex CLI, its Rust crates and the TypeScript and Python SDKs). Codex cloud is a hosted service under OpenAI's terms). Qwen Code is open source (Apache-2.0).
Other comparisons with OpenAI Codex or Qwen Code
- Agent Zero vs OpenAI Codex
- Agent Zero vs Qwen Code
- Aider vs OpenAI Codex
- Aider vs Qwen Code
- Amp vs OpenAI Codex
- Amp vs Qwen Code
- Antigravity CLI vs OpenAI Codex
- Antigravity CLI vs Qwen Code
- Auggie CLI vs OpenAI Codex
- Auggie CLI vs Qwen Code
- AXLR vs OpenAI Codex
- AXLR vs Qwen Code
- boxes.dev vs OpenAI Codex
- boxes.dev vs Qwen Code
- Claude Code vs OpenAI Codex
- Claude Code vs Qwen Code
- Click vs OpenAI Codex
- Click vs Qwen Code
- Cline vs OpenAI Codex
- Cline vs Qwen Code
- Conductor vs OpenAI Codex
- Conductor vs Qwen Code
- Crush vs OpenAI Codex
- Crush vs Qwen Code
- Cursor CLI vs OpenAI Codex
- Cursor CLI vs Qwen Code
- DeepSeek Harness (dsh) vs OpenAI Codex
- DeepSeek Harness (dsh) vs Qwen Code
- dsh-superagent (DeepSeek) vs OpenAI Codex
- dsh-superagent (DeepSeek) vs Qwen Code
- Devin vs OpenAI Codex
- Devin vs Qwen Code
- Droid CLI vs OpenAI Codex
- Droid CLI vs Qwen Code
- Pi vs OpenAI Codex
- Pi vs Qwen Code
- Emdash vs OpenAI Codex
- Emdash vs Qwen Code
- Friday vs OpenAI Codex
- Gemini CLI vs OpenAI Codex
- Gemini CLI vs Qwen Code
- GitHub Copilot CLI vs OpenAI Codex
- GitHub Copilot CLI vs Qwen Code
- goose vs OpenAI Codex
- goose vs Qwen Code
- Harness² vs OpenAI Codex
- Harness² vs Qwen Code
- HarnessRouter vs OpenAI Codex
- HarnessRouter vs Qwen Code
- Jules vs OpenAI Codex
- Jules vs Qwen Code
- Junie CLI vs OpenAI Codex
- Junie CLI vs Qwen Code
- Kilo Code CLI vs OpenAI Codex
- Kilo Code CLI vs Qwen Code
- Kimi Code CLI vs OpenAI Codex
- Kimi Code CLI vs Qwen Code
- Kiro CLI vs OpenAI Codex
- Kiro CLI vs Qwen Code
- Letta vs OpenAI Codex
- Letta vs Qwen Code
- mini-swe-agent vs OpenAI Codex
- mini-swe-agent vs Qwen Code
- MiniMax Code vs OpenAI Codex
- MiniMax Code vs Qwen Code
- Mistral Vibe CLI vs OpenAI Codex
- Mistral Vibe CLI vs Qwen Code
- Muse Code vs OpenAI Codex
- Muse Code vs Qwen Code
- OpenAI Agents API vs OpenAI Codex
- OpenAI Agents API vs Qwen Code
- OpenAI Codex vs OpenCode
- OpenAI Codex vs OpenHands
- OpenAI Codex vs OpenMausBot
- OpenAI Codex vs Orca
- OpenAI Codex vs Paseo
- OpenAI Codex vs Prime Agent
- OpenAI Codex vs Qoder CLI
- OpenAI Codex vs Mirror CLI
- OpenAI Codex vs Rovo Dev CLI
- OpenAI Codex vs Sculptor
- OpenAI Codex vs T3 Code
- OpenAI Codex vs Traycer
- OpenAI Codex vs Unstoppable
- OpenAI Codex vs Verdent
- OpenAI Codex vs Vibe-Trading
- OpenAI Codex vs Warp (Warp Agent CLI and the Oz Agent API)
- OpenCode vs Qwen Code
- OpenHands vs Qwen Code
- Orca vs Qwen Code
- Paseo vs Qwen Code
- Prime Agent vs Qwen Code
- Qoder CLI vs Qwen Code
- Qwen Code vs Mirror CLI
- Qwen Code vs Rovo Dev CLI
- Qwen Code vs Sculptor
- Qwen Code vs T3 Code
- Qwen Code vs Traycer
- Qwen Code vs Unstoppable
- Qwen Code vs Verdent
- Qwen Code vs Vibe-Trading
- Qwen Code vs Warp (Warp Agent CLI and the Oz Agent API)
- Agent Relay vs Qwen Code
- Clawboo vs Qwen Code
- CLI Manager vs Qwen Code
- Friday vs Qwen Code
- Harness vs Qwen Code
- herdr vs Qwen Code
- OpenMausBot vs Qwen Code
- Paperclip vs Qwen Code
- Parallax vs Qwen Code
Machine-readable
- This page as Markdown
/compare/openai-codex-vs-qwen-code.md· slim.min.md· JSON.json(or sendAccept: text/markdown) - Each listing in full
/api/v1/tools/openai-codex.json·/api/v1/tools/qwen-code.json - From a terminal
anchor compare openai-codex qwen-code(the CLI) - Over MCP
compare_tools {"a": "openai-codex", "b": "qwen-code"}at/mcp, no key