---
type: "GlossaryTerm"
title: "Codex CLI"
description: "Codex CLI is OpenAI's open-source command-line coding agent that plans tasks inside a codebase, edits files, runs shell commands and hands back a reviewable dif"
resource: "https://www.contextstudios.ai/glossary/codex-cli"
language: "en"
tags: ["engineering"]
generated:
  by: "process:contextstudios-md/1"
  at: "2026-10-08T20:44:15.783Z"
status: "stable"
---

# Codex CLI

Codex CLI is OpenAI's open-source command-line coding agent that plans tasks inside a codebase, edits files, runs shell commands and hands back a reviewable diff or pull request. Unlike a chat window, the agent works directly in the developer's local environment: it reads the repository, breaks a task into steps and executes them under defined approval and sandbox rules. Access works via ChatGPT sign-in or an OpenAI API key, and since the 2025 Rust rewrite the tool ships as a single native binary. OpenAI launched Codex CLI in April 2025 as an open-source project; it runs on Codex-tuned models such as gpt-5.3-codex-spark (2026). A typical bug-fix run chains a dozen model calls with file edits and test executions before the agent proposes its patch. The term needs separating from Codex as a product family — cloud agents inside ChatGPT and code-review integrations — as well as from rival terminal tools like Claude Code. Codex CLI is the concrete cli-coding-agent instance of the broader agentic-coding shift.
