Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
C

codex

> AI 编程
Open source

Lightweight coding agent that runs in your terminal

132.8K stars0 likes20 views
WebsiteGitHubOpen hub

About

Lightweight coding agent that runs in your terminal

Codex CLI is a coding agent from OpenAI that runs locally on your computer.


If you want Codex in your code editor (VS Code, Cursor, Windsurf), install in your IDE.
If you want the desktop app experience, run codex app or visit the Codex App page.
If you are looking for the cloud-based agent from OpenAI, Codex Web, go to chatgpt.com/codex.


Quickstart

Installing and running Codex CLI

Run the following on Mac or Linux to install Codex CLI:

bash
curl -fsSL https://chatgpt.com/codex/install.sh | sh

Run the following on Windows to install Codex CLI:

bash
powershell -ExecutionPolicy ByPass -c "irm https://chatgpt.com/codex/install.ps1 | iex"

The standalone installers download from https://releases.openai.com/codex by default and fall back to GitHub Releases if a metadata or asset download is unavailable. To force GitHub Releases, set CODEX_INSTALLER_USE_RELEASES_OPENAI_COM to false (0 and no are also accepted):

bash
curl -fsSL https://chatgpt.com/codex/install.sh | CODEX_INSTALLER_USE_RELEASES_OPENAI_COM=false sh
powershell
$env:CODEX_INSTALLER_USE_RELEASES_OPENAI_COM='false'; irm https://chatgpt.com/codex/install.ps1 | iex

Codex CLI can also be installed via the following package managers:

bash
# Install using npm
npm install -g @openai/codex
bash
# Install using Homebrew
brew install --cask codex

Then simply run codex to get started.

You can also go to the latest GitHub Release and download the appropriate binary for your platform.

Each GitHub Release contains many executables, but in practice, you likely want one of these:

  • macOS
    • Apple Silicon/arm64: codex-aarch64-apple-darwin.tar.gz
    • x86_64 (older Mac hardware): codex-x86_64-apple-darwin.tar.gz
  • Linux
    • x86_64: codex-x86_64-unknown-linux-musl.tar.gz
    • arm64: codex-aarch64-unknown-linux-musl.tar.gz

Each archive contains a single entry with the platform baked into the name (e.g., codex-x86_64-unknown-linux-musl), so you likely want to rename it to codex after extracting it.

Using Codex with your ChatGPT plan

Run codex and select Sign in with ChatGPT. We recommend signing into your ChatGPT account to use Codex as part of your Plus, Pro, Business, Edu, or Enterprise plan. Learn more about what's included in your ChatGPT plan.

You can also use Codex with an API key, but this requires additional setup.

Docs

  • Codex Documentation
  • Contributing
  • Installing & building
  • Open source fund

This repository is licensed under the Apache-2.0 License.

Issues· 19397 open

View all issuesOpen on GitHub
  • #49095

    [Bug] Declared tools intermittently rejected with "unsupported call: <tool>" in Codex Desktop (web search + connector tools) with a custom model catalog

    bugwindows-osmcpcustom-modeltool-callsUpdated Sep 28, 2026
  • #49094

    Linux desktop: ChatGPT receives cloud history but new chats never sync back to web/iOS

    bugappsessionUpdated Sep 28, 2026
  • #48938

    [Windows][26.924.2738.0] Repeated renderer crashes, white-screen reloads, and severe input lag after update

    bugwindows-osappperformanceUpdated Sep 28, 2026
  • #49088

    CLI --yolo sandbox is lost after app-server restart

    bugsandboxCLIapp-serverUpdated Sep 28, 2026
  • #49092

    codex versions > 156.1 do not allow copy-paste in mate-terminal on Linux

    bugTUICLIUpdated Sep 28, 2026
  • #48024

    CLI 0.156.1: cannot scroll to start of long plan at implementation prompt in Windows Terminal/WSL

    bugTUICLIplanUpdated Sep 28, 2026
  • #48736

    [ChatGPT Web][Sep 2026 UI] Conversation workflow regressions: native links/new-tab behavior removed and direct Delete action lost

    bugsessionUpdated Sep 28, 2026
  • #49091

    Bugs affecting legacy accounts

    bugappUpdated Sep 28, 2026
  • #48967

    Astra performance very poor

    bugmodel-behaviorappcomputer-useperformanceUpdated Sep 28, 2026
  • #49090

    Android app: threads assigned to Sections are inaccessible; Sections only partially work in Remote

    bugsessionremoteUpdated Sep 28, 2026

> Tags

AI编程CLIAgent

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedNov 2, 2026
CategoryAI 编程
PricingOpen source

> Related tools

G
GitHub Copilot
GitHub 官方 AI 编程助手,覆盖补全、Chat 与 Agent 模式。
C
Cursor
AI 原生代码编辑器,对话改代码、多文件 Agent 与规则体系是其核心。
S
skills
Skills for Real Engineers. Straight from my .agents directory.