Codex CLI
OpenAI's terminal coding agent that runs locally on your machine
What it is
A command-line coding agent from OpenAI that reads, edits and runs code in your local checkout. The repo ships the CLI itself, with standalone installers plus npm and Homebrew packages, and the same agent can be used from IDE extensions or a desktop app. Aimed at developers who want an agent in the terminal.
Good for
- Implement a feature across several files
- Fix a failing test from the terminal
- Review and explain an unfamiliar codebase
Install or run
npm install -g @openai/codexCommand as given in the project README. Read the repository before you run anything on your machine.
What you need
A ChatGPT plan or OpenAI API key
Sources
- https://github.com/openai/codex (project README, read 10 Nov 2026)
- https://api.github.com/repos/openai/codex (GitHub API, read 13 Nov 2026)
The summary is ours, written from the README. Spotted an error? See how we work.