OpenAICLI

Codex CLI

Codex CLI is OpenAI’s official coding agent for inspecting, editing, and running code from your terminal.

It works against your local repository, lets you control models and permissions, and supports interactive tasks as well as repeatable scripts and CI workflows.

Codex CLI

Install

$ npm install -g @openai/codex

Launch

$ codex

What can Codex CLI do?

Understand your codebase

Inspect project files and answer questions with repository context.

Edit and debug code

Make focused changes, find issues, and run checks in your local environment.

Run commands and automate

Use shell tools interactively or call codex exec from scripts and CI pipelines.

Pricing

Individual

ChatGPT Free

Free

Individual

ChatGPT Go

$8.00/month

Individual

ChatGPT Plus

$20.00/month

Individual

ChatGPT Pro (from)

$100.00/month

Developer

API Key

Usage-based

Business

ChatGPT Business (annual)

$20.00/user/month

Business

ChatGPT Business (monthly)

$25.00/user/month

Enterprise

ChatGPT Enterprise & Edu

Contact sales

View full pricing details →

Related Products

Frequently asked questions

Does OpenAI have a Codex CLI?

Yes. Codex CLI is OpenAI’s command-line coding agent for inspecting, editing, and running code in local repositories.

How do I install Codex CLI?

Use the install command shown for your operating system, then run codex from a project directory and sign in with ChatGPT or an API key.

Can Codex CLI edit files and run commands?

Yes. It can inspect and modify files, run local tools, and execute checks subject to the permissions you choose.

Which operating systems does Codex CLI support?

The current manifest lists macOS, Windows, and Linux, with installation and launch commands for each platform.

Is Codex CLI free?

Codex is available through several ChatGPT plans, including Free, and can also use an API key with usage-based billing. Limits and features vary by plan.