Codex CLI is a coding agent from OpenAI that runs locally on your computer. It is one of several Codex surfaces: the same agent is available as an editor extension for VS Code, Cursor, and Windsurf, as a desktop app started with codex app, and as Codex Web, a cloud-based agent hosted at chatgpt.com/codex.
Authentication goes through a ChatGPT account, so the agent is used as part of a Plus, Pro, Business, Edu, or Enterprise plan; an API key is also accepted with additional setup. The CLI ships as native binaries for macOS (Apple Silicon and x8664) and Linux (x8664 and arm64), and is also published as the @openai/codex npm package and a Homebrew cask.
Features
- Local terminal agent: runs on your machine and operates on the current project
- IDE integration: editor extensions for VS Code, Cursor, and Windsurf
- Desktop and web: a desktop app and a hosted cloud agent share the Codex name
- ChatGPT sign-in: usage counts against an existing ChatGPT plan, with API-key access as an alternative
- Native binaries: per-platform executables for macOS and Linux alongside the npm package






