Local coding agent from OpenAI that provides AI-powered code assistance through a CLI interface
Codex CLI is an AI-powered coding assistant from OpenAI that runs locally on your machine. It provides code generation, completion, and assistance capabilities through a command-line interface, leveraging OpenAI's language models to help with programming tasks.
The tool integrates with ChatGPT accounts, allowing users to access Codex as part of their existing ChatGPT Plus, Pro, Team, Edu, or Enterprise plans. Users can authenticate by signing in with their ChatGPT credentials, though API key authentication is also supported with additional setup. The CLI serves as a local interface to OpenAI's coding capabilities, distinct from the web-based Codex available at chatgpt.com/codex.
Codex CLI targets developers who prefer command-line workflows for AI-assisted coding. It offers multiple deployment options including IDE integrations for VS Code, Cursor, and Windsurf, as well as a desktop app mode accessible via codex app. The tool is distributed as platform-specific binaries for macOS (both Apple Silicon and Intel) and Linux (x86_64 and arm64 architectures).
# via npm
npm install -g @openai/codex
# via Homebrew
brew install --cask codex
