Codex CLI

Open source

OpenAI's Apache-2.0 coding agent written in Rust that runs locally in your terminal, with IDE, desktop and cloud counterparts.

GitHub stars
135k
Last 30 days
+6.2k(+5%)
Last commit
yesterday
Repository age
19 months
Version
rust-v0.167.1
Licence
Apache-2.0
Self-hosted
Yes

About Codex CLI

Codex CLI is a coding agent from OpenAI that runs on your own computer from the terminal. The repository describes it as lightweight and written mainly in Rust. Once installed, you start it by running the codex command.

Installation on Mac or Linux uses a curl script, and on Windows a PowerShell script. The installers download from releases.openai.com and fall back to GitHub Releases, and an environment variable can force GitHub Releases. It can also be installed with npm or Homebrew, or from release archives for Apple Silicon and Intel macOS and for x86_64 and arm64 Linux.

For sign-in, the README recommends choosing Sign in with ChatGPT so Codex counts as part of a Plus, Pro, Business, Edu or Enterprise plan. An API key also works but needs extra setup. Related products are named too: an IDE install for VS Code, Cursor and Windsurf, a desktop app opened with codex app, and the cloud agent Codex Web.

Key features

  • Coding agent that runs locally in a terminal
  • Install script for Mac and Linux
  • Install script for Windows via PowerShell
  • Also installable with npm and Homebrew
  • Sign in with a ChatGPT account
  • Available in editors such as VS Code, Cursor and Windsurf
  • Desktop app launched with the codex app command

Good fit for

  • Coding assistance from the command line
  • Working with a ChatGPT plan or an API key
Built with
Rust tools
Tags
coding-agent
cli
terminal
openai
rust
developer-tools
ai

Codex CLI: questions and answers

What is Codex CLI used for?
Codex CLI is OpenAI's Apache-2.0 coding agent written in Rust that runs locally in your terminal, with IDE, desktop and cloud counterparts. It is a good fit for coding assistance from the command line and working with a ChatGPT plan or an API key.
Is Codex CLI open source?
Yes. Codex CLI is open source under the Apache-2.0 licence. Its source code is on GitHub at openai/codex and is written mainly in Rust.
Is Codex CLI free?
Yes. Codex CLI is open source, so the software itself is free to use.
What is Codex CLI an alternative to?
Codex CLI is an open-source alternative to Claude Code, GitHub Copilot, Cursor and Devin. Other open-source alternatives to Claude Code include Aider, OpenCode and Continue.
Is Codex CLI actively maintained?
Yes. The most recent commit to Codex CLI was on 11 November 2026. The project has 135k stars on GitHub, with 6.2k added in the last 30 days.

Open-source alternatives to Codex CLI

See all

SaaS alternatives to Codex CLI

See all