中文 · English
A

AI Codex CLI Download

Codex CLI download — OpenAI's coding agent in your terminal
Version LatestSize ~30 MBDevelopmentOpen source (Apache-2.0)
OverviewHighlightsVersionsRequirementsInstallFAQAlternativesLicense
Download official releaseOfficial website

Overview

Codex CLI is OpenAI's open-source command-line coding agent. It reads your repo, writes and edits code, and runs commands under your approval.

Highlights

Versions

VersionSizeStatus
Latest~30 MBStable — official channel

Requirements

Install

  1. Install with npm: npm install -g @openai/codex
  2. Run codex in your project folder
  3. Sign in with ChatGPT or set your API key
  4. Describe the task and approve each change

FAQ

How to install Codex CLI?

Install Node.js 22+, then run npm install -g @openai/codex. On Windows, use WSL2 for the smoothest experience.

Is Codex CLI free?

The tool is open source and free; usage requires ChatGPT Plus/Pro sign-in or OpenAI API billing.

How to sign in to Codex CLI?

Run codex in a project folder and choose Sign in with ChatGPT, or export OPENAI_API_KEY for API access.

Codex CLI vs Claude Code?

Codex excels in the OpenAI ecosystem with sandboxed execution; Claude Code is praised for long-context reasoning. Try both — both are easy to install.

Does Codex CLI work offline?

No — it needs network access to call the model, though code edits are applied locally.

Codex CLI network timeout fix?

Set HTTPS_PROXY to a working proxy, or run it from a server with reliable access to api.openai.com.

Alternatives

Claude CodeAnthropic terminal coding agent
GitHub Copilot CLICopilot command line
AiderGit-focused AI pair programmer
Gemini CLIGoogle's terminal agent

License

License: Open source (Apache-2.0)

All software names and trademarks belong to their respective owners. This site only provides official download guidance and does not host any installers.