Codex logo

Codex

Coding agentsOpenAIAlso called Codex CLI, OpenAI CodexLast checked Nov 12, 2026

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

Company

Headquarters
San Francisco, CA wikipedia.org (source for Headquarters)
Owner
OpenAI (public benefit corporation) wikipedia.org (source for Owner)
Last round
$122B committed at $852B post-money · Mar 31, 2026 openai.com (source for Last round)
Revenue
About $2B a month, said by OpenAI in March 2026 cnbc.com (source for Revenue)

Positioning

Mobile

Yes

Codex runs on iOS in the ChatGPT app, where you can review and steer cloud tasks

Bring your own API key

Yes

Sign in with an OpenAI API key instead of ChatGPT, or point the CLI at OpenAI models on Amazon Bedrock

Models

OpenAI models (the GPT-6 family)

With an API key, whatever models the key can use

Runs on

macOS, Linux and Windows

Install with the shell or PowerShell script, npm or Homebrew

Local or cloud

Terminal CLI

IDE extension, ChatGPT desktop app, and cloud tasks on the web and mobile

Background agents

Yes

Cloud tasks have their own workspace and keep working while your computer is asleep

Sources: chatgpt.com (source for Positioning)2 (another source page for Positioning: learn.chatgpt.com/docs/auth)3 (another source page for Positioning: learn.chatgpt.com/docs/models)4 (another source page for Positioning: learn.chatgpt.com/docs/codex/cli)5 (another source page for Positioning: learn.chatgpt.com/docs/codex/ide)

At a glance

Who it's for
OpenAI-native terminal and async coding when you already pay for ChatGPT.
What it does
OpenAI models · Terminal agent loop · Desktop app (codex app) · Cloud task handoff · Open-source CLI
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. openai.com (source for What do the plans cost?)
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. openai.com (source for Seat or usage pricing?)
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. openai.com (source for Does it open pull requests on its own?)2 (another source page for Does it open pull requests on its own?: developers.openai.com/codex/pricing)
How many agents can run in parallel?
Subagents and custom agents are supported. No fixed number of parallel agents is listed. openai.com (source for How many agents can run in parallel?)
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. openai.com (source for Enterprise controls (SSO, audit, access))
Data retention and training
No training on API or business data by default on Business, Enterprise and API. Enterprise adds retention and residency controls. openai.com (source for Data retention and training)
Runs
On your machine or in the vendor's cloud

What people use it for

  • Inspect code, make changes and run commands from your terminal, then script it with codex exec in CI chatgpt.com
  • Work beside your code in the editor: open files and selections go into the prompt and you review diffs in place chatgpt.com
  • Hand longer tasks to the cloud, from investigating bugs to building features, and review the result from web, mobile or desktop chatgpt.com
  • Embed Codex in your own tools with the Codex SDK or the app-server protocol chatgpt.com

Limits

  • Usage is shared with ChatGPT Work and capped by plan; extra usage is bought as ChatGPT credits openai.com
  • Signing in with an API key gives no cloud features such as GitHub code review or Slack openai.com
  • Codex cloud requires signing in with ChatGPT chatgpt.com

Recently

  • Nov 10, 2026 · Codex CLI 0.167.1 released. openai.com
  • Nov 6, 2026 · Codex CLI 0.167.0: new agent command center (codex agents) that marks unread results. openai.com
  • Oct 14, 2026 · GPT-5.5 retired from Codex with ChatGPT sign-in; API-key use not affected. openai.com

Common questions

What is 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.

Who is Codex for?

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

How much does Codex 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 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?

Other CLI agents in the directory: Claude Code, OpenCode, OpenHands, Gemini CLI, Muse Code, Grok Build, Amp, 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

See the full Coding agents shortlist
Show all 13 alternatives

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