Dev & Engineering ✓ OpenAI · Official coding-agentcliopenaiterminalrust

Codex CLI

OpenAI's official coding agent for your terminal

Source repo
openai/codex
Stars
★ 130k
Last updated
today
License
Apache-2.0
Primary language
Rust

At a glance

How it runs
CLI
Cost
Free tier plus a paid hosted plan
Setup effort
Low · running in minutes
Typical use
Ask it to locate and fix a specific bug from the terminal
Not a fit if
  • Teams that need fully offline use without a ChatGPT account
  • Developers who want an IDE or web UI and avoid the terminal

What does this agent do, and when should you use it?

Codex CLI is OpenAI's local coding agent, built in Rust and run directly from the terminal. It reads your repository, edits files, executes commands, and iterates based on what happens. It's part of the broader Codex family — the same capability is also available as an IDE extension, a desktop app, and cloud-based Codex Web — with the CLI best suited to developers who live in the terminal.

Runs inside your project directory, reads code context, edits files as needed, executes shell commands and tests, and continues based on the results; offers tiered approval/sandbox settings to control how much it can do without explicit confirmation.

  1. Ask it to locate and fix a specific bug from the terminal
  2. Have it implement a small feature matching your codebase's style and get tests passing
  3. Batch-refactor or clean up a module while you review each diff
  4. Use as a fast local iteration tool outside CI, cutting down on editor/terminal context switching

How do you install or deploy this agent?

One-line install on macOS/Linux: curl -fsSL https://chatgpt.com/codex/install.sh | sh. Package managers also work, e.g. npm install -g @openai/codex or brew install --cask codex. After installing, run codex — it will prompt you to sign in with ChatGPT (recommended, uses your Plus/Pro/Business/Edu/Enterprise plan) or configure an API key.

How do you use this agent?

Run codex inside your project directory and describe the task in natural language, e.g.: "Fix the null-pointer issue in src/parser.py and add a regression test." Codex reads the code, proposes changes, and asks for confirmation or acts directly depending on your approval level.

What are this agent's strengths and limitations?

Pros
  • Officially maintained with frequent updates that track OpenAI's latest model capabilities
  • Available as CLI/IDE/desktop/cloud, so switching workflows has low migration cost
  • Open source (Apache-2.0), so its approval and sandbox implementation can be inspected
  • Works with a ChatGPT subscription — no separate pay-as-you-go API key required
Limitations
  • In fully autonomous mode it executes shell commands, so users need to understand the permission boundaries or risk unintended actions
  • Output quality and cost on heavier tasks depend heavily on the chosen model and context — there's no unified benchmark
  • This review did not perform isolated dynamic verification, so reliability conclusions should be treated as preliminary

How does this agent compare with similar options?

Compared to similar terminal coding agents like opencode or Claude Code, Codex CLI's main differentiator is native use of a ChatGPT subscription (no separate metered API key required), plus a fairly consistent experience OpenAI maintains across IDE extension, desktop app, and cloud Codex Web. That's the biggest draw if you're already a paying ChatGPT user and want fewer separate tool accounts.

Key facts side by side with the most closely related agents.

Agent Source review Form / cost Stars Updated Language Full support on
Codex CLI This agent Insufficient evidence CLIFreemium ★ 130k today Rust —
Cersei — Rust SDK for Coding Agents 60 · Some gaps Library / SDKFree + model costs ★ 461 2mo ago Rust OpenAI API · Claude API
Warp Development Environment 44 · Major gaps Desktop app ★ 66k today Rust —
DeepTide - AI Coding Agent by DeepSeek 44 · Major gaps CLIFree + model costs ★ 1.1k 2mo ago Rust OpenAI API · Claude API

How does FollowAgents rate this agent?

FollowAgents source review · FARS-2.1
Insufficient evidence
This review covers the source as of Aug 09, 2026. The project has shipped 3 stable release(s) since, which have not been re-reviewed. The score and verdict describe the reviewed version only. Recent releases ↓
Why each dimension lost points
Trust

Insufficient evidence: AGENTS.md does not address least privilege, user confirmation, data flow transparency, sensitive data handling, dependency security, external effects, rollback, or source attribution. It only mentions sandbox environment variables without detailing permission controls.

Reliability

Insufficient evidence: AGENTS.md does not address self-consistency, dependency availability, or failure messages.

Adaptability

Insufficient evidence: AGENTS.md does not specify target audience, capability boundaries, trigger precision, or environment fit.

Convention

Insufficient evidence: AGENTS.md does not address information architecture, install notes, naming stability, examples/FAQ, known limitations, license, versioning/changelog, or maintenance responsibility.

Effectiveness

Insufficient evidence: AGENTS.md does not address output usability, marginal value, or cost-benefit.

Verifiability

Insufficient evidence: AGENTS.md does not address claim traceability, cross-source corroboration, or fact/inference separation.

Risks and how to mitigate them
  • Not found in source: least-privilege scopingGrant only what the task needs: a dedicated account or read-only token, scoped to specific directories and repos.
  • Not found in source: confirmation before actingTurn on (or add) a confirmation step before it acts, and try it in a sandbox or test environment before real data.
  • Not found in source: data-flow disclosureWatch which external services it contacts (proxy or firewall logs) and keep sensitive data out until you know where it goes.
  • Not found in source: sensitive-data handlingUse dedicated, low-privilege, revocable API keys — never production credentials — and keep secrets out of logs.
  • Not found in source: dependency securityPin versions and run a dependency audit (npm audit, pip-audit) before installing; prefer running it in a container.
  • Not found in source: disclosed external effectsEstablish which external systems it writes to, sends to or changes, and verify with test accounts or repos before production.
  • Not found in source: rollback or recovery pathBack up first, or work on a git branch or snapshot, so its changes can be undone.
  • Not found in source: verifiable attributionInstall from the official repo or registry and check the publisher and URL to avoid look-alike packages.
  • AGENTS.md only provides coding conventions and lacks security, reliability, or user interaction guidance.
  • Static review cannot verify actual behavior; all scores are inferred from file contents.
Evidence confidence: Low Reviewed Aug 09, 2026 Reviewed revision 646f7c0a91b8 New commits since this review; the score may not cover them
See the full review method →

Recent releases

Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.

  1. rust-v0.164.0-alpha.12 0.164.0-alpha.12 Pre-release
    Release notes excerpt
    Release 0.164.0-alpha.12
    View on GitHub ↗
  2. rust-v0.163.0 0.163.0
  3. rust-v0.162.1 0.162.1

FAQ

Do I need to pay to use it?
Signing in with a ChatGPT Plus/Pro/Business/Edu/Enterprise plan is recommended; pay-as-you-go via an API key also works but needs separate setup.
Can it modify my code or run dangerous commands without confirmation?
Codex offers tiered approval and sandbox settings that control how much it can do autonomously; it's worth getting familiar with its behavior in a non-automatic mode before loosening permissions.
Is it the same engine as the IDE extension?
Yes — it's the same underlying Codex capability. The CLI targets terminal workflows, while IDE integrations (VS Code, Cursor, Windsurf) and a desktop app cover other contexts.
View on GitHub ↗ Install ↓

Compare agents like this one

The same FARS review applied across the shortlist this agent qualifies for.

Head-to-head comparisons

Codex CLI ecosystem and extensions

Plugins, config packs, switchers and orchestration layers in the directory built for Codex CLI, by stars; each has its own FARS review.

Dev & Engineering ★ 286k

ECC Engineering Harness

A cross-harness engineering workflow system for planning, testing, review, memory, and agent-configuration security.

Dev & Engineering ★ 173k

Ponytail

Guides coding agents to reuse what already exists and write the smallest implementation that preserves safety boundaries.

Dev & Engineering ★ 137k

GStack Engineering Workflow

Turn Claude Code into a role-based engineering workflow for planning, review, QA, and releases.

Dev & Engineering ★ 114k

Caveman Token-Saving Toolkit

Reduce coding-agent token use by compressing what agents read and shortening what they say.

Dev & Engineering ★ 110k

Agent Skills — Production-Grade Engineering Skills for AI Agents

Structured workflows, quality gates, and senior-engineer practices for AI coding agents across the full development lifecycle.

Dev & Engineering ★ 88k

Archify

Turn an idea, plan, or codebase into an interactive, shareable single-file HTML diagram from inside your coding agent.

Dev & Engineering ★ 84k

RTK Command Output Optimizer

Filter and compress terminal output before coding assistants read it, reducing redundant context.

Dev & Engineering ★ 78k

Ruflo Agent Harness

A coordination, memory, and execution layer for multi-agent work in Claude Code and Codex.

Dev & Engineering ★ 70k

Oh My OpenAgent

An OpenCode and Codex CLI layer for orchestrated coding workflows and integrated developer tools.

Dev & Engineering ★ 56k

CLIProxyAPI

Route CLI model accounts through one compatible API gateway for existing developer tools.

Dev & Engineering ★ 54k

Multica — Multi-Agent Task Collaboration Platform

Assign issues to AI coding agents like teammates — they pick up, report, and hand off for review. Works with 20 agent CLIs, self-hostable.

Dev & Engineering ★ 48k

OpenCodeReview

An AI-powered code review CLI that combines deterministic pipelines with LLM agents, battle-tested at Alibaba scale, delivering precise line-level comments.

Browse Codex CLI skills on FollowSkills → Switching Codex CLI between model providers? Read the CC Switch guide →

Related agents