OpenAI Codex
OpenAI's coding agent with an open-source CLI, IDE extension and cloud tasks

Our verdict
#3 of 7 in AI coding tools · For local-to-cloud work with ChatGPT
Pros
- Strong local-to-cloud workflow and a free starting option
- Good sandbox defaults and review controls
- Published model-specific capacity estimates and useful ChatGPT bundle
Cons
- No predictive completion
- Local and cloud work share variable usage allowances
- Individual training requires an opt-out, with a separate full-environment setting
Skip if: Developers who want an AI-first editor with completions or who do not want OpenAI's account and cloud ecosystem.
Rankings and alternatives
- #3 of 7 AI coding tools For local-to-cloud work with ChatGPT
- Claude Code #1 Best overall for substantial repository work
- Cursor #2 For hands-on editing and close agent control
- Cline #4 For provider choice and checkpoint recovery
AI coding tools in 2027 scores
Evaluated Nov 12, 2026 Evidence ↓- Coding and repository-task quality · counts double 4
4/5 means: Strong everyday coding and multi-file work, with a tradeoff on extended tasks or model configuration
Strong repository inspection, local review and cloud execution, with reviewers putting it close behind Claude Code for extended delegated work. Current adoption growth supports its relevance but is not itself a quality score.
- Everyday coding workflow 4
4/5 means: Strong everyday integration and review in the intended form, with a required editor change, uneven interfaces or no predictive completion
Strong terminal and in-editor agent review across several IDEs, with local-to-cloud handoff. No predictive completion, so it does not cover all everyday editing by itself.
- Agent control and recovery 5
5/5 means: Excellent control from task through review, including granular permissions or OS sandboxing, recovery and flexible local, parallel or automated execution
Default OS sandboxing and network isolation, read-only code review, cloud handoff and SDK automation provide strong controls without requiring a particular editor.
- Model and provider choice · counts half 4
4/5 means: Broad hosted-provider and API-key choice plus named local-model support or unusually flexible configuration
Supports custom providers, Bedrock, Google Cloud, Ollama and LM Studio. Custom gateways need a compatible Responses API rather than a common Chat Completions endpoint.
- Team administration and security 4
4/5 means: Strong organizational identity, policy and audit or networking controls, with smaller gaps in model administration or plan restrictions
Enterprise identity, role, audit, compliance, retention and residency controls are substantial. GitHub's repository-native controls remain more integrated for GitHub-centered administration.
- Code and prompt privacy · counts half 2
2/5 means: Training or human review of individual interactions by default, with an opt-out
Individual content may train models unless the user opts out, and full-environment training has a separate Codex setting. API and business data are excluded by default, while local providers offer another route.
Pricing
- Free Free Limited coding usage
- Go $8.00 /month Lightweight coding tasks; full Codex access starts with Plus at $20/month
From the vendor’s pricing page, checked Nov 11, 2026. That page is authoritative.
Evidence and sources
AI coding tools in 2027 scores
Coding and repository-task quality 3 quotes
-
“Run a dedicated review against uncommitted changes, a commit, or a base branch. Codex reports prioritized findings without modifying your working tree, so you can address risks before you commit or open a pull request.”
learn.chatgpt.com/docs/cli · checked -
“For most developers, Claude Code is the strongest general agent for multi-file changes from the terminal, with OpenAI Codex close behind and Cursor the best fit for working inside an editor.”
encore.dev/articles/best-ai-coding-agents · checked -
“Codex is rapidly catching up, showing adoption growth of roughly 5x, from just 3% in January 2026 to 16% in May–July 2026.”
blog.jetbrains.com/research/2026/08/ai-coding-agent-adoption-2026 · checked
Everyday coding workflow 3 quotes
-
“VS Code and compatible editors use the Codex extension; Xcode and JetBrains IDEs provide their own integrations.”
developers.openai.com/codex/ide · checked -
“Work with Codex beside your code. Bring open files and selections into the prompt, review edits in place, and hand off longer work without breaking your flow.”
developers.openai.com/codex/ide · checked -
“Browse active and completed chats, submit work to a configured environment, and apply the result to your local repository from the terminal.”
learn.chatgpt.com/docs/cli · checked
Agent control and recovery 4 quotes
-
“By default, the agent runs with network access turned off. Locally, Codex uses an OS-enforced sandbox that limits what it can touch (typically to the current workspace), plus an approval policy that controls when it must stop and ask you before acting.”
learn.chatgpt.com/docs/agent-approvals-security · checked -
“Run a dedicated review against uncommitted changes, a commit, or a base branch. Codex reports prioritized findings without modifying your working tree, so you can address risks before you commit or open a pull request.”
learn.chatgpt.com/docs/cli · checked -
“Use the Codex SDK to automate coding tasks, including jobs in CI. Use the Codex app server to build custom clients that handle authentication, conversation history, approvals, and streamed agent events.”
learn.chatgpt.com/docs/codex-sdk.md · checked -
“Browse active and completed chats, submit work to a configured environment, and apply the result to your local repository from the terminal.”
learn.chatgpt.com/docs/cli · checked
Model and provider choice 3 quotes
-
“Codex can run against a local "open source" provider such as Ollama or LM Studio when you pass
--oss. Choose one for a single run with--local-provider, or setoss_provideras the default. If neither is set, the interactive CLI prompts you to choose;codex execexits with an error.”learn.chatgpt.com/docs/config-file/config-advanced.md · checked -
“A model provider defines how Codex connects to a model (base URL, wire API, authentication, and optional HTTP headers). Choose a unique ID for custom providers. Codex reserves
openai,ollama,lmstudio,amazon-bedrock,amazon-bedrock-runtime, andgcpfor its built-in providers.”learn.chatgpt.com/docs/config-file/config-advanced.md · checked -
“For a custom model provider or gateway, use a compatible Responses API endpoint. See Custom model providers for configuration and Gateway compatibility for streaming, tool, and conversation requirements. Current Codex releases don't support
wire_api = "chat"or a Chat Completions-only endpoint.”learn.chatgpt.com/docs/models.md · checked
Team administration and security 2 quotes
-
“Enterprise-level security and controls, including SCIM, EKM, user analytics, domain verification, and role-based access control (RBAC)”
learn.chatgpt.com/docs/pricing · checked -
“Audit logs and usage monitoring via the Compliance API”
learn.chatgpt.com/docs/pricing · checked
Code and prompt privacy 4 quotes
-
“Codex can run against a local "open source" provider such as Ollama or LM Studio when you pass
--oss. Choose one for a single run with--local-provider, or setoss_provideras the default. If neither is set, the interactive CLI prompts you to choose;codex execexits with an error.”learn.chatgpt.com/docs/config-file/config-advanced.md · checked -
“No training on API or business data by default”
learn.chatgpt.com/docs/pricing · checked -
“When you use our services for individuals (Free, Plus, Pro), we may use your content to train our models. You can choose whether your conversations help improve our models. To opt out, turn off Improve the model for everyone under Settings > Data controls in ChatGPT, or select Do not train on my content in our Privacy Portal.”
help.openai.com/en/articles/5722486-how-your-data-is-used-to-improve-model-performance · checked -
“Codex has a separate Include environments setting in Codex settings for allowing training on full environments. Changing your settings in ChatGPT or the Privacy Portal does not change that setting.”
help.openai.com/en/articles/5722486-how-your-data-is-used-to-improve-model-performance · checked
Facts
License 2 quotes
-
“This repository is licensed under the Apache-2.0 License.”
github.com/openai/codex · checked -
“You sign in with a ChatGPT account or use an API key. Codex Cloud is proprietary, and the agent is built around OpenAI models.”
encore.dev/articles/best-ai-coding-agents · checked
Runs on 2 quotes
-
“Run the following on Mac or Linux to install Codex CLI: curl -fsSL https://chatgpt.com/codex/install.sh | sh Run the following on Windows to install Codex CLI: powershell -ExecutionPolicy ByPass -c "irm https://chatgpt.com/codex/install.ps1 | iex"”
github.com/openai/codex · checked -
“VS Code and compatible editors use the Codex extension; Xcode and JetBrains IDEs provide their own integrations.”
developers.openai.com/codex/ide · checked
Needs 1 quote
-
“Run the following on Mac or Linux to install Codex CLI: curl -fsSL https://chatgpt.com/codex/install.sh | sh Run the following on Windows to install Codex CLI: powershell -ExecutionPolicy ByPass -c "irm https://chatgpt.com/codex/install.ps1 | iex"”
github.com/openai/codex · checked
Other quotes
Not cited by a score or fact 7 quotes
-
“Plus Power a few focused coding sessions each week. $20/month Get Plus Codex on the web, in the CLI, in the IDE extension, and on iOS Cloud-based integrations like automatic code review and Slack integration GPT-6.1 Sol and GPT-6 Luna Flexibly extend usage with ChatGPT credits Other ChatGPT features as part of the Plus plan”
learn.chatgpt.com/docs/pricing · checked -
“Free Explore Codex capabilities on quick coding tasks. $0/month Get Free GPT-6 Luna at Standard speed in the desktop app, subject to rollout Go Use Codex for lightweight coding tasks. $8/month Get Go GPT-6 Luna at Standard speed in the desktop app, subject to rollout”
learn.chatgpt.com/docs/pricing · checked -
“Local messages and cloud chats share your plan's usage allowance. Weekly limits may also apply.”
learn.chatgpt.com/docs/pricing · checked -
“The latest clearly defined Codex user count is from June 2, 2026: OpenAI reported more than 5 million weekly active users. OpenAI's Tibo Sottiaux later named 20 and 25 million active users, without a measurement window.”
gradually.ai/en/codex-statistics · checked -
“ChatGPT Plus and Pro users who reach their usage limit can purchase additional credits to continue working without needing to upgrade their existing plan. Business, Edu, and Enterprise plans with flexible pricing can purchase additional workspace credits to continue working. All users may also run extra local chats using an API key, with usage charged at standard API rates.”
learn.chatgpt.com/docs/pricing · checked -
“The estimates below show local messages per five-hour period for Plus and Standard Business. Pro plans currently have no five-hour limit. Cloud tasks may use more of your allowance than local messages. Usage depends on the model and task. These estimates are not fixed message limits; check your usage dashboard for current limits and reset times.”
learn.chatgpt.com/docs/pricing · checked -
“GPT-6.1 Sol 15-160 15-160 GPT-6.1 Terra 35-285 35-285 GPT-6 Sol 15-150 15-150 GPT-6 Luna 350-3,000 350-3,000”
learn.chatgpt.com/docs/pricing · checked
Show all 7
Pricing
learn.chatgpt.com/docs/pricing · checked
