Skip to content
  1. Home
  2. AI tools
  3. Codex CLI

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/codex

Command 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

Worth knowingBuilt around OpenAI models and accounts; the cloud Codex product is a separate thing from this CLI.

Sources

The summary is ours, written from the README. Spotted an error? See how we work.

More for coding

See the topic →
  • opencode

    anomalyco/opencode

    Open-source AI coding agent with a terminal UI and desktop app

    ToolGitHub stars: 227k
  • Claude Code

    anthropics/claude-code

    Anthropic's terminal coding agent; this repo hosts issues and plugins

    ToolGitHub stars: 156k
  • Spec Kit

    github/spec-kit

    GitHub's toolkit for spec-driven development with coding agents

    ToolGitHub stars: 150k
  • Pi

    earendil-works/pi

    Minimal terminal coding agent you extend with skills and extensions

    ToolGitHub stars: 122k