Codex CLI logo

Codex CLI

Free

OpenAI's Rust-based local terminal agent; lightweight and fast.

FreeFree tier
Type
Open Source
Company
OpenAI

About Codex CLI

Codex CLI is a lightweight coding agent from OpenAI that runs locally on your computer. It operates entirely in the terminal and can be installed on macOS, Linux, or Windows via a simple curl or PowerShell command, or through package managers like npm and Homebrew. The agent allows users to sign in with their ChatGPT account to leverage their subscription plan. Codex CLI is open source and can also be used within IDEs such as VS Code, Cursor, and Windsurf via separate extensions. The repository on GitHub provides full source code, documentation, and release binaries for multiple platforms.

Key Features

Runs locally on your computer as a terminal agent
Open source under the openai/codex GitHub repository
Multiple installation methods: curl, PowerShell, npm, Homebrew, or direct download
Sign in with ChatGPT account to use with Plus, Pro, Business, or Edu plans
Available for macOS (arm64, x86_64) and Linux (x86_64, arm64)

Pros & Cons

Pros
  • Lightweight and runs entirely locally
  • Open source with full transparency and community contributions
  • Multiple easy installation methods
  • Integrates with existing ChatGPT subscription
Cons
  • Requires terminal usage, no built-in GUI
  • May require a ChatGPT subscription for full capabilities
  • Limited to command-line interface, not a full IDE replacement

Best For

Coding assistance directly from the terminalAutomating development tasks with AILocal code generation and editing without leaving the command lineLearning and experimenting with AI-assisted coding

FAQ

What is Codex CLI?
Codex CLI is a lightweight coding agent from OpenAI that runs locally on your computer in the terminal.
How do I install Codex CLI?
On Mac/Linux run: curl -fsSL https://chatgpt.com/codex/install.sh | sh. On Windows run a PowerShell command. It can also be installed via npm (npm install -g @openai/codex) or Homebrew (brew install --cask codex).
Is Codex CLI free to use?
Codex CLI is open source and free to install. However, signing in with a ChatGPT account may require a subscription for certain features.
Can I use Codex CLI in my IDE?
Codex CLI itself is a terminal agent, but OpenAI offers separate installations for IDEs like VS Code, Cursor, and Windsurf.