Codex

Lightweight coding agent that runs in your terminal

openai
by openai
Other · Apache-2.0 · Rust · Updated: 4 months ago
77,699
stars
11,070
Forks
verified
AA
Safety
high
A
Quality

Quickstart

Installing and running Codex CLI

Install globally with your preferred package manager:

# Install using npm
npm install -g @openai/codex
# Install using Homebrew
brew install --cask codex

Then simply run codex to get started.

Each GitHub Release contains many executables, but in practice, you likely want one of these:

Each archive contains a single entry with the platform baked into the name (e.g., codex-x86_64-unknown-linux-musl), so you likely want to rename it to codex after extracting it.

Using Codex with your ChatGPT plan

Run codex and select Sign in with ChatGPT. We recommend signing into your ChatGPT account to use Codex as part of your Plus, Pro, Business, Edu, or Enterprise plan. Learn more about what's included in your ChatGPT plan.

You can also use Codex with an API key, but this requires additional setup.

Docs

This repository is licensed under the Apache-2.0 License.

🔓 Sign in to unlock more
Sign in with GitHub