Codex
A lightweight, open-source coding agent from OpenAI that runs locally in your terminal, enabling AI-powered software engineering tasks from the command line.
At a Glance
About Codex
Codex is OpenAI's coding agent for software engineering tasks such as writing features, fixing bugs, answering questions about a codebase, and proposing reviewable changes. Rather than a single app, Codex is a family of surfaces — a desktop app for macOS and Windows, a terminal CLI, IDE extensions, a cloud web agent, and a security agent — that all run the same underlying agent. It connects to OpenAI's models and works with a ChatGPT account (Plus, Pro, Business, Edu, or Enterprise) or an OpenAI API key. First released in April 2025 as the Codex CLI, it has since expanded into a broad agentic development platform.
What It Is
Codex is an AI coding agent that can read, write, and run code on a developer's behalf, either locally in a sandbox or in a managed cloud environment. The same agent capability is exposed through several products: the Codex app (a desktop command center), the open-source Codex CLI, IDE extensions, Codex Web (the cloud agent at chatgpt.com/codex), and Codex Security. Per OpenAI's docs, a unified "App Server" architecture powers the CLI, the VS Code extension, the web app, the macOS desktop app, and third-party IDE integrations including JetBrains and Xcode, keeping long-running sessions and approval requests consistent across clients. By March 2026 OpenAI reported Codex had grown to more than 2 million weekly active users.
The Codex App
The Codex app is the desktop experience and, per the docs, is positioned as a "command center" for working on multiple Codex threads in parallel. It is available on both macOS and Windows, with most features shared across the two platforms; OpenAI lists Linux as a "get notified" waitlist rather than a current release. The app centers on a project sidebar, active thread view, and review pane. Features the docs describe include multitasking across projects, built-in Git worktree support for isolating parallel changes, an integrated terminal, an in-app browser for rendered pages and browser flows, computer use to drive macOS GUI apps, image generation inside a thread, scheduled automations, and a sidebar that surfaces plans, sources, and generated artifacts. The app can be launched from the CLI via codex app or downloaded directly. A Windows version released in March 2026 added native PowerShell support and a Windows-native agent sandbox.
Codex CLI
The Codex CLI is the open-source, terminal-native surface, built in Rust and licensed under Apache 2.0. Developers install it with npm install -g @openai/codex, brew install --cask codex, or a pre-built binary, then run codex to start an interactive terminal session. Per the docs, it can inspect a repository, edit files, run commands, switch between models and reasoning levels, accept image inputs, run a separate local code-review agent, use subagents to parallelize work, search the web, and launch Codex Cloud tasks from the terminal. The CLI is available on macOS and Linux, with Windows support documented as experimental and best run through WSL.
IDE Extension and Web Surfaces
Beyond the app and CLI, Codex installs as an extension for VS Code, Cursor, and Windsurf, bringing the agent into the editor with shared threads and Auto Context that sync with the desktop app. Codex Web is the cloud-based agent accessible at chatgpt.com/codex, which runs tasks in managed environments rather than on the local machine. Codex also offers integrations for GitHub, Slack, and Linear, plus a Codex SDK, App Server, and GitHub Action for automation. The docs note that Apple deepened the Xcode integration in Xcode 26.3, letting the agent inspect project structure and consult current Apple developer documentation.
Open-Source Core
The Codex CLI repository is hosted at github.com/openai/codex under the Apache License 2.0, with the codebase written primarily in Rust (around 96%). As of the latest release, version 0.130.0 (published May 8, 2026), the project had accumulated roughly 82,500 GitHub stars and about 11,900 forks since its creation in April 2025, across more than 780 releases. The repository documents contributing, installing, and building from source, and OpenAI maintains an open-source fund for ecosystem contributors. Note that the open-source designation applies to the CLI; the desktop app, web agent, and IDE extensions are distributed separately and are not themselves open source.
Codex Security
In March 2026 OpenAI introduced Codex Security, an application-security agent designed to identify and fix software vulnerabilities. It extends the Codex agent toward security review workflows, with documentation covering setup, threat-model tuning, and common questions. OpenAI has described positioning Codex as a broader enterprise agent platform that could eventually handle tasks beyond software development.
Community Discussions
Just tried the new Mac app for Codex
OpenAI shipped a native macOS app for Codex and I've been poking around with it today. They're calling it a command center for managing multiple AI agents on your codebase and I can see why. OpenAI is clearly going after Cursor and Claude Code here. Their pitch is that the bottleneck now isn't what …
Pricing
Open Source
Free to use, modify, and distribute under the Apache License 2.0. Requires a ChatGPT account or OpenAI API key for model access.
- Full source code access under Apache 2.0
- Terminal-based coding agent
- Install via npm or Homebrew
- Use with ChatGPT account or API key
Plus
ChatGPT Plus plan includes expanded Codex usage.
- Expanded Codex usage
- Advanced reasoning with GPT-5.5 Thinking
- Expanded messages and uploads
- Projects, tasks, and custom GPTs
- Early access to new features
Pro
ChatGPT Pro plan includes maximum Codex tasks and highest usage limits.
- Maximum Codex tasks
- 10x or 20x more Codex usage
- Pro reasoning with GPT-5.5 Pro
- Unlimited GPT-5.3 and file uploads
- Maximum deep research and agent mode
Business Codex
Development-focused team plan with pay-as-you-go pricing and no fixed seat fee.
- AI-powered software engineering
- Automated code and security reviews
- Built-in worktrees and cloud environments for multi-agent workflows
- No fixed seat fee; pay as you go based on usage
- SAML SSO and MFA
- No training on your data
- GDPR, CCPA compliance support
Enterprise
Enterprise-grade AI with advanced security, compliance, and custom pricing.
- Expanded context window
- SCIM, EKM, domain verification, role-based access controls
- Custom data retention policies
- Data residency in ten regions
- 24/7 priority support and SLAs
- Invoicing and volume discounts
Capabilities
Key Features
- AI coding agent for reading
- writing
- running
- and reviewing code
- Multiple surfaces: desktop app
- terminal CLI
- IDE extension
- and cloud web agent
- Desktop app for macOS and Windows with parallel threads and Git worktree support
- In-app browser and computer use for GUI and browser tasks
- Scheduled automations and recurring tasks
- Open-source CLI written in Rust
- licensed under Apache 2.0
- CLI install via npm
- Homebrew
- or pre-built binaries
- IDE integration for VS Code
- Cursor
- and Windsurf
- Codex Web cloud agent at chatgpt.com/codex runs tasks in managed environments
- Codex Security agent finds and fixes software vulnerabilities
- Integrations for GitHub
- Slack
- and Linear
- Subagents
- web search
- and Model Context Protocol (MCP) support
- Sign in with ChatGPT account or API key
- Supports Plus
- Pro
- Business
- Edu
- and Enterprise ChatGPT plans
Integrations
Demo Video

