Codex
AI coding assistant and IDE
Install with Homebrew
brew install --cask codex
Codex — Official Website
Quick Take: Codex
Buy Codex when you already write ticket-quality specs and review PRs like a staff engineer. In August 2026 the stack is GPT-5.6 Sol, Terra, and Luna; you reach it through ChatGPT desktop after the 2026-07-09 merge (the Codex app for macOS/Windows named on Plus), plus web, CLI, and IDE surfaces. Sandboxes and parallel queues are the overnight backlog tool. Start on Plus; move to Pro 5× or 20× when five-hour windows and weekly caps choke daily agent farms. Skip it as your only agent if most of your week is exploratory debugging. Claude Code and Cursor Composer 2.5 still feel better for that. Keep Codex if you want a ChatGPT-billed PR factory and can live with mandatory human review. Muse Code is a Meta alternative to evaluate, not a reason to ignore GPT-5.6 routing.
Key Fact: Official Codex pricing page: included in ChatGPT Free/Go/Plus/Pro/Business/Enterprise; Plus lists expanded Codex usage and the Codex app for macOS and Windows.
Best For
- •Teams with well-defined routine backlogs and GitHub PR culture
- •Solo builders who need overnight mechanical throughput
- •Managers raising velocity without immediate headcount
- •Maintainers clearing straightforward issues at scale
- •Orgs already standardised on ChatGPT Plus/Pro/Business
Not Ideal For
- •Exploratory debugging that needs constant steering (prefer Claude Code or Cursor Composer)
- •Repos without tests or acceptance criteria
What is OpenAI Codex?
What is OpenAI Codex in August 2026? It is an autonomous coding agent product on the GPT-5.6 family (Sol, Terra, and Luna). You describe a software task; Codex plans, edits, runs tests in an isolated sandbox, iterates on failures, and typically opens a GitHub pull request you review like a teammate's work. It is separate from the discontinued 2021 code-completion model. Packaging also changed: the dedicated Codex macOS desktop app was merged into ChatGPT's unified desktop shell (Chat + Work + Codex) on 2026-07-09. Searching "Codex app" still means this agent product; ChatGPT's Codex pricing page lists "Build with the Codex app for macOS and Windows" under Plus, meaning the ChatGPT-hosted Codex surface, not a resurrected separate SKU. If you are choosing Codex or Claude Code: pick Codex for fire-and-forget cloud PRs on ChatGPT plans; pick Claude Code for interactive terminal steering in your real environment. Codex vs Cursor Composer 2.5: Composer wins IDE-native loops; Codex wins async sandbox queues. Codex vs Muse Code: Muse is Meta's August 2026 terminal agent; Codex remains the OpenAI-native PR factory. Model framing for search freshness: GPT-5.6 Sol, Terra, and Luna reached general availability on 2026-07-09. Sol is the hard-reasoning lane; Terra the balanced default; Luna the volume lane after OpenAI's ~80% Luna and ~20% Terra price-performance cuts around 2026-07-30. Content that still leads with GPT-5.5 as the primary Codex story is stale even if GPT-5.5 remains visible in some limit tables. Where it fits: well-specified routine engineering such as CRUD endpoints, coverage gaps, migrations, dependency bumps, and mechanical refactors. Ambiguous requirements, architecture taste calls, and repos without tests are where it stalls. Think of it as a capable junior who works overnight and still needs senior review.
How Codex works under the hood (August 2026)
Modern Codex combines GPT-5.6-class models with an agent loop tuned for software trajectories: plan, read, edit, execute, observe, repair. When you submit a task, the system analyses repository structure, READMEs, manifests, configs, representative sources, to infer stack and conventions. Visible plans let you redirect before expensive implementation begins. Execution occurs in a sandboxed environment seeded from your connected repo. The agent installs dependencies with your project's package manager, applies edits, and frequently runs tests or typechecks. Failures feed back into the model context so patches are grounded in real stderr, not vibes. Isolation improves security and reproducibility: each run starts clean rather than inheriting a developer's half-broken local state. Model choice shapes behaviour and cost. Sol leans into harder multi-hop reasoning and careful tool use for thorny bugs. Terra aims at balanced quality/latency for everyday agent work. Luna maximises throughput per dollar, especially salient after OpenAI's late-July price-performance push cutting Luna sharply and Terra meaningfully. Product surfaces may default differently by ChatGPT plan; power users should explicitly route volume work away from Sol when policy allows. Delivery usually ends in Git commits and a pull request with narrative of decisions. Code review features can consume the same credit pools as implementation tasks depending on plan rules, budget review automation alongside build automation. The July 2026 ChatGPT desktop rebuild placed this loop beside Chat and Work so professionals stop alt-tabbing between a chat client and a dedicated Codex binary. CLI and IDE extensions extend the same agent identity into terminals and editors for people who never leave those habitats. Limitations are structural. Sandboxes cannot magically reach air-gapped production. Ambiguous product goals still require humans. Benchmarks and demos overstate reliability on messy private monorepos with sparse tests. Governance, SSO, retention, training opt-outs, belongs in Business/Enterprise conversations before you connect the crown jewels. Competitors (Claude Code, Cursor Composer 2.5, Copilot agentic CLI, Muse Code) pressure OpenAI to keep shipping; evaluate quarterly, not annually. Operationally, successful teams treat Codex as a queueing system with SLAs. They define ticket shapes that are eligible for autonomy (clear inputs/outputs, local testability, no unresolved product questions) and shapes that are banned (security-sensitive auth changes without human design, speculative refactors, anything requiring production data). They also instrument outcomes: percentage of PRs merged without refinement, median time-to-first-review, and credit burn per merged change. Those metrics catch silent quality regressions when model defaults shift after GPT-5.6 updates. Security reviewers should map Codex to existing AI tool policies. Sandbox isolation reduces laptop malware risk but does not eliminate training, retention, or exfiltration questions for proprietary code. Business and Enterprise contracts, SSO, and retention controls matter before connecting private monorepos. Pair that with branch protection rules so agent pushes cannot skip required reviewers. On the desktop side, remember the July 2026 merge: training materials that still screenshot a separate Codex.app confuse new hires and create shadow IT installs of obsolete builds. Finally, keep a competitive calendar. Claude Code limit changes, Cursor Composer releases, Copilot agentic CLI updates, and Meta Muse Code's August 2026 launch all change the relative value of staying OpenAI-centric. Re-evaluate quarterly with the same golden-path tickets so comparisons stay apples-to-apples on GPT-5.6 Sol/Terra/Luna versus rival stacks. Query variants this page must answer in plain language: what is openai codex (async GPT-5.6 agent with sandboxes and PRs); codex app mac (use ChatGPT desktop Codex after the 2026-07-09 merge); codex pricing (ChatGPT plan ladder, not a separate SKU); codex vs claude code (async PR factory vs interactive terminal); codex vs cursor (ChatGPT sandbox agent vs IDE-native Composer 2.5); codex vs muse code (OpenAI vs Meta terminal/agent stacks launched into the same 2026 Mac conversation). Dealbreakers: no clear acceptance criteria, no tests, no GitHub permissions for PRs, and regulated code without Business/Enterprise review. If those are true, fix the repo and policy first. Operational metric that matters: percentage of Codex PRs merged without a refinement loop. If that number is low, write better tickets before buying Pro 20×. On Mac specifically, install or update the ChatGPT desktop app, open the Codex surface, connect GitHub with least privilege, and run one tiny task before connecting crown-jewel monorepos. Uninstall obsolete standalone Codex.app shortcuts from internal wikis so new hires do not chase a dead binary.
Key Features
Autonomous task execution on GPT-5.6
Assign a scoped engineering task and let Codex plan, implement, test, and iterate without constant supervision. GPT-5.6 Sol handles deep multi-step reasoning; Terra covers balanced agent runs; Luna targets cheaper high-volume tickets after the late-July price cuts. This is delegation with a visible plan, not autocomplete.
Sandboxed cloud environments
Each task gets an isolated container with your repo cloned in. Codex can install dependencies, run builds and tests, and fail safely without touching your laptop. When finished you get commits on a branch, no orphaned processes or polluted local state.
GitHub pull requests and code review
Codex creates branches, writes descriptive commits, opens PRs, and can participate in review workflows (including mention-driven review patterns where enabled). You keep normal CI and human approval gates; never auto-merge agent output on protected branches.
Parallel multi-task queues
Run independent tickets simultaneously in separate sandboxes. End-of-day backlog dumps, five well-written specs, often become five morning PRs. Dependent tasks should stay sequential so later work sees merged earlier work.
Multi-surface access: desktop, web, CLI, IDE
After the July 2026 desktop rebuild, Codex lives in ChatGPT for Mac/Windows alongside Chat and Work, on chatgpt.com, in CLI tooling, and via IDE extensions. Start a thread in one surface and continue monitoring elsewhere depending on OpenAI's sync features for your plan.
Self-testing and iterative repair
Codex does not only emit diffs. It runs your project's tests, reads failures, and patches until green or stuck. Repos with solid coverage get disproportionately better PRs because the agent can verify its own work.
Interactive refinement after the first PR
Chat follow-ups, "reuse existing auth middleware," "add rate-limit errors", keep task context so refinement is incremental rather than a full restart. Useful when the first pass is 80% right.
Progress visibility and Work adjacency
Watch file reads, commands, and test loops in the UI. Adjacent ChatGPT Work mode handles non-coding professional agents in the same desktop shell, reducing app sprawl for people who previously juggled separate Codex and chat clients.
Who Should Use Codex?
1Team lead with a routine backlog
Half the sprint is well-defined but thankless: add fields, tighten validation, write missing tests, bump a library. Queue those in Codex on Plus or Pro, review PRs in standup, and keep seniors on ambiguous architecture. Throughput rises without pretending the agent replaces judgment.
2Solo founder shipping an MVP
You own the differentiated product logic. Codex burns down CRUD, settings pages, email templates, and boilerplate APIs overnight so your daytime hours stay on the wedge. Use Luna-class volume where available for mechanical tickets; escalate to Sol when a feature crosses many modules.
3Engineering manager scaling output
Headcount is frozen but the roadmap is not. Codex absorbs migrations, coverage climbs, and API boilerplate while humans own system design, incident response, and product discovery. Measure success in merged PRs that pass review, not raw agent message counts.
4Open source maintainer
Issues arrive faster than evenings allow. Turn clear bug reports into Codex tasks with reproduction notes and expected tests. Merge straightforward fixes; reserve design debates for maintainers. Parallel sandboxes help when multiple unrelated issues are ready.
5QA / platform engineer
Coverage is stuck at 45%. Point Codex at under-tested services with explicit edge cases. Review for false confidence, merge, repeat. Pair with Luna economics for many small test-generation tasks after the July 30 cuts when your plan exposes that lane.
6Developer migrating off the old Codex Mac app
You used the standalone Codex desktop client before 2026-07-09. Install/update ChatGPT desktop, reconnect GitHub, and continue the same sandbox-and-PR loop under the Codex surface, no separate app required.
7Developer comparing agent CLIs after Muse Code launch
Shortlists Codex, Claude Code, Cursor Composer, and Muse Code. Runs the same well-specified bugfix in each. Keeps Codex for async PR volume on ChatGPT Plus/Pro and an interactive agent for exploratory work.
How to use OpenAI Codex in August 2026
Codex is a multi-surface product. Most Mac users should start with the official ChatGPT desktop app (unified Chat + Work + Codex). Web, CLI, and IDE paths remain for people who live in the browser or terminal. There is no current standalone Codex-only macOS app SKU.
Choose a surface
Desktop: install ChatGPT for Mac/Windows (Homebrew cask chatgpt or official download). Web: open Codex via ChatGPT. CLI/IDE: follow OpenAI's current Codex CLI and extension docs. Avoid obsolete "openai-codex" standalone app instructions.
Sign in on a ChatGPT plan with Codex access
Free/Go: limited trial-style Codex. Plus (~$20/mo): expanded Codex for regular use. Pro from ~$100/mo (5×) or ~$200/mo (20×): maximum task headroom. Business/Enterprise for teams. Confirm live entitlements on chatgpt.com/codex/pricing.
Connect GitHub
Authorize repository access needed for clones, branches, and PRs. Prefer least privilege, specific repos over org-wide when policy requires. Codex needs push rights to open pull requests.
Pick a repository and write a sharp task
Select a repo with README, conventions, and tests. Write acceptance criteria, constraints, file hints, and examples. Vague prompts waste credits; ticket-quality prompts save review cycles.
Run, monitor, review
Submit and watch the sandbox or walk away. When the PR lands, run CI, review diffs like a senior, refine via chat if needed, then merge. Never auto-merge solely because tests passed.
Pro Tips
- • Start on a side repo for a day before connecting crown-jewel monorepos
- • Queue independent tasks only, serialize dependent work
- • Document AGENTS.md / architecture notes so GPT-5.6 agents inherit your patterns
- • Prefer Luna/Terra for volume mechanical work and Sol for gnarly refactors when your plan allows model choice
Configuration Tips
Write tasks like excellent bug reports
Include what to build, why, acceptance criteria, file pointers, constraints, and an example response or UI behaviour. Five minutes of spec clarity routinely saves a full refinement cycle on GPT-5.6 agents.
Invest in tests before you invest in agents
Codex quality correlates with coverage. Without tests the agent codes blind. Aim for meaningful coverage on core modules before expecting reliable autonomous PRs.
Keep architecture notes where agents can read them
README, ADRs, and AGENTS.md that explain folders, patterns, and forbidden shortcuts help Sol/Terra/Luna produce idiomatic diffs instead of inventing parallel architectures.
Route models by economics and difficulty
After the 2026-07-30 cuts, push high-volume mechanical tickets toward Luna when available; keep Sol for cross-cutting refactors and subtle bugs. Watch plan quotas either way.
Review like a staff engineer
Check security, edge cases, migrations, and whether the approach fits long-term design. Passing CI is necessary, not sufficient.
Separate personal and work ChatGPT accounts
Especially on desktop after the merge, do not leak regulated code into the wrong workspace.
Treat "Codex app" docs as ChatGPT desktop
Rewrite internal onboarding that still says download Codex.app. Point to ChatGPT for Mac, the Codex surface, and chatgpt.com/codex/pricing so entitlements match reality after 2026-07-09.
Alternatives to Codex
Codex is OpenAI's async sandbox-and-PR agent. Alternatives emphasise interactive terminals, IDE-native loops, or other vendors' agent CLIs.
Claude Code
Anthropic's interactive terminal agent (Sonnet 5 / Opus 5 era in mid-2026). You steer step-by-step in your real environment. Prefer Claude Code for exploratory debugging and local toolchains; prefer Codex when you want fire-and-forget cloud PRs on ChatGPT plans. Many teams use both.
Cursor Composer 2.5
Cursor's Composer 2.5 (announced mid-May 2026) strengthens long-running IDE agent tasks at aggressive token pricing. Choose Composer when you want the agent inside the editor with tight UX; choose Codex for ChatGPT-connected sandbox PR factories and desktop Work adjacency.
GitHub Copilot CLI (agentic)
GitHub's agentic CLI keeps billing and permissions closer to Copilot/GitHub Enterprise. Strong when org standards mandate Copilot; Codex wins when the team already standardises on ChatGPT Plus/Pro and GPT-5.6.
Meta Muse Code
Meta's Muse Code launched August 2026 as a macOS/Linux terminal coding agent. Consider it when evaluating non-OpenAI stacks or Meta ecosystem bets; Codex remains the OpenAI-native autonomous PR path.
Devin (Cognition)
Another autonomous coding agent pitched at end-to-end tickets. Compare current demos, pricing, and GitHub maturity side-by-side; the category moves monthly.
ChatGPT Copilot path in VS Code
GitHub Copilot plans can include access to Codex as a third-party agent while you stay in VS Code. Choose that when editor migration is blocked; choose ChatGPT Codex surfaces when you want OpenAI's sandbox-and-PR UX directly.
Pricing
Codex does not use a standalone desktop SKU price after the July 2026 merge. Access follows ChatGPT: Free and Go include limited "test Codex" capacity; Plus at about $20/month expands Codex for typical professional weekly use and lists the Codex app for macOS and Windows; Pro offers roughly 5× headroom from about $100/month and roughly 20× from about $200/month for maximum Codex task volume; Business and Enterprise add admin controls, higher ceilings, and workspace governance. OpenAI's Codex pricing page publishes shared five-hour windows for local messages and cloud tasks, with additional weekly limits possible. Example Plus-table ranges shown for local messages per 5h include GPT-5.6 Sol about 15-90, Terra about 20-110, and Luna about 50-280 (cloud-task columns vary by plan tab). When you hit limits, Plus/Pro users can buy credits; API keys can run extra local tasks at API rates. GPT-5.6 Luna's late-July ~80% cut (and Terra ~20%) improves economics for high-volume agent runs when those models are selectable. Always re-check https://chatgpt.com/codex/pricing/ and https://openai.com/chatgpt/pricing because multipliers and included quotas change. Developer metering also lives on developers.openai.com/codex/pricing.
Pros
- ✓True async autonomy, assign, walk away, review a PR
- ✓Cloud sandboxes isolate risk from your local machine
- ✓Parallel task queues shrink routine backlogs overnight
- ✓Native GitHub branch/PR workflow fits existing review culture
- ✓GPT-5.6 Sol/Terra/Luna covers hard reasoning and cheaper volume lanes
- ✓Multi-surface: ChatGPT desktop, web, CLI, and IDE, not a single brittle app
- ✓Self-test loops raise quality when repos have coverage
- ✓Unified with ChatGPT Work after July 2026, reducing OpenAI app sprawl
- ✓Scales team throughput on predictable work without immediate hiring
Cons
- ✗Requires clear specs, ambiguous tasks produce thrash and burned credits
- ✗Plan quotas (especially Plus) still constrict heavy daily agent farms; Pro is expensive
- ✗Cloud isolation limits access to private networks, local daemons, and some secrets workflows
- ✗Human review remains mandatory; tests do not catch every design mistake
- ✗GitHub-centric PR story may not fit GitLab/Bitbucket-first orgs without workarounds
- ✗Interactive exploration still often feels better in Claude Code or Cursor Composer
Community & Resources
Official anchors are openai.com Codex pages, chatgpt.com/codex and its pricing route, learn.chatgpt.com what's-new, help.openai.com macOS release notes, and developers.openai.com Codex docs/pricing. Community chatter lives on X, Reddit, and engineering blogs sharing task templates, AGENTS.md examples, and ROI anecdotes. Because OpenAI shipped GPT-5.6 GA and the ChatGPT desktop rebuild on 2026-07-09, and cut Luna/Terra prices later in July, treat tutorials older than a few months as suspect if they still lead with GPT-5.5-only Codex or a standalone Codex Mac app. Competitor launch posts (for example Muse Code coverage) are useful for landscape context, not for OpenAI configuration. When sharing public examples, scrub secrets and customer data even from sandbox logs, agent transcripts can include file contents you did not intend to paste into social posts.
Video Tutorials
Getting Started with Codex
More Tutorials
GPT-5 Codex: From Beginner to Expert in 17 minutes
Alex Finn • 77.6K views
OpenAI Codex in your code editor
OpenAI • 199.4K views
Getting started with Codex
OpenAI • 108.6K views
Frequently Asked Questions about Codex
About the Author
Expert Tips for Codex
Spend five minutes writing acceptance criteria before spending fifty dollars of agent time. GPT-5.6 does not fix fuzzy product thinking.
Queue Codex before you leave; review in the morning. Async is the product, fighting it with constant babysitting recreates pair programming with extra latency.
After the July 30 Luna/Terra cuts, deliberately split "cheap volume" and "expensive reasoning" queues. Teams that run everything on Sol burn Pro budgets for renames.
Keep Claude Code or Cursor Composer for exploration; keep Codex for batchable tickets. The July desktop merge unified OpenAI apps, it did not erase complementary interactive agents.
Treat every Codex PR like a capable new hire's first month: correct often enough to trust the loop, wrong often enough that auto-merge is malpractice.
If onboarding still says "download Codex.app," your docs are wrong as of 2026-07-09. Point people at ChatGPT desktop Codex.
If wiki pages still link a standalone Codex Mac app, fix the docs before blaming the model for onboarding failures.
Use the official five-hour limit table to explain Plus pain to finance: Sol burns the window faster than Luna, so model routing is a budget control.
Related Technologies & Concepts
Related Topics
AI Coding Agents
Autonomous and interactive tools that implement and review software changes.
Developer Productivity
Tools that increase engineering throughput on routine work.
Sources & References
Fact-CheckedLast verified: Aug 11, 2026
Key Verified Facts
- GPT-5.6 Sol, Terra, and Luna reached general availability around 2026-07-09 and are the current primary model family for ChatGPT/Codex.[cite-2, cite-4]
- OpenAI cut GPT-5.6 Luna pricing ~80% and Terra ~20% around 2026-07-30 as part of a price-performance push.[cite-3]
- Codex access is sold through ChatGPT plan entitlements and Codex pricing pages rather than a standalone Codex desktop SKU.[cite-1, cite-7, cite-6]
- The ChatGPT macOS/desktop client is the unified shell that hosts Codex after the standalone Codex app merge.[cite-5, cite-4]
- Cursor Composer 2.5 and Meta Muse Code are active 2026 competitors in IDE/terminal agentic coding.[cite-8, cite-9]
- 1
- 2
- 3Advancing the price-performance frontier with GPT-5.6
Accessed Aug 9, 2026
"Luna ~80% and Terra ~20% price reductions."
- 4What's new | ChatGPT Learn
Accessed Aug 9, 2026
"Product updates spanning desktop, models, and Codex-related changes."
- 5ChatGPT macOS app release notes
Accessed Aug 9, 2026
"Desktop release notes for the unified ChatGPT client that hosts Codex."
- 6
- 7
- 8Cursor Composer 2.5
Accessed Aug 9, 2026
"Competitor IDE agent model pricing and long-running agent claims."
- 9Meta Muse Code launch coverage
Accessed Aug 9, 2026
"August 2026 Meta terminal coding agent competitor on macOS/Linux."
- 10Anthropic Claude Opus 5
Accessed Aug 9, 2026
"Competing frontier model context for Claude Code users comparing stacks."
Research queries: OpenAI Codex GPT-5.6 Sol Terra Luna August 2026; ChatGPT Codex pricing Plus Pro usage limits; Codex app macOS merge ChatGPT desktop; Codex vs Claude Code Cursor Composer Muse Code