---
slug: "openai-codex-cli"
name: "OpenAI Codex CLI"
effect: "Runs OpenAI's coding agent locally to inspect your repo, edit files and run commands from the terminal"
category: "coding-agent"
url: "https://learn.chatgpt.com/docs/codex/cli"
github: "openai/codex"
pricing: "open-source"
license: "Apache-2.0"
tags: ["cli", "terminal", "openai", "mcp", "code-review"]
platforms: ["macos", "linux", "windows", "vscode", "cursor", "windsurf"]
install_kind: "cli"
date_added: "2026-10-14"
drop_score: 90
stars: 129240
pushed_at: "2026-10-15T00:01:14Z"
signals_status: "ok"
signals_fetched_at: "2026-10-15T01:19:02.863Z"
page: "https://agenttooldrop.com/tools/openai-codex-cli"
---

# OpenAI Codex CLI

Runs OpenAI's coding agent locally to inspect your repo, edit files and run commands from the terminal

Category: Coding agents. Pricing: Open source. License: Apache-2.0.

Platforms: macos, linux, windows, vscode, cursor, windsurf.

## Why you would want it

Codex CLI works against your local repository with the tools already installed on your machine, and you choose the model, reasoning effort, permissions and sandbox for each run. You can use it interactively or call `codex exec` from scripts and CI, run a review against uncommitted changes, a commit or a base branch, add MCP servers with `codex mcp`, and hand work off to Codex cloud. You sign in with a ChatGPT plan or use an API key.

## Best for

- ChatGPT Plus, Pro, Business, Edu or Enterprise users
- Scripted runs in CI with codex exec
- Reviewing changes before a commit

## Use it when

You want a terminal coding agent on OpenAI models with control over sandboxing and approvals, and you have a ChatGPT plan or OpenAI API key.

## Skip it if

You have neither a ChatGPT plan nor an OpenAI API key, or you would rather work in an editor, where OpenAI points you to its IDE extension or the Codex app.

## Install

Install with the standalone installer (macOS, Linux):

```sh
curl -fsSL https://chatgpt.com/codex/install.sh | sh
```

Source: https://github.com/openai/codex#readme

## Live signals

Fetched 2026-10-15T01:19:02.863Z (status: ok).

- Repository: openai/codex
- Stars: 129,240
- Forks: 20,315
- Open issues and PRs: 22,581
- License (GitHub): Apache-2.0
- Last push: 2026-10-15
- Latest release: rust-v0.162.1 (2026-10-09)

## Links

- Website: https://learn.chatgpt.com/docs/codex/cli
- GitHub: https://github.com/openai/codex
- Install instructions verified at: https://github.com/openai/codex#readme
- Source for this entry: https://github.com/openai/codex#readme
- AgentToolDrop page: https://agenttooldrop.com/tools/openai-codex-cli
- Full catalog (JSON): https://agenttooldrop.com/tools.json
