OpenAI Codex
OpenAI's coding agent for terminal, editor, cloud and desktop, bundled with ChatGPT plans.
Group: Coding agents
Codex is OpenAI's coding agent. OpenAI's docs describe a CLI that inspects code, edits files and runs commands in your repository, plus an IDE extension, cloud tasks and the ChatGPT desktop app. It is included in ChatGPT plans from Free to Pro and Business, or can be used with an API key at API prices.
The decision in plain English
Choose local or Cloud, then the ChatGPT or API-key billing route. Current help/rate cards say auto-review safety checks are free with ChatGPT sign-in, unlike the older technical security page wording. Code review and the underlying task are still metered. Business now offers Standard and Premium seats; neither no-five-hour-limit nor a published token rate makes tasks unlimited.
Best fit
Developers who already use or are willing to buy a ChatGPT plan and want one coding agent across terminal, editor and cloud, with sandbox and approval settings they control.
Poor fit
Anyone who needs a fixed, published task allowance on the free tiers, or who needs cloud features such as GitHub code review and Slack on an API-key setup, which the pricing page says are not included.
Documented capabilities
Vendor statements, not verified task outcomes.
- Local repository inspection, edits, commands and scriptable CLI workflows Source · checked 2026-11-22
- Apache-2.0 open-source CLI Source · checked 2026-11-22
- Cloud VM tasks with reusable environments and eligible integrations Source · checked 2026-11-22
- Sandbox, approval policies and optional automatic review Source · checked 2026-11-22
- Separate Codex Security for connected GitHub repositories Source · checked 2026-11-22
Permissions and human control
- Local command sandbox and approval policy are separate. Workspace-write can read/edit/run inside permitted roots without a fresh prompt; default command networking is off. The command network proxy does not govern browser, web-search, app/MCP or Cloud traffic, which have separate controls.
- The explicit untrusted approval-policy setting is retired; project trust_level untrusted is a different supported setting. On-request can still auto-run permitted commands. Read-only is not a promise that every read prompts.
- Auto-review evaluates only eligible approval requests and can be wrong; already-permitted actions bypass it. Computer Use app-access prompts go to the user. Technical monitoring can pause a task after the triggering activity, so it is not a pre-action guarantee.
- Current Cloud direct environment variables are visible to programs; network secrets use placeholders with proxy substitution for allowed HTTPS 443 destinations during setup and tasks. Personal requirements can be shared without sharing their values. Review environment-owned credentials before workspace sharing.
- Public internet policy, VPN access and enterprise Agent Security requirements are separate. A public-network restriction does not disable a configured VPN. Legacy Cloud setup-only secrets do not describe current Cloud.
Documented controls do not prove that an agent always follows them.
Limits and open questions
- Published five-hour local-message ranges are workload/model estimates, not fixed task quotas. Pro and Business Premium have no five-hour limit, but weekly limits, credits and workspace controls can still apply.
- Free/Go pricing entries describe desktop GPT-6 Luna; do not assume every client or Cloud is included. Current Cloud excludes Free/Go, Computer Use and self-hosted GitHub Enterprise Server.
- Auto-review help and rate cards say ChatGPT-authenticated safety checks are free; the technical security page still says extra review calls can add usage. Code Review is a different metered task. Confirm the actual billing route.
- Current training help applies the personal ChatGPT preference to Codex conversations/tasks and no longer documents the separate Include environments control. Its present availability and full-environment scope were not established; do not instruct users to rely on that old toggle.
- Saved Cloud VM state is normally recoverable for up to 7 days after a turn/resume. This is a recovery window, not an all-record retention or deletion promise.
- The pricing page still carries a GPT-5.6 Sol promotion notice guaranteed at least through 21 November 2026, now past. No continuing discount or exact termination time is inferred. No account, task or invoice test.
Privacy and security
Checked 22 November 2026. Current data-controls and model-improvement help apply the personal ChatGPT training preference to Codex conversations/tasks, including Computer Use screenshots per Codex help. Either ChatGPT opt-out or the Privacy Portal covers new tasks; feedback on an individual-plan response can still permit training of the whole conversation. Current articles no longer document the separate Include environments toggle; its present availability and full-environment scope are unresolved, not assumed removed or replaced. Business/Enterprise/Edu content is not used for training by default; current model-improvement help says response feedback alone does not authorize business training without a separate organization agreement, while the broader enterprise page still discusses explicit opt-in mechanisms. ChatGPT sign-in follows workspace retention/residency; API-key use follows API-organization settings instead. Enterprise privacy documents 30-day deleted-conversation removal with plan-specific law/harm exceptions, not a Codex-wide erasure clock. Saved VM-state recovery up to 7 days is separate. Vendor documentation, not audited controls or a tested settings change.
Feature-by-feature: what is documented and what is not
Official sources checked 22 November 2026. A documented feature is a vendor statement, not proof of success.
| Feature | Evidence status | Detail and limit |
|---|---|---|
| Auto-review billing | Free with ChatGPT sign-in | Current Codex help and rate cards say safety checks are free and do not consume plan limits. The security page still says extra calls can add usage. Code Review/task work is separate and metered. Source |
| Local boundaries | Sandbox is not every tool | Permitted workspace commands can run automatically. Command network policy does not cover browser/search/apps/MCP/Cloud; those use separate controls. Auto-review only sees eligible approval requests. Source |
| Cloud eligibility | Not Free or Go | Eligible paid/workspace plans, rollout and Cloud access controls apply. Enterprise Cloud access and workspace-environment editing are separate permissions; some seat types cannot create environments. Source |
| Current Cloud state | Default or published setup | Tasks can start without a repository in a default environment. New tasks get separate workspaces; environment updates do not rewrite existing task state. Up to 7-day VM recovery is not all-record deletion. Source |
| Credentials and sharing | Direct values versus proxy | Direct variables reach programs. Network secrets substitute placeholders for allowed HTTPS 443 destinations in setup/tasks. Shared requirements do not share personal values; environment-owned access needs review. Source |
| Network and legacy | Public, VPN and policy differ | Public network restrictions do not disable VPN access. Agent Security adds enterprise requirements. Legacy setup-only secrets and integrations differ from current Cloud; current Cloud has no Computer Use. Source |
| Plan and token costs | Different billing routes | Free/Go desktop limits, paid usage estimates, Standard/Premium Business seats, shared credits and API-key charges differ. A no-five-hour-limit plan is not unlimited weekly use. Source |
| Training and retention | Current control, unresolved old toggle | Personal ChatGPT preference applies to Codex tasks/conversations; current help no longer documents Include environments, whose present scope is unresolved. Business feedback/training and API retention follow their own scope. Source |
How to start with OpenAI Codex narrowly
- Choose local or current Cloud and ChatGPT or API-key authentication; they have different access, billing and data controls.
- For local work, inspect the effective sandbox, approvals and network settings. Do not use the retired explicit untrusted approval policy or assume on-request asks for every command.
- Use one low-risk task. For Cloud, inspect the default/published environment, personal versus shared credentials, public networking and any VPN before granting private access.
- Check the actual usage dashboard, seat type, auto-review versus Code Review meter and automatic reload limits. A vendor estimate is not a measured task cost.
- For personal plans, check the current ChatGPT training preference. The former Include environments toggle is not established in current help; obtain plan-specific clarification before relying on environment-training scope. Review outputs before merging.
Official product/setup source. These are documentation-based steps, not a hands-on setup test.
Common questions about OpenAI Codex
What is OpenAI Codex for?
Developers who already use or are willing to buy a ChatGPT plan and want one coding agent across terminal, editor and cloud, with sandbox and approval settings they control. The vendor describes it as: Codex is OpenAI's coding agent. OpenAI's docs describe a CLI that inspects code, edits files and runs commands in your repository, plus an IDE extension, cloud tasks and the ChatGPT desktop app. It is included in ChatGPT plans from Free to Pro and Business, or can be used with an API key at API prices.
Who should look elsewhere?
Anyone who needs a fixed, published task allowance on the free tiers, or who needs cloud features such as GitHub code review and Slack on an API-key setup, which the pricing page says are not included.
How much does OpenAI Codex cost?
Personal plan prices verified in the rendered official pricing page; Business Standard/Premium in current billing help. Codex, Work and supported agentic features share eligible allowance/credits. ChatGPT-authenticated auto-review checks are free per current help/rate cards; technical security page still says may add usage. Code review and task work remain metered. Credits generally expire 12 months; Japan purchases after 13 November 2026 expire 180 days. Reload may buy immediately below threshold, and its monthly cap does not cap manual purchases. Cloud has no separate standard VM fee at launch per help, not a permanent free-infrastructure promise. The stale 14 October GPT-5.5 retirement notice is no longer on the current pricing page. No invoice or task-cost test.
What can it access and what needs my approval?
Local command sandbox and approval policy are separate. Workspace-write can read/edit/run inside permitted roots without a fresh prompt; default command networking is off. The command network proxy does not govern browser, web-search, app/MCP or Cloud traffic, which have separate controls. The explicit untrusted approval-policy setting is retired; project trust_level untrusted is a different supported setting. On-request can still auto-run permitted commands. Read-only is not a promise that every read prompts. Auto-review evaluates only eligible approval requests and can be wrong; already-permitted actions bypass it. Computer Use app-access prompts go to the user. Technical monitoring can pause a task after the triggering activity, so it is not a pre-action guarantee. Current Cloud direct environment variables are visible to programs; network secrets use placeholders with proxy substitution for allowed HTTPS 443 destinations during setup and tasks. Personal requirements can be shared without sharing their values. Review environment-owned credentials before workspace sharing. Public internet policy, VPN access and enterprise Agent Security requirements are separate. A public-network restriction does not disable a configured VPN. Legacy Cloud setup-only secrets do not describe current Cloud.
What happens to my data?
Checked 22 November 2026. Current data-controls and model-improvement help apply the personal ChatGPT training preference to Codex conversations/tasks, including Computer Use screenshots per Codex help. Either ChatGPT opt-out or the Privacy Portal covers new tasks; feedback on an individual-plan response can still permit training of the whole conversation. Current articles no longer document the separate Include environments toggle; its present availability and full-environment scope are unresolved, not assumed removed or replaced. Business/Enterprise/Edu content is not used for training by default; current model-improvement help says response feedback alone does not authorize business training without a separate organization agreement, while the broader enterprise page still discusses explicit opt-in mechanisms. ChatGPT sign-in follows workspace retention/residency; API-key use follows API-organization settings instead. Enterprise privacy documents 30-day deleted-conversation removal with plan-specific law/harm exceptions, not a Codex-wide erasure clock. Saved VM-state recovery up to 7 days is separate. Vendor documentation, not audited controls or a tested settings change.
Has AgentComparison tested it?
No. This record is built from the vendor's own documentation, checked 2026-11-22. Vendor claims are attributed, not confirmed.
How to evaluate OpenAI Codex yourself
- Pick one low-risk task that matches its documented capabilities: local repository inspection, edits, commands and scriptable cli workflows.
- Write the expected output and what counts as failure before you start.
- Connect the minimum access needed, and check approval settings first.
- Run it twice and compare, then review every action it took.
- Check cost after any free allowance. Unknown price is not free.
Related
Documented use cases: Software development and repository work.
- Claude Code (product): Developers delegating repository changes from a terminal.
- Cursor cloud agents (product): Developers who want background work on repository branches and can review diffs, tests and artifacts before a human merges the pull request. Configure restricted egress and minimum repository access first.
- Devin (product): Engineering teams delegating well-scoped, verifiable tickets who will review the draft PRs it returns.
- GitHub Copilot cloud agent (product): Teams already on GitHub that can split work into single-repository tasks, review generated changes and run checks before a human merges the pull request.
- AI agent use cases by job
- Privacy and approval checklist
- Compare two agents side by side
- Latest agent updates
Sources and history
- https://learn.chatgpt.com/docs/pricing · official · read 22 November 2026
- https://help.openai.com/en/articles/11369540-using-codex-with-your-chatgpt-plan · official · read 22 November 2026
- https://developers.openai.com/codex/cli · official · read 22 November 2026
- https://github.com/openai/codex · official · read 22 November 2026
- https://learn.chatgpt.com/docs/agent-approvals-security · official · read 22 November 2026
- https://learn.chatgpt.com/docs/sandboxing/auto-review · official · read 22 November 2026
- https://learn.chatgpt.com/docs/environments/cloud-environments · official · read 22 November 2026
- https://learn.chatgpt.com/docs/auth · official · read 22 November 2026
- https://help.openai.com/en/articles/7730893-data-controls-in-chatgpt · official · read 22 November 2026
- https://help.openai.com/en/articles/5722486-how-your-data-is-used-to-improve-model-performance · official · read 22 November 2026
- https://help.openai.com/en/articles/11481834 · official · read 22 November 2026
- https://help.openai.com/en/articles/8792536-managing-billing-and-seats-in-chatgpt-business · official · read 22 November 2026
- https://help.openai.com/en/articles/12642688-using-credits-for-flexible-usage-in-chatgpt-personal-plans · official · read 22 November 2026
- https://openai.com/enterprise-privacy/ · official · read 22 November 2026
Change history
- 2026-10-14: Expanded product-specific runtime, approval, access and privacy evidence with narrow setup steps. Documentation research, not hands-on testing.
- 2026-10-06: Added from OpenAI's Codex pricing page, CLI and security docs and the public GitHub repository. Documentation research only; not tested.
- 2026-10-22: Field-level audit: data-controls claims re-verified verbatim (Improve-the-model toggle or Privacy Portal covers Codex tasks; Include environments setting separate); sandbox/approvals doc re-read - untrusted approval policy retired, network off by default confirmed; Codex Security repo-scanning product added.
- 2026-11-22: Current official-source audit corrected API/security/billing/access/training details and preserved documented conflicts. Documentation research, no account or product test.
Documentation overview expanded with current pricing/access sources. No hands-on results claimed.
Report a correction