CreateWithAIHub

AI agent OpenAI

Codex CLI

OpenAI's open-source coding agent that runs locally in your terminal, with IDE, desktop and cloud variants.

Terminal coding agentFree plan + paidOpen source
Visit website ↗
Save

What it is

Codex CLI is OpenAI's open-source coding agent for the terminal. It inspects code, makes changes and runs commands in your local repository, with permission controls and a sandbox for what it may do. It signs in with a ChatGPT plan or an OpenAI API key, and can also run against local models through Ollama or LM Studio. OpenAI also offers Codex as an IDE extension, a desktop app and a cloud agent (Codex Web).

What it's useful for

Making and testing code changes in a local repo from the terminal, or delegating tasks to the cloud version from ChatGPT.

Key features

  • Runs locally against your repository from the terminal
  • /permissions to control file edits and command execution
  • Sandbox with inspectable writable roots
  • codex mcp to add local or remote MCP servers
  • Sign in with ChatGPT or use an API key; custom model providers and local models via --oss (Ollama, LM Studio)

How to use it

macOS / Linux
curl -fsSL https://chatgpt.com/codex/install.sh | sh
Windows
powershell -ExecutionPolicy ByPass -c "irm https://chatgpt.com/codex/install.ps1 | iex"
npm
npm install -g @openai/codex
Homebrew
brew install --cask codex

Commands are copied from the official documentation. Check the docs for the latest version before running them.

Limitations to know

  • Codex in the CLI with OpenAI-hosted models needs ChatGPT Plus ($20/month) or higher (Pro from $100/month; Business $20 per user/month billed annually, $25 billed monthly) or an OpenAI API key billed at API rates
  • The ChatGPT Free and Go plans include Codex only in the desktop app, subject to rollout
  • API-key sessions have no cloud features such as GitHub code review or the Slack integration

Website tech stack

Hosting & CDN
Cloudflare

Detected on chatgpt.com on 23 Nov 2026. This describes the public website only; the product itself may use different technology.

Alternatives

Anthropic's agentic coding tool that works in your terminal, IDE, desktop app and on the web.

Paid

Open-source AI coding agent with a terminal UI, desktop app and web app, supporting many LLM providers.

FreeOpen source

Agentic terminal with a built-in coding agent, an agent CLI for any terminal, and cloud agents for automations.

Free plan + paidOpen source

Factory's Droid coding agent for the terminal, desktop app, IDEs and Slack, with BYOK on a free plan.

Free plan + paid

See all 16 Codex CLI alternatives →

MCP servers for this

AWS Labs' collection of open-source MCP servers for AWS docs, the AWS API, infrastructure as code, databases, costs and more.

FreeOpen source

Open-source MCP server that gives coding agents simplified Figma layout and styling data to implement designs.

Free plan + paidOpen source

Community MCP server and Blender addon that let an AI agent model, light and render scenes in a running Blender.

Free plan + paidOpen source

Skills for this

Design skill for coding agents with 24 commands to steer, critique and audit UI, plus a rule-based detector for AI-slop patterns.

FreeOpen source

Design-intelligence skill that searches UI styles, palettes, font pairings and UX rules to generate a design system for your project.

Free plan + paidOpen source

Vercel's open directory of Agent Skills plus the npx skills CLI that installs them into Claude Code, Codex, Cursor and more.

FreeOpen source

Related resources

Microsoft's open-source framework for end-to-end testing and browser automation across Chromium, Firefox and WebKit.

FreeOpen source

GitHub's official MCP server that lets AI agents work with repositories, issues, pull requests and Actions.

Free plan + paidOpen source

Open-source harness and TypeScript SDK for stateful agents with long-term memory, formerly MemGPT.

FreeOpen source

The MCP project's developer tool for testing and debugging MCP servers from a web UI, a scriptable CLI or a terminal UI.

FreeOpen source

Articles that mention Codex CLI

Type to search. Use ↑ ↓ and Enter.