AI 编程Apache-2.0Rust

Codex CLI

OpenAI’s lightweight coding agent for your terminal.

Star 数
129.3K
Fork 数
20.3K
未关闭 Issue
22.7K
最近提交
2026-10-15

数据来自 GitHub API · 更新于 2026-10-15

Codex CLI 是什么?

Codex CLI is OpenAI’s open-source terminal agent. It reads your repo, proposes and applies changes and runs commands in a sandbox, with approval modes from suggest-only to full auto.

主要功能

  • Sandboxed command execution
  • Approval modes
  • Sign in with ChatGPT or an API key

系统要求

平台
macOS · Linux · Windows
备注
Node.js 22+ for npm installs.

如何安装 Codex CLI

根据项目 README 整理。开源项目更新很快,请以 GitHub 页面上的最新说明为准。

npm

  1. 1
    Install and run.
    npm install -g @openai/codex
    codex

优势

  • Strong sandboxing
  • Works with ChatGPT plans

不足

  • Optimized for OpenAI models

Codex CLI 替代品对比

软件Star 数许可证平台显存
Codex CLI

OpenAI’s lightweight coding agent for your terminal.

129.3KApache-2.0—
Gemini CLI

Google’s open-source AI agent for the terminal.

107.4KApache-2.0—
Aider

AI pair programming in your terminal, with automatic git commits.

49.6KApache-2.0—
opencode

Open-source AI coding agent built for the terminal.

213.6KMIT—
Continue

Open-source AI code assistant for VS Code and JetBrains.

36.2KApache-2.0—
Cline

Autonomous coding agent inside VS Code that asks before it acts.

70.3KApache-2.0—

常见问题

Codex CLI 免费吗?

是的——Codex CLI 是开源软件,采用 Apache-2.0 许可证。商用前请确认软件及模型权重的许可条款。

Codex CLI 支持 Windows、Mac 和 Linux 吗?

Codex CLI 支持:macOS, Linux, Windows。

如何安装 Codex CLI?

1. Install and run.

Codex CLI 有哪些好的替代品?

常见替代品包括 Gemini CLI, Aider, opencode, Continue,详见本页对比表。