Codex MAX Paid

OpenAI's longest-running coding agent for whole-repository work

Codex MAX is OpenAI’s long-horizon coding agent, released in 2026 as an upgrade to Codex. It targets tasks that run for hours rather than minutes — migrating a framework, clearing a backlog of failing tests, or reviewing a large pull request — and it is available both in the cloud and as a CLI.

What is Codex MAX?

It is OpenAI’s agentic coding product, distinct from plain ChatGPT. “MAX” refers to sustained sessions: the agent keeps a plan across many tool calls, runs the test suite, and revises. It competes directly with Anthropic’s Claude Code and Google’s Gemini CLI, and it plugs into GitHub so reviews can happen on pull requests without a human prompt.

Codex MAX Features

  • Long sessions — documented runs of several hours on a single task.
  • Repo-wide context — indexes a full repository instead of dribbling in files.
  • Parallel tasks — several agents can work separate branches at once.
  • Automated review — comments on pull requests with suggested diffs.
  • CLI and cloud — run locally or hand the job to a sandboxed container.
  • Sandbox by default — network access and file writes need explicit permission.

Product Highlights

Long sessions are the differentiator. Most agents lose coherence after a dozen tool calls; this one can hold a plan across a lunch break. That matters for migrations where step 40 depends on a decision made in step 3.

The trade-off is cost and supervision. Hour-long sessions burn tokens fast, and while the sandbox is safe, a flailing agent can still produce a large confusing diff. Budget for review time, and give it clear acceptance criteria — “tests pass” beats “improve the code”.

Who Should Use Codex MAX?

Engineering teams with legacy code, large test suites or repetitive maintenance work get the most out of it. Solo hobbyist projects rarely justify the price. If your repo is small and your tasks are one-file edits, a cheaper assistant will do the same job.

Use Cases

  • Migrating a codebase between major framework versions over several days.
  • Clearing a backlog of flaky or failing tests in one supervised run.
  • Automated first-pass review on pull requests before a human looks.
  • Adding test coverage to an untested legacy module.
  • Running the same dependency upgrade across a dozen repositories.

Quick Summary

  • Codex MAX is OpenAI’s coding agent for long, repo-wide tasks.
  • It is paid, and hour-long sessions consume tokens quickly.
  • It runs in the cloud or as a CLI, with sandboxed permissions by default.
  • Automated pull-request review is built in.
  • Overkill for small projects and single-file edits.