OpenAI Codex

Last tested:

OpenAI Codex is openAI's coding agent for CLI, IDE and cloud (category: Coding Agents (CLI & Cloud)). VibeToolRank agent test score: 9.7/10 (tested 2026-11-16, 3 runs, Codex CLI, ChatGPT gpt-6-luna), T-1 of 27 tested Coding Agents (CLI & Cloud) tools. Pricing: Included in every ChatGPT plan (Free, Go, Plus, Pro, Business, Enterprise, Edu); usage limits vary by plan. Codex Cloud needs Plus, Pro, Business, Enterprise or Edu. Plus/Pro buyers can add credits. Plan prices on chatgpt.com/pricing. Free tier: Yes: Codex CLI, IDE extension and app on ChatGPT Free and Go with plan usage limits (no Codex Cloud).

Key facts

Verdict: Headline 9.7 is the mean of T3 9.7, T4 9.7, and T5 9.6 (rubric v0.3).

Best for: developers in the OpenAI ecosystem who want a terminal agent.
Not ideal for: small free models (1 of 3 runs failed, and it used 33K-262K tokens per fix).

VibeToolRank score
9.7/10
Cost per run
$0.0036 / run
Rank
T-1 of 27 tested Coding Agents (CLI & Cloud)
Category
Coding Agents (CLI & Cloud)
Last tested
2026-11-16
Runs
3 runs
Outcome score
10/10
Edition tested
Codex CLI 0.166.0, ChatGPT login, model gpt-6-luna, codex exec --json. Headline is T3+T4+T5 (rubric v0.3). IDE and Cloud were not tested.
Free plan, as measured
Token-priced mean $0.003552 per run across nine official T3+T4+T5 runs on an existing ChatGPT login (official gpt-6-luna Standard rates); no separate API bill was recorded
Free plan
Yes: Codex CLI, IDE extension and app on ChatGPT Free and Go with plan usage limits (no Codex Cloud)
Price
Included in every ChatGPT plan (Free, Go, Plus, Pro, Business, Enterprise, Edu); usage limits vary by plan. Codex Cloud needs Plus, Pro, Business, Enterprise or Edu. Plus/Pro buyers can add credits. Plan prices on chatgpt.com/pricing
Pricing checked
2026-11-02
Sources
help.openai.com/en/articles/11369540-using-codex-with-your-chatgpt-plan · openai.com/codex · test log in our repo

Visit OpenAI Codex

Pricing and free tier

Current official pricing (checked ): Included in every ChatGPT plan (Free, Go, Plus, Pro, Business, Enterprise, Edu); usage limits vary by plan. Codex Cloud needs Plus, Pro, Business, Enterprise or Edu. Plus/Pro buyers can add credits. Plan prices on chatgpt.com/pricing

Is OpenAI Codex free? Yes: Codex CLI, IDE extension and app on ChatGPT Free and Go with plan usage limits (no Codex Cloud)

The CLI is free and open source. With a ChatGPT Free or Go sign-in, local Codex (CLI, IDE, desktop) is included with plan usage limits, but Codex Cloud is not (OpenAI Help Center, checked 2026-11-02).

verified-official official source · full-page-read. Official plan limits can change; re-check the vendor page before paying. Figures from our tests are recorded observations, not a current-capacity promise.

What we measured in our test (2026-11-16, 3 runs): Token-priced mean $0.003552 per run across nine official T3+T4+T5 runs on an existing ChatGPT login (official gpt-6-luna Standard rates); no separate API bill was recorded OpenAI Codex free tier: how far you get

Agent test verdict

Edition tested Codex CLI 0.166.0, ChatGPT login, model gpt-6-luna, codex exec --json. Headline is T3+T4+T5 (rubric v0.3). IDE and Cloud were not tested.. Results may differ for the hosted product.

Tested 2026-11-16 · 3 runs · rubric v0.3 (provisional thresholds). Headline 9.7 is the mean of T3 9.7, T4 9.7, and T5 9.6 (rubric v0.3). T3, T4, and T5 were 4/4, 12/12, and 20/20 on all three runs. Headline cost per run is $0.003552, the mean of all nine official runs, token-priced at official gpt-6-luna Standard short-context rates. The previous v0.3 headline of 9.4 (T5 20/20/19, cost Not measured) and the v0.2 headline of 9.7 stay in labelled history.

T3+T4+T5 The headline below is the mean of the T3, T4, and T5 task overalls (rubric v0.3). Speed uses fine wall-time bands (10 at ≤30s, then −1 per 120s), including a retroactive Speed on earlier T3 and T4 times. The previous v0.2 headline stays in labelled history and is not silently replaced.

DimensionScore /10
Outcome (40%)10
Speed (15%)9.9
Cost (15%)10
Developer experience (15%)8
Reliability (15%)10
Overall9.7

Cost per run: $0.0036 / run

Task results

These are the sittings that make up the headline. T4 Outcome is 10 times the mean fraction of 12 held-out tests, and T5 Outcome is 10 times the mean fraction of 20 held-out tests, that the agent did not see during the run. Task tables on a v0.3 page use the v0.3 Speed bands.

T3 · 2026-11-16 · CLI, ChatGPT gpt-6-luna · 3runs · overall 9.7 · held-out 4/4, 4/4, 4/4

Official Codex CLI 0.166.0 with OpenAI gpt-6-luna via a ChatGPT login (codex exec --json -s workspace-write). Task score uses v0.3 Speed bands; the v0.3 headline is T3+T4+T5.

Official CLI with OpenAI gpt-6-luna via a ChatGPT login fixed the seeded cart bug in 3/3 T3 runs (14.53s / 14.90s / 10.92s) on 2026-11-16. Test file unchanged; identical discount-before-tax fix. Token-priced mean $0.001157.

DimensionScore /10
Outcome (40%)10
Speed (15%)10
Cost (15%)10
Developer experience (15%)8
Reliability (15%)10
Overall9.7

Cost per run: $0.0012 / run

T4 · 2026-11-16 · CLI, ChatGPT gpt-6-luna · 3runs · overall 9.7 · held-out 12/12, 12/12, 12/12

Official Codex CLI 0.166.0 with OpenAI gpt-6-luna via a ChatGPT login (codex exec --json -s workspace-write). Task score uses v0.3 Speed bands; the v0.3 headline is T3+T4+T5.

The same edition scored 12/12 held-out T4 tests on all 3 runs (30.21–32.17s wall) on 2026-11-16. Visible tests 8/8; tests/ unchanged. Token-priced mean $0.002584.

DimensionScore /10
Outcome (40%)10
Speed (15%)10
Cost (15%)10
Developer experience (15%)8
Reliability (15%)10
Overall9.7

Cost per run: $0.0026 / run

T5 · 2026-11-16 · Codex CLI, ChatGPT gpt-6-luna · 3runs · overall 9.6 · held-out 20/20, 20/20, 20/20

Codex CLI 0.166.0, ChatGPT login, model gpt-6-luna, codex exec --json. Headline is T3+T4+T5 (rubric v0.3). IDE and Cloud were not tested.

T5 held-out 20/20 on all 3 runs (69.55s / 84.66s / 80.30s) on 2026-11-16, improved from 20/20/19 on 2026-11-13. Visible 9/9; tests/ unchanged. Token-priced mean $0.006917.

DimensionScore /10
Outcome (40%)10
Speed (15%)9.6
Cost (15%)10
Developer experience (15%)8
Reliability (15%)10
Overall9.6

Cost per run: $0.0069 / run

T3 · 2026-11-13 · CLI, ChatGPT gpt-6-luna · 3runs · overall 9.7 · held-out 4/4, 4/4, 4/4

Official Codex CLI with OpenAI gpt-6-luna via a ChatGPT login (codex exec -s workspace-write). Task score uses v0.3 Speed bands; the v0.3 headline is T3+T4+T5.

Previous sitting (2026-11-13). Official CLI with OpenAI gpt-6-luna via a ChatGPT login fixed the seeded cart bug in 3/3 T3 runs (12–20s) on 2026-11-13. Test file unchanged; identical discount-before-tax fix.

DimensionScore /10
Outcome (40%)10
Speed (15%)10
Cost (15%)10
Developer experience (15%)8
Reliability (15%)10
Overall9.7

T4 · 2026-11-13 · CLI, ChatGPT gpt-6-luna · 3runs · overall 9.7 · held-out 12/12, 12/12, 12/12

Official Codex CLI with OpenAI gpt-6-luna via a ChatGPT login (codex exec -s workspace-write). Task score uses v0.3 Speed bands; the v0.3 headline is T3+T4+T5.

Previous sitting (2026-11-13). The same edition scored 12/12 held-out T4 tests on all 3 runs (31.7–32.5s wall). Visible tests 8/8; tests/ unchanged.

DimensionScore /10
Outcome (40%)10
Speed (15%)10
Cost (15%)10
Developer experience (15%)8
Reliability (15%)10
Overall9.7

T5 · 2026-11-13 · Codex CLI, ChatGPT gpt-6-luna · 3runs · overall 8.8 · held-out 20/20, 20/20, 19/20

Codex CLI 0.166.0, ChatGPT login, model gpt-6-luna, codex exec. Headline is T3+T4+T5 (rubric v0.3). IDE and Cloud were not tested.

Previous sitting (2026-11-13). T5 held-out 20/20, 20/20, 19/20 (82–93s on the later runs; run 3 missed charset-from-type-parameter). Visible 9/9; tests/ unchanged.

DimensionScore /10
Outcome (40%)9.8
Speed (15%)9.6
Cost (15%)10
Developer experience (15%)8
Reliability (15%)5
Overall8.8

Earlier tests Labelled history

These scores are kept as labelled history. They are not the current ranking score.

Previous headline — T3+T4+T5, rubric v0.3 2026-11-13 · Codex CLI, ChatGPT gpt-6-luna · 3runs · overall 9.4

Codex CLI 0.166.0, ChatGPT login, model gpt-6-luna, codex exec. Headline is T3+T4+T5 (rubric v0.3). IDE and Cloud were not tested.

Headline 9.4 was the mean of T3 9.7, T4 9.7, and T5 8.8 (20/20, 20/20, 19/20) published 2026-11-13. Cost per run was Not measured because logs only recorded a single tokens-used total. Kept as labelled history when the 2026-11-16 retest was added. Not silently replaced.

DimensionScore /10
Outcome (40%)9.9
Speed (15%)9.9
Cost (15%)10
Developer experience (15%)8
Reliability (15%)8.3
Overall9.4

Previous headline — T3+T4, rubric v0.2 2026-11-13 · CLI, ChatGPT gpt-6-luna · 3runs · overall 9.7

Official Codex CLI with OpenAI gpt-6-luna via a ChatGPT login (codex exec -s workspace-write). Headline is T3+T4 (rubric v0.2).

Combined T3+T4 headline under rubric v0.2, published 2026-11-13. Kept as labelled history when the v0.3 T3+T4+T5 headline was added. Not silently replaced.

DimensionScore /10
Outcome (40%)10
Speed (15%)10
Cost (15%)10
Developer experience (15%)8
Reliability (15%)10
Overall9.7

Earlier test — substitute model 2026-10-16 · CLI, free model · 3runs · overall 7.4

Codex CLI 0.163.0 with OpenRouter free model cohere/north-mini-code:free (no ChatGPT login; not OpenAI's models)

Using a custom OpenRouter provider and a small free model, Codex CLI fixed our seeded cart bug in 2 of 3 runs (19-76s). In the failed run the model issued an apply_patch call that Codex rejected. Token use was high (33K-262K). Not tested with OpenAI's own models.

DimensionScore /10
Outcome (40%)8
Speed (15%)8
Cost (15%)9
Developer experience (15%)6
Reliability (15%)5
Overall7.4

Adoption signals Not part of the score

Public GitHub metrics for context only. They do not affect our agent scores or rankings.

GitHub stars
132k (132,490) on openai/codex
Fetched
· last push

How we tested

  • Codex CLI 0.166.0 with a ChatGPT login, model gpt-6-luna (OpenAI provider), official v0.3 harness with bubblewrap as in docs/tests/amp/run.py (no nested pid namespace). Isolated CODEX_HOME under /home/box (not /tmp); no OpenRouter or API key. Command: codex exec --json -s workspace-write --skip-git-repo-check -m gpt-6-luna. Codex IDE and Codex Cloud were not tested.
  • Task T3 (2026-11-16, Australia/Sydney): seeded cart.js bug without changing the test file. 3/3 solved (4/4) in 14.53s / 14.90s / 10.92s, identical discount-before-tax fix. Token-priced costs $0.001083 / $0.001346 / $0.001041 from split turn.completed usage.
  • Task T4, same sitting: three fresh promo-checkout copies; grading was 12/12 held-out tests after each run (30.21s / 32.17s / 30.39s). Visible 8/8; tests/ unchanged. Hidden tests were not in the workdir during the run.
  • Task T5, same sitting: three official copies of the vendored negotiator fixture; grading was 20/20 held-out tests after each run (69.55s / 84.66s / 80.30s). Visible 9/9; tests/ unchanged. Hidden tests were not in the workdir during the run.
  • The 2026-11-13 sitting of the same edition (T3 4/4×3, T4 12/12×3, T5 20/20/19, v0.3 headline 9.4, cost Not measured) is labelled history. The 2026-10-16 OpenRouter free-model edition (2/3, overall 7.4) remains labelled history.
Typographic record of the Codex CLI T3 result on 16 November 2026, ChatGPT gpt-6-luna.
T3 typographic record of independently re-run tests. Hidden and visible suites were 4/4; cart.test.js was unchanged.
cart.js diff from the Codex ChatGPT T3 retest on 16 November 2026.
The same correct cart.js change on all three runs (percentage discount before tax).
Table of Codex CLI T3 run times and token-priced costs on 16 November 2026.
T3 timing (Australia/Sydney) and token-priced costs at official gpt-6-luna Standard rates. Mean $0.001157.
Typographic record of the Codex CLI T4 held-out grade on 16 November 2026.
T4 typographic record of the independently graded held-out suite. Hidden tests were not in the workdir during the run.
Codex CLI T4 typographic record of the workdir diff on 16 November 2026.
Sanitized typographic record of the T4 workdir diff. tests/ was unchanged.
Table of Codex CLI T4 run times, held-out grades, and costs on 16 November 2026.
T4 timing and 12/12 held-out grades (Australia/Sydney). Mean token-priced cost $0.002584.
Typographic record of the Codex CLI T5 held-out grade on 16 November 2026.
T5 typographic record of the independently graded held-out suite. Hidden tests were not in the workdir during the run.
Codex CLI T5 typographic record of the workdir diff on 16 November 2026.
Sanitized typographic record of the workdir diff (lib/variant.js). No emails, session ids, or hostnames.
Table of Codex CLI T5 run times, held-out grades, and costs on 16 November 2026.
T5 timing and 20/20 held-out grades on all three runs (Australia/Sydney). Mean token-priced cost $0.006917.

Pros, cons and who it's for

Pros

  • Fixed the seeded T3 bug in 3 of 3 runs (11–15s) and scored 12/12 held-out T4 and 20/20 held-out T5 tests on every run with OpenAI gpt-6-luna via a ChatGPT login
  • Official unattended `codex exec --json` in workspace-write mode, with split input, cached, and output token counts on every official run
  • Token-priced mean $0.003552 per run across the nine official T3+T4+T5 runs at official gpt-6-luna Standard rates

Cons

  • A ChatGPT login is required for OpenAI’s models; plan usage limits still apply (we did not measure remaining quota)
  • Codex IDE and Codex Cloud were not tested in this sitting
  • CODEX_HOME under /tmp is refused by the official CLI (helper binaries); an outer pid namespace also hangs Codex’s own workspace-write sandbox — the official isolation used an amp-matching bwrap and a home under /home/box

Who it's for: Developers in the OpenAI ecosystem who want a terminal agent and already have a ChatGPT plan that includes Codex CLI.

Free-tier limits: The CLI is free and open source. With a ChatGPT Free or Go sign-in, local Codex (CLI, IDE, desktop) is included with plan usage limits, but Codex Cloud is not (OpenAI Help Center, checked 2026-11-02).

FAQ

Can Codex CLI run without a ChatGPT account?

Yes, through a Responses-compatible custom provider. Our 2026-10-16 test used OpenRouter with wire_api = "responses" and no ChatGPT login. The current published score is from a ChatGPT login with OpenAI’s gpt-6-luna.

How did Codex CLI do with OpenAI’s own models?

On 2026-11-16 we retested official Codex CLI 0.166.0 with a ChatGPT login and gpt-6-luna on T3, T4, and T5. It scored 4/4, 12/12, and 20/20 on all three runs each. The v0.3 headline is 9.7, the mean of T3 9.7, T4 9.7, and T5 9.6. Token-priced cost per run is $0.003552. We did not test Codex IDE or Codex Cloud. The 2026-11-13 sitting of the same edition (headline 9.4, T5 20/20/19, cost Not measured) stays as labelled history.

How did Codex do on a free model?

In our 2026-10-16 test with OpenRouter cohere/north-mini-code:free (no ChatGPT login), it fixed the seeded bug in 2 of 3 runs. The failed run hit 'unsupported call: apply_patch'. That edition is labelled history; the current score is the 2026-11-16 ChatGPT / gpt-6-luna retest (T3+T4+T5 headline 9.7).

Does codex exec still support --full-auto?

Not in version 0.163.0; we used '-s workspace-write' instead.

Is Codex free on ChatGPT Free or Go?

Yes for local use: OpenAI's Help Center (checked 2026-11-02) says Codex is included on Free and Go with usage limits, but Codex Cloud tasks need Plus, Pro, Business, Enterprise or Edu.

Does approval_policy = "untrusted" still work in Codex CLI?

No. OpenAI says Codex CLI 0.149.0 and later fails to start with it; use sandbox_mode = "read-only" with approval_policy = "on-request" instead.

What is the T4 score, and how does it combine with T3?

The 2026-11-16 retest of the same ChatGPT gpt-6-luna edition scored 12/12 held-out T4 tests on all 3 runs (30.21–32.17s wall). Visible tests 8/8; tests/ unchanged. Combined with T3 9.7 and T5 9.6, the v0.3 headline is 9.7. The 2026-11-13 T4 result (12/12, 31.7–32.5s) and the previous v0.2 headline of 9.7 stay on this page as labelled history.

What is the T5 score, and how does it combine with T3 and T4?

On 2026-11-16 the same edition scored 20/20 held-out T5 tests on all 3 runs (69.55–84.66s wall). Visible tests 9/9; tests/ unchanged. The v0.3 headline is the mean of T3 9.7, T4 9.7, and T5 9.6, which is 9.7. The 2026-11-13 T5 sitting (20/20, 20/20, 19/20, task overall 8.8) remains labelled history.

Who is OpenAI Codex best for?

Based on our test: best for developers in the OpenAI ecosystem who want a terminal agent. Not ideal for small free models (1 of 3 runs failed, and it used 33K-262K tokens per fix).

What was the cost per run for OpenAI Codex in VibeToolRank's test?

$0.0036 / run.

How much does OpenAI Codex cost?

Included in every ChatGPT plan (Free, Go, Plus, Pro, Business, Enterprise, Edu); usage limits vary by plan. Codex Cloud needs Plus, Pro, Business, Enterprise or Edu. Plus/Pro buyers can add credits. Plan prices on chatgpt.com/pricing (from the official pricing page, checked 2026-11-02).

Related

OpenAI Codex alternatives

Comparisons

Other Coding Agents (CLI & Cloud)

Featured in stacks

Best Coding Agents (CLI & Cloud) · Best free Coding Agents (CLI & Cloud) · All tools · How we test

Sources

Scores come from our own tests and are never for sale; sponsored placements are always labelled. Some links are affiliate links (currently Railway). Disclosure