ToolBrief
Menu
Researched

OpenAI Codex

OpenAI's coding agent for repositories, file edits, commands, tests, code review, and delegated software work.

Last verifiedVisit official site

Research facts

Pricing
Codex is included across ChatGPT plans with different limits; most eligible users now consume a shared agentic credit pool based on model input, cached input, and output tokens, with additional credit options by plan.
Evidence summary
This review uses official OpenAI Codex, plan, rate-card, security, privacy, and product materials checked on August 9, 2026. We did not benchmark coding accuracy or cost.
Last verified

Sources

What is OpenAI Codex?

OpenAI Codex is a software-development agent that can understand a repository, search and read files, plan a change, edit code, run terminal commands and tests, analyze failures, review changes, and continue until a task reaches a useful result. The current product is available through ChatGPT desktop in Codex mode, the Codex CLI, an IDE extension, and Codex web. These are connected surfaces of the same coding product, not the historical code-completion model once called Codex.

The official product page positions Codex for routine pull requests, complex refactors, migrations, code review, multi-agent workflows, and scheduled background work. It can use local repositories and developer tools, or delegate eligible tasks to cloud environments. Reusable instructions, skills, plugins, and managed workspace policies let teams adapt it to an existing engineering process.

Local and cloud workflows

In a local workflow, Codex operates against files and tools on the user's machine, subject to the client, sandbox, approvals, and workspace configuration. This is useful when a private repository, local database, emulator, or existing development environment is required. It also means a mistaken command can affect real files, processes, credentials, or services if permissions are too broad.

Cloud tasks run in OpenAI-managed environments with a prepared repository and configured dependencies or secrets. Worktrees and parallel tasks can isolate changes, but isolation is not the same as correctness. Teams should decide which tasks may leave the local environment, which secrets are available, whether network access is necessary, and how a cloud result returns through a branch, patch, or review.

A reliable request includes the intended outcome, constraints, relevant architecture, files or issue, commands for verification, and what must not change. Codex can investigate ambiguity, but it should not be forced to guess product policy, migration compatibility, or acceptable data loss. Store stable repository rules in project guidance and keep one-off business decisions in the task.

Pricing and credit usage

OpenAI's current plan guidance says Codex is included across ChatGPT plans, with limits varying by plan. On April 2, 2026, OpenAI began shifting most eligible customers from approximate per-message accounting to a token-based Codex credit rate card. Usage is now mapped to model input tokens, cached input tokens, and output tokens; a small subset of enterprise customers may remain on a legacy rate card.

Actual spend therefore depends on the selected model, repository context, cache reuse, generated output, reasoning, fast mode, task length, automations, and additional agents. OpenAI's rate card says Codex, ChatGPT Work, ChatGPT for Excel, and Workspace Agents can draw from the same agentic pool where available. Do not budget from a fixed “messages per month” assumption. Run representative tasks, inspect the usage panel, and place caps and alerts around automated or parallel work.

Model names and defaults change. Check the live client and official rate card rather than hard-coding a review's model list. A stronger or faster setting may consume credits more quickly without improving a simple task.

Security and permissions

Codex becomes more useful as it receives access to files, shell commands, Git, browsers, MCP servers, plugins, connectors, and cloud credentials. Every added tool expands the trust boundary. A repository can contain malicious instructions; a dependency script can execute code; a generated command can delete data; a connector can expose information far beyond the current file.

Use least privilege. Begin in version control with a clean, recoverable working state. Protect .env files and credentials, review requested commands, limit network and production access, and avoid automatic approval in unfamiliar code. Separate build credentials from deployment credentials and require human approval for irreversible, expensive, customer-visible, or security-sensitive actions.

Generated code must pass the repository's actual formatter, type checker, unit and integration tests, security checks, and build. Review the diff for unexpected dependencies, copied licenses, disabled safeguards, test weakening, logging of secrets, and unrequested behavior. Code review from another model can help, but it is another signal—not an accountable approver.

Data controls and governance

When signed in with ChatGPT, the applicable ChatGPT consumer terms or business agreement governs Codex data. Official plan guidance says Business, Enterprise, Edu, and API inputs and outputs are not used to improve models by default. For Plus and Pro, conversations may be used unless training is turned off in ChatGPT data controls. Screenshots and connected tools can introduce additional content.

Local workflows run on the device; cloud tasks use OpenAI-managed environments. Organizations should review retention, Compliance API coverage, role-based access, workspace model defaults, plugin and app controls, cloud-task enablement, and which connected services carry across ChatGPT surfaces. A personal account with consumer data settings is not a substitute for an approved business workspace.

Verdict

OpenAI Codex is a broad coding agent rather than a narrow autocomplete feature. It can compress investigation, implementation, testing, and review into one loop and coordinate work across several surfaces. That leverage increases both output and blast radius. The best teams give it clear goals, small permissions, real tests, recoverable branches, cost visibility, and accountable review. Used that way, it can accelerate delivery without pretending software engineering has become automatic.

Strengths

  • Works across desktop, terminal, IDE, and web while keeping a connected ChatGPT identity
  • Can inspect, edit, run, test, review, and iterate across a real repository
  • Supports reusable instructions, skills, plugins, worktrees, cloud delegation, and governed workspace controls

Limitations

  • File, shell, browser, connector, and deployment access create a broad security boundary
  • Cost varies with model, context, output, parallel agents, fast mode, and task duration
  • Passing generated tests does not prove requirements, security, compatibility, or production safety

Best for

  • Developers handling multi-file implementation, debugging, migration, refactoring, and code review
  • Teams with version control, reproducible tests, secret management, approvals, and ownership
  • Organizations standardizing engineering workflows through repository guidance and reusable skills

Not ideal for

  • Unrestricted execution in an unknown repository or on a production machine
  • Merging or deploying material changes without accountable human review
  • Teams that have not chosen data controls, workspace policy, budgets, and tool permissions

Frequently asked questions

Is OpenAI Codex free?

Codex is included across current ChatGPT plans, including Free and Go, but usage limits and credit options vary. Large repositories, long tasks, stronger models, fast mode, and parallel work consume more.

Does OpenAI train on Codex work?

Business, Enterprise, Edu, and API inputs and outputs are not used for model improvement by default. Personal Plus and Pro content may be used unless training is disabled in ChatGPT data controls.

Can Codex run commands and edit files?

Yes. Those capabilities enable real software work and also create risk. Use scoped permissions, review diffs and commands, protect secrets, run trusted checks, and keep changes recoverable in version control.

How this listing was reviewed

This review uses official OpenAI Codex, plan, rate-card, security, privacy, and product materials checked on August 9, 2026. We did not benchmark coding accuracy or cost.

Read the review methodology