← Registry
Harness Official

Codex CLI

Lightweight coding agent from OpenAI that runs locally in your terminal, usable with a ChatGPT plan or API key.

Install

npm install -g @openai/codex
$

Codex is OpenAI's coding agent that runs directly on your machine rather than in the cloud. Install it from npm or Homebrew, run codex in any project, and sign in with a ChatGPT Plus/Pro/Business/Enterprise plan or an API key. Reach for it when you want an agent that reads, edits, and runs code in your local terminal; companion IDE extensions and a desktop app are also available.