codex

officialpopularcautionainpm

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

$ npm i -g @openai/codex
One-liner to try
$ codex

Agent pack

Copy into an agent

A markdown-ready setup brief with install, verify, safe starting commands, and guardrails for AI agents.

Open .mdJSON
Readiness
Human-first CLI · 10/100
Verify
codex --help
Agent URL
/cli/codex/agent.md

Quick reference

Install
npm i -g @openai/codex
Verify
codex --help
First command
codex
Machine JSON
/cli/codex.json

About

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

Example workflow

1. codex

Alternatives worth considering