codex
AI coding agent from OpenAI that runs locally on your computer to assist with development tasks.
Codex CLI is an AI-powered coding assistant from OpenAI that operates locally on your machine. It functions as a coding agent that can help with various development tasks through a command-line interface. The tool integrates with ChatGPT accounts, allowing users to leverage their existing Plus, Pro, Business, Edu, or Enterprise plans.
The CLI tool is part of a broader Codex ecosystem that includes IDE extensions for VS Code, Cursor, and Windsurf, as well as a desktop app mode accessible via codex app. Users can authenticate either through their ChatGPT account (recommended) or via API key setup. The tool is available across multiple platforms including macOS (both Apple Silicon and Intel), Linux (x86_64 and arm64), making it accessible to developers working in different environments.
Codex CLI serves developers who want AI assistance integrated directly into their terminal workflow, complementing the web-based Codex available at chatgpt.com/codex. The local execution model provides developers with AI coding capabilities without requiring constant web browser interaction.
Installation
# via NPM
npm install -g @openai/codex
# via Homebrew
brew install --cask codex

Alternatives & related tools
Claude Code
AI-powered coding assistant that runs in the terminal and understands your codebase to execute tasks through natural language commands.
gemini-cli
Terminal AI agent providing direct command line access to Google Gemini models with file operations, web search, and tool integration.
rtk
Single Rust binary that filters and compresses shell command output (git, tests, linters, etc.) before AI coding agents read it, with under 10ms overhead.
Ollama
CLI tool for running and managing local large language models with REST API and client library support
OmO
Terminal coding agent run through the omo command. It runs on senpi, a fork of pi, and can split a job into parallel agents across multiple models.
add a badge to your README
Maintain codex? Show that it's featured on trmn. The badge links back to this page.
[](https://www.trmn.sh/tools/codex?utm_source=badge)<a href="https://www.trmn.sh/tools/codex?utm_source=badge"><img src="https://www.trmn.sh/badge/codex.svg" alt="Featured on trmn" height="20"></a>