What it does
OpenAI's open-source coding agent that runs locally in your terminal. It reads and edits your code, runs commands and connects to MCP servers. Codex also comes as an IDE extension (VS Code, Cursor, Windsurf), a desktop app and a cloud version. Apache-2.0.
Who it's for
Developers and vibe coders who want a terminal agent and already have a ChatGPT plan (Plus, Pro, Business, Edu or Enterprise), or an OpenAI API key.
How to set it up
Install (macOS/Linux):
bashcurl -fsSL https://chatgpt.com/codex/install.sh | shWindows:
powershellpowershell -ExecutionPolicy ByPass -c "irm https://chatgpt.com/codex/install.ps1 | iex"Or with npm or Homebrew:
bashnpm install -g @openai/codex # or brew install --cask codexcd into your project and run codex, then choose Sign in with ChatGPT. Add an AGENTS.md file for project instructions.
bashcodex
Check the official Codex CLI docs for the latest steps.
Example prompts
Explain this codebase and where the main entry point is.Find the bug that makes the login test fail and fix it.Add a dark mode toggle and run the build to make sure it passes.Demo
Demo coming soon
A short walkthrough of Codex CLI in action.
More Coding Agents
- Aider
Aider
Open-source AI pair programming in your terminal. It edits code in your local git repo and works with many LLMs (Claude, DeepSeek, OpenAI models and more).
- Anthropic
Claude Code
Anthropic's agentic coding tool. It reads your codebase, edits files, runs commands, works with git and connects to MCP servers. It runs in the terminal, with VS Code/JetBrains extensions, a desktop app and a web version too.
- Agentic AI Foundation (Linux Foundation)
goose
An open-source, general-purpose AI agent that runs on your machine as a desktop app (macOS, Linux, Windows), a CLI and an API. It isn't only for code: it also handles research, writing and automation. It supports 15+ model providers and connects to tools through MCP extensions. Originally from Block, now part of the Agentic AI Foundation. Apache-2.0.
- Anomaly
OpenCode
An open-source AI coding agent with a terminal UI, plus a desktop app and IDE support. It works with API keys from many LLM providers. It has a full-access build agent and a read-only plan agent you switch between with Tab. MIT licensed.
- OpenHands
OpenHands
An open-source platform for running coding agents. Its Agent Canvas app (labeled beta) is a self-hosted control center where you start agent conversations and set up automations (for example with Slack, GitHub or Linear). It runs the OpenHands agent by default and can also run Claude Code, Codex, OpenCode and other ACP-compatible agents, locally, in Docker, on VMs or in OpenHands Cloud. MIT licensed.