officialrepo

openai/codex

★ 137k starsRustPublic
View on GitHub ↗

A community setup & usage guide for the Codex CLI GitHub repository. Official repo: openai/codex

Lightweight coding agent that runs in your terminal.

What is Codex CLI?

Codex CLI is OpenAI's open-source terminal coding agent. You describe a task in natural language and it edits code, runs commands, and iterates locally on your machine. Sign in with ChatGPT or an API key.

Installation

npm
npm install -g @openai/codex
Homebrew
brew install --cask codex
npm
npm install -g @openai/codex
npm
npm install -g @openai/codex
Run it
codex
Verify
codex --version

Usage

Run inside a project
cd your-project && codex
Give it a task
codex "add a dark mode toggle to the settings page"

Before you start

Node.js 18+ for the npm route. Sign in with ChatGPT or an OpenAI API key on first run.

Official repository: github.com/openai/codex

FAQ

Is Codex CLI open source?

Yes, it's on GitHub under an open-source licence.

Do I need an account?

Yes — authenticate with ChatGPT or an OpenAI API key.

Where is the official Codex CLI GitHub repository?

The official Codex CLI GitHub repo is hosted at github.com/openai/codex. This page links straight to it and summarises how to install and use Codex CLI.

Is this the official Codex CLI repo?

No. officialrepo.com is an independent community guide. The official Codex CLI GitHub repository is github.com/openai/codex — always treat that repo and its documentation as the source of truth.

This is an independent community guide. Codex CLI and its logo are trademarks of their respective owner; officialrepo.com is not affiliated with or endorsed by the project or GitHub, Inc. The link above points to the genuine official repository.