Codex CLI

github.com/openai/codex AI Coding Tools Open-source projectOpen source

The Codex CLI repository provides a lightweight coding agent that runs in a terminal.

github.com/openai/codex
Codex CLI homepage screenshot

About Codex CLI

Codex CLI is an open-source coding agent from OpenAI that runs locally on a computer through a terminal. It can be installed with install scripts, npm, Homebrew, or downloadable binaries for macOS and Linux.

It can be used by signing in with a ChatGPT Plus, Pro, Business, Edu, or Enterprise plan, or with an API key that requires additional setup. Separate options are described for supported code editors, a desktop app, and a cloud-based web version.

Key features

  • Runs locally on computer through terminal
  • Installs via script on Mac, Linux, and Windows
  • Installs via npm and Homebrew package managers
  • Offers downloadable binaries for macOS and Linux
  • Signs in with ChatGPT Plus, Pro, Business, Edu, Enterprise
  • Supports API key use with additional setup
Best for: People who want to use a coding agent directly in a terminal.
Good for
  • Open source under Apache-2.0 License
  • Multiple install options including npm, Homebrew, and binaries
  • Works with several ChatGPT plan types
Watch out for
  • API key use requires additional setup

Codex CLI at a glance

Type
Open-source project
Pricing
Not confirmed. Check the site
Open source
Yes · Source code
Language
English
Last checked
Oct 5, 2026 · Online when checked
Listed
Oct 5, 2026

Codex CLI alternatives

Tools and sites you could use instead, ranked by how closely they match.

All 24 alternatives

Pi

github.com/earendil-works/pi

Pi provides an agent toolkit with a unified model API, agent loop, terminal UI, and coding command line.

Open source
24 alternatives

Popular in AI Coding Tools

Well-known listings from the same topic.

All 176

Codex CLI FAQ

How do I install Codex CLI on Mac or Linux?
Run curl -fsSL https://chatgpt.com/codex/install.sh | sh.
How do I use Codex CLI with a ChatGPT plan?
Run codex and select Sign in with ChatGPT to use it with a Plus, Pro, Business, Edu, or Enterprise plan.
How is Codex CLI different from other Codex options?
The CLI runs in a terminal, while other options cover VS Code, Cursor and Windsurf editors, a desktop app started with codex app, and a web version at chatgpt.com/codex.
Is something wrong or out of date?

Tell us and an editor will check it.

Own this website?

Claim the listing and suggest updates yourself. An editor checks every claim first.

Claim this listing