Codex CLI logo

Codex CLI

Coding agentsOpenAIAlso called Codex, OpenAI Codex

Codex is OpenAI's coding agent. It works in your terminal, a desktop app, your editor and the cloud for longer tasks, and it is included with ChatGPT plans. The terminal tool is open source.

  • Cloud tasks
  • Code review on GitHub
  • Scheduled tasks
  • Subagents
  • Open-source CLI

At a glance

5M+ weekly users

VerifiedAs of Jun 2, 2026OpenAI

40M weekly users, combined with ChatGPT WorkReportedAs of Oct 7, 2026

How we rank

Research
  • Evidence level: Verified, primary.
  • One product family. The user figure is not counted twice for the cloud product.
  • Codex alone, per OpenAI. About 20% are knowledge workers. OpenAI has not published a Codex-only count since the July merge with ChatGPT Work, and does not break out Codex revenue.
  • 40 million weekly users, Codex and ChatGPT Work combined. A combined figure for two products, not a Codex count.
  • 134,441 GitHub stars. GitHub star count from the Nov 9, 2026 snapshot.

Key facts

As of Nov 11, 2026

Who it's for
OpenAI-native terminal and async coding when you already pay for ChatGPT.
Can it run unattended, in the background or in the cloud?
Yes. Codex cloud tasks keep working while your computer is asleep, and scheduled tasks are available on paid plans.
Does it open pull requests on its own?
Yes, when you approve. You review the changes, then commit or open a pull request. Codex can also review pull requests on GitHub automatically.
How many agents can run in parallel?
Subagents and custom agents are supported. No fixed number of parallel agents is listed.
Which models does it use?
GPT-6.1 Sol, GPT-6.1 Terra, GPT-6 Sol and GPT-6 Luna (GPT-6 Astra is also listed). With an API key, models follow what your key can access.
What do the plans cost?
Included in ChatGPT Free, Go, Plus, Pro, Business, Edu and Enterprise. Pro plans are $100, $200 or $500 per month. Using an API key instead is pay per token.
Seat or usage pricing?
Usage allowance inside your ChatGPT plan, with 5-hour and weekly limits on some plans. Buy credits when you run out. An API key bills at API rates.
Enterprise controls (SSO, audit, access)
Business: SAML single sign-on and managed configuration. Enterprise: SCIM, role-based access, audit logs and the Compliance API, data retention and residency controls.
Data retention and training
No training on API or business data by default on Business, Enterprise and API. Enterprise adds retention and residency controls.
Sources

Recently

Common questions

What is Codex CLI?

Codex is OpenAI's coding agent. It works in your terminal, a desktop app, your editor and the cloud for longer tasks, and it is included with ChatGPT plans. The terminal tool is open source.

Who is Codex CLI for?

OpenAI-native terminal and async coding when you already pay for ChatGPT.

How much does Codex CLI cost?

Included in ChatGPT Free, Go, Plus, Pro, Business, Edu and Enterprise. Pro plans are $100, $200 or $500 per month. Using an API key instead is pay per token. Checked against the vendor's pages on Nov 11, 2026. Plans change often, so confirm before you decide.

Can Codex CLI run in the background or in the cloud?

Yes. Codex cloud tasks keep working while your computer is asleep, and scheduled tasks are available on paid plans.

What are alternatives to Codex CLI?

Other CLI agents in the directory: Claude Code, OpenCode, OpenHands, Amp, Gemini CLI, Aider, Muse Code, Grok Build, Warp, Goose, Mistral Vibe, Qwen Code, Kimi Code, Crush. Different categories solve the same problem differently, so see the CLI & terminal agents category page for tradeoffs.

Compare Codex CLI

See the full Coding agents shortlist
Show all 14 alternatives

More from OpenAI: ChatGPT Agent, ChatGPT Deep Research, OpenAI Agents SDK