- Resources
- Command-line Assistants
- Codex CLI
Command-line Assistants
Codex CLI
OpenAI's coding agent for the terminal. It reads, edits, and tests your repository locally, delegates to subagents, connects to MCP servers, hands sessions off to Codex cloud, and runs non-interactively in CI with codex exec.
Highlights
-
Local first, cloud when needed
Work in your checkout, then move a task to Codex cloud with codex cloud and apply the result back to your repository from the terminal.
-
Subagents
Ask Codex to split an investigation across focused agents and bring their findings back into the main session.
-
Scriptable
codex exec runs a task non-interactively for scripts, GitHub Actions, and CI, and the Codex SDK embeds the same agent in your own tools.
-
Sandbox and permissions
Choose when Codex may edit files or run commands without asking, and inspect the writable roots before continuing.
-
Visual and web context
Pass screenshots or diagrams with codex --image and switch on live web search with codex --search.
Available Models
Platforms
Install with npm install -g @openai/codex, brew install --cask codex, or curl -fsSL https://chatgpt.com/codex/install.sh | sh, then run codex and sign in with ChatGPT or an API key.