跳到主要内容

Codex CLI vs GitHub Copilot CLI

以下是从 11 个维度对 Codex CLI 和 GitHub Copilot CLI 的详细对比。

Codex CLI

OpenAI 开源的 AI 编码代理 CLI

价格
BYOK(自带 API Key)
GitHub Stars
100K+
开源
true
支持模型
GPT-4o, GPT-4.1, o-series(通过 API)
上下文窗口
128K tokens
多文件编辑
true
Git 集成
true
MCP 支持
true
子代理
false
平台支持
macOS, Linux
首发年份
2025
npm install -g @openai/codex

GitHub Copilot CLI

GitHub 官方 AI 命令行建议工具

价格
订阅($10-39/月)
GitHub Stars
11K+
开源
false
支持模型
GPT-4o(通过 GitHub Copilot)
上下文窗口
有限
多文件编辑
false
Git 集成
true
MCP 支持
false
子代理
false
平台支持
macOS, Linux, Windows
首发年份
2024
gh extension install github/gh-copilot

完整对比表

工具价格GitHub Stars开源支持模型上下文窗口多文件编辑Git 集成MCP 支持子代理
Codex CLI🔓
OpenAI 开源的 AI 编码代理 CLI
BYOK(自带 API Key)100K+GPT-4o, GPT-4.1, o-series(通过 API)128K tokens
GitHub Copilot CLI
GitHub 官方 AI 命令行建议工具
订阅($10-39/月)11K+GPT-4o(通过 GitHub Copilot)有限

一键安装

Codex CLInpm install -g @openai/codex
GitHub Copilot CLIgh extension install github/gh-copilot