Skip to content

codex

OfficialAgent-readyLocal AIAI

Coding agent, terminal code tasks, and prompted edits from the terminal.

The official CLI from OpenAI. Coding agent, terminal code tasks, and prompted edits from the terminal.

Task fit

coding agent, terminal code tasks, and prompted edits from the terminal.

Lane

Set up coding agents, local models, and AI-first terminal workflows.

Operator brief

Use codex for coding agent, terminal code tasks, and prompted edits from the terminal.

Run `codex` and see what comes back.

Repository family

OpenAI

First trust check

The Codex CLI responds and is ready for agent workflows.

Safe first loop

Install, verify, then run one real command.

Agent capability loop

Install command

$ npm i -g @openai/codex

Operator pack

Copy or export the working notes for this CLI before handing it to an agent.

Verify

$ codex --help

The Codex CLI responds and is ready for agent workflows.

First real command

$ codex

First steps

  1. 01Install codex.
  2. 02Run `codex --help` first.
  3. 03Start with `codex`.
  4. 04Authenticate codex before asking the agent to do real work.

When to use / hold off when

Best for

coding agent, terminal code tasks, and prompted edits from the terminal.

Use this when

You work with AI models and inference and want a fast terminal interface.

Hold off when

You're not comfortable with a tool that can write to production.

Trust and constraints

trusted99/100
OfficialInstall readyTrustedCaution
JSON outputNo
Non-interactiveNo
CI-friendlyNo

Why operators pick it

  • codex fits local ai well, especially for coding agent, terminal code tasks, and prompted edits from the terminal.
  • It is the official CLI from OpenAI.
  • Verify with `codex --help` first.

Constraints

  • Sign in before real work.
  • Needs network access.
  • Automation can be brittle.

Repository context

Other CLIs in this family

This is the only CLI surfaced from this family right now.

Facts and links

Install withnpm
npm weekly downloads3.7M
GitHub stars67.5K
LicenseApache-2.0
UpdatedMar 25, 2026