[{"data":1,"prerenderedAt":1630},["ShallowReactive",2],{"header-counts":3,"footer-counts":6,"compare-codex-vs-warp":9,"compare-a-codex":10,"compare-b-warp":877},{"tools":4,"reviews":5},78,26,{"tools":4,"reviews":5,"playbooks":7,"news":8},22,21,null,{"id":11,"title":12,"alternatives":13,"api_compatible":17,"body":19,"category":779,"chinese_friendly":367,"cover":780,"description":781,"domestic":782,"extension":783,"faq":784,"free":782,"github":81,"languages":800,"lastVerified":9,"meta":803,"models":804,"navigation":370,"notSuitable":808,"opensource":370,"path":812,"pillar":813,"platforms":814,"priceTable":818,"pricing":834,"published":835,"relatedPlaybooks":836,"relatedReviews":839,"score":844,"self_host":782,"seo":845,"seoTitle":9,"slug":846,"sources":847,"stem":859,"suitable":860,"tagline":865,"tags":866,"updated":874,"verdict":875,"website":727,"__hash__":876},"tools\u002Ftools\u002Fcoding\u002Fcli\u002Fcodex.md","Codex CLI",[14,15,16],"coding\u002Fcli\u002Fclaude-code","coding\u002Fcli\u002Faider","coding\u002Fcli\u002Fcline",[18],"openai",{"type":20,"value":21,"toc":763},"minimark",[22,27,74,77,90,93,115,118,150,153,219,225,229,234,239,276,279,283,307,311,331,334,338,453,464,467,612,617,620,674,678,685,688,717,720,749,759],[23,24,26],"h2",{"id":25},"tldr","TL;DR",[28,29,34,46,71],"div",{"className":30},[31,32,33],"card","p-5","my-4",[35,36,37,41,42,45],"p",{},[38,39,40],"strong",{},"一句话："," Codex CLI 是 OpenAI 官方做的终端 Coding Agent，对标 Claude Code。",[38,43,44],{},"Rust 实现 + Windows 原生沙箱 + 子代理 + MCP + Hooks","，ChatGPT Plus\u002FPro\u002FTeam\u002FEdu 已含使用额度。",[35,47,48,51,52,55,56,61,62,65,66,70],{},[38,49,50],{},"2026-07 最新","：稳定版 ",[38,53,54],{},"0.144.1","（7-09）接入 ",[57,58,60],"a",{"href":59},"\u002Fmodels\u002Fgpt-5-6.html","GPT-5.6"," 家族（Sol\u002FTerra\u002FLuna）；新增 ",[38,63,64],{},"ACP 支持","，可在 ",[57,67,69],{"href":68},"\u002Fcoding\u002Fide\u002Fwindsurf.html","Devin Desktop"," \u002F Zed 等 ACP 客户端里作为 Agent provider 运行；此前已作为公测 Agent provider 进入 JetBrains（经 GitHub Copilot，7-07）。",[35,72,73],{},"形态和 Claude Code 几乎一样，差异主要在模型选择。喜欢 GPT 的人选它，喜欢 Claude 的留 Claude Code。",[23,75,76],{"id":76},"它到底是个什么",[35,78,79,85,86,89],{},[57,80,84],{"href":81,"rel":82},"https:\u002F\u002Fgithub.com\u002Fopenai\u002Fcodex",[83],"nofollow","GitHub: openai\u002Fcodex","，",[38,87,88],{},"Apache-2.0 开源","，Rust 写的二进制，428+ 贡献者。在终端里跑一个能读 \u002F 改 \u002F 执行代码的 Agent，类似 Claude Code 但绑定 OpenAI 模型。",[35,91,92],{},"2026 的三个主线：",[94,95,96,103,109],"ol",{},[97,98,99,102],"li",{},[38,100,101],{},"速度 & 实时","：gpt-5.3-codex-spark 推理速度 1000+ token\u002Fs；WebSocket 远程控制延迟优化。",[97,104,105,108],{},[38,106,107],{},"Agent 自主性","：Subagents GA、Smart Approvals、PostToolUse hooks、worktree 自动化。",[97,110,111,114],{},[38,112,113],{},"企业就绪","：自定义 CA 证书、userpromptsubmit hooks、托管配置、插件策略强制。",[35,116,117],{},"最有用的 4 个能力：",[119,120,121,127,133,139],"ul",{},[97,122,123,126],{},[38,124,125],{},"沙箱执行","：默认在受限沙箱跑命令（macOS Sandbox \u002F Linux Landlock \u002F Windows AppContainer），不会污染主机。",[97,128,129,132],{},[38,130,131],{},"MCP 工具调用","：连 GitHub \u002F 数据库 \u002F Slack \u002F 自建 server，支持并行 tool call。",[97,134,135,138],{},[38,136,137],{},"Subagents","：把大任务拆给多个并行 sub-agent，token 用得多但效率高。",[97,140,141,144,145,149],{},[38,142,143],{},"Image inputs","：终端里 ",[146,147,148],"code",{},"codex -i screenshot.png \"解释这个错误\""," 直接读图。",[23,151,152],{"id":152},"价格",[154,155,156,171],"table",{},[157,158,159],"thead",{},[160,161,162,166,168],"tr",{},[163,164,165],"th",{},"档位",[163,167,152],{},[163,169,170],{},"说明",[172,173,174,186,197,208],"tbody",{},[160,175,176,180,183],{},[177,178,179],"td",{},"ChatGPT Plus",[177,181,182],{},"$20\u002F月",[177,184,185],{},"含 Codex CLI 用量（2026-03 起 mini 模型额度 +4×）",[160,187,188,191,194],{},[177,189,190],{},"ChatGPT Pro",[177,192,193],{},"$200\u002F月",[177,195,196],{},"更高额度 + 优先处理 + Spark 研究预览",[160,198,199,202,205],{},[177,200,201],{},"Business \u002F Edu \u002F Team",[177,203,204],{},"$25-30\u002F用户\u002F月起",[177,206,207],{},"企业管理 + SSO + Codex 含在内",[160,209,210,213,216],{},[177,211,212],{},"纯 API",[177,214,215],{},"按 token",[177,217,218],{},"gpt-5.5 ≈ $1.25 \u002F $10 per 1M token",[220,221,222],"blockquote",{},[35,223,224],{},"已经付 ChatGPT Plus 的人，等于白嫖一个 Codex CLI 用量，几乎不必另开 API 账号。",[23,226,228],{"id":227},"真实任务实测基于官方文档归纳","真实任务实测（基于官方文档归纳）",[220,230,231],{},[35,232,233],{},"来源说明：以下基于 Codex CLI 官方 features 文档与公开评测整合。",[235,236,238],"h3",{"id":237},"任务-1在-50k-行-rust-项目里加新-feature","任务 1：在 50k 行 Rust 项目里加新 feature",[240,241,246],"pre",{"className":242,"code":243,"language":244,"meta":245,"style":245},"language-bash shiki shiki-themes github-light github-dark","codex -m gpt-5-codex\n> 在 src\u002Fauth 模块下加 OAuth2 callback handler，参考已有的 token refresh 实现\n","bash","",[146,247,248,265],{"__ignoreMap":245},[249,250,253,257,261],"span",{"class":251,"line":252},"line",1,[249,254,256],{"class":255},"sScJk","codex",[249,258,260],{"class":259},"sj4cs"," -m",[249,262,264],{"class":263},"sZZnC"," gpt-5-codex\n",[249,266,268,272],{"class":251,"line":267},2,[249,269,271],{"class":270},"szBVR",">",[249,273,275],{"class":274},"sVt8B"," 在 src\u002Fauth 模块下加 OAuth2 callback handler，参考已有的 token refresh 实现\n",[35,277,278],{},"Agent 会 plan → 读相关文件 → 跑 cargo check → 跑测试 → 提 diff。子代理可以同时跑 lint 和 test 两条线。",[235,280,282],{"id":281},"任务-2ci-失败自动-debug","任务 2：CI 失败自动 debug",[240,284,286],{"className":242,"code":285,"language":244,"meta":245,"style":245},"codex --features enable post_tool_use_hook\n# 然后跑 cargo test，CI 失败时 Hook 自动触发 Agent 分析失败 + 写 fix\n",[146,287,288,301],{"__ignoreMap":245},[249,289,290,292,295,298],{"class":251,"line":252},[249,291,256],{"class":255},[249,293,294],{"class":259}," --features",[249,296,297],{"class":263}," enable",[249,299,300],{"class":263}," post_tool_use_hook\n",[249,302,303],{"class":251,"line":267},[249,304,306],{"class":305},"sJ8bj","# 然后跑 cargo test，CI 失败时 Hook 自动触发 Agent 分析失败 + 写 fix\n",[235,308,310],{"id":309},"任务-3跨仓库脚手架生成","任务 3：跨仓库脚手架生成",[240,312,314],{"className":242,"code":313,"language":244,"meta":245,"style":245},"codex -m gpt-5-codex\n> 用 mono-repo 模式建 3 个 package：core \u002F cli \u002F web，统一走 pnpm workspace\n",[146,315,316,324],{"__ignoreMap":245},[249,317,318,320,322],{"class":251,"line":252},[249,319,256],{"class":255},[249,321,260],{"class":259},[249,323,264],{"class":263},[249,325,326,328],{"class":251,"line":267},[249,327,271],{"class":270},[249,329,330],{"class":274}," 用 mono-repo 模式建 3 个 package：core \u002F cli \u002F web，统一走 pnpm workspace\n",[35,332,333],{},"子代理并行起 3 个目录的初始化，单次任务跑完 ~3 分钟，token 用约 80k。",[23,335,337],{"id":336},"上手-5-分钟","上手 5 分钟",[240,339,341],{"className":242,"code":340,"language":244,"meta":245,"style":245},"# macOS \u002F Linux\ncurl -fsSL https:\u002F\u002Fchatgpt.com\u002Fcodex\u002Finstall.sh | sh\n\n# Windows（原生 PowerShell）\n# 见官方 Windows setup guide，或用 npm i -g @openai\u002Fcodex\n\ncodex                          # 启动 TUI\ncodex -m gpt-5-codex .         # 在当前目录起 Agent\ncodex --remote wss:\u002F\u002F...       # 远程模式（SSH \u002F 容器）\ncodex features list            # 看可用 feature flag\ncodex features enable unified_exec\n",[146,342,343,348,365,372,378,384,389,397,413,427,441],{"__ignoreMap":245},[249,344,345],{"class":251,"line":252},[249,346,347],{"class":305},"# macOS \u002F Linux\n",[249,349,350,353,356,359,362],{"class":251,"line":267},[249,351,352],{"class":255},"curl",[249,354,355],{"class":259}," -fsSL",[249,357,358],{"class":263}," https:\u002F\u002Fchatgpt.com\u002Fcodex\u002Finstall.sh",[249,360,361],{"class":270}," |",[249,363,364],{"class":255}," sh\n",[249,366,368],{"class":251,"line":367},3,[249,369,371],{"emptyLinePlaceholder":370},true,"\n",[249,373,375],{"class":251,"line":374},4,[249,376,377],{"class":305},"# Windows（原生 PowerShell）\n",[249,379,381],{"class":251,"line":380},5,[249,382,383],{"class":305},"# 见官方 Windows setup guide，或用 npm i -g @openai\u002Fcodex\n",[249,385,387],{"class":251,"line":386},6,[249,388,371],{"emptyLinePlaceholder":370},[249,390,392,394],{"class":251,"line":391},7,[249,393,256],{"class":255},[249,395,396],{"class":305},"                          # 启动 TUI\n",[249,398,400,402,404,407,410],{"class":251,"line":399},8,[249,401,256],{"class":255},[249,403,260],{"class":259},[249,405,406],{"class":263}," gpt-5-codex",[249,408,409],{"class":263}," .",[249,411,412],{"class":305},"         # 在当前目录起 Agent\n",[249,414,416,418,421,424],{"class":251,"line":415},9,[249,417,256],{"class":255},[249,419,420],{"class":259}," --remote",[249,422,423],{"class":263}," wss:\u002F\u002F...",[249,425,426],{"class":305},"       # 远程模式（SSH \u002F 容器）\n",[249,428,430,432,435,438],{"class":251,"line":429},10,[249,431,256],{"class":255},[249,433,434],{"class":263}," features",[249,436,437],{"class":263}," list",[249,439,440],{"class":305},"            # 看可用 feature flag\n",[249,442,444,446,448,450],{"class":251,"line":443},11,[249,445,256],{"class":255},[249,447,434],{"class":263},[249,449,297],{"class":263},[249,451,452],{"class":263}," unified_exec\n",[35,454,455,456,459,460,463],{},"配置文件：",[146,457,458],{},"$CODEX_HOME\u002Fconfig.toml","（默认 ",[146,461,462],{},"~\u002F.codex\u002Fconfig.toml","）。",[23,465,466],{"id":466},"同类对比",[154,468,469,487],{},[157,470,471],{},[160,472,473,476,478,481,484],{},[163,474,475],{},"维度",[163,477,12],{},[163,479,480],{},"Claude Code",[163,482,483],{},"Aider",[163,485,486],{},"Cline",[172,488,489,505,521,537,554,569,584,599],{},[160,490,491,494,497,499,502],{},[177,492,493],{},"形态",[177,495,496],{},"终端 TUI",[177,498,496],{},[177,500,501],{},"终端 REPL",[177,503,504],{},"VS Code 插件",[160,506,507,510,513,516,519],{},[177,508,509],{},"默认模型",[177,511,512],{},"gpt-5-codex",[177,514,515],{},"Claude Sonnet\u002FOpus",[177,517,518],{},"BYOK 任意",[177,520,518],{},[160,522,523,526,529,532,535],{},[177,524,525],{},"含在订阅",[177,527,528],{},"ChatGPT Plus\u002FPro",[177,530,531],{},"Claude.ai $20\u002F月",[177,533,534],{},"❌（仅 API）",[177,536,534],{},[160,538,539,542,545,548,551],{},[177,540,541],{},"沙箱",[177,543,544],{},"macOS Sandbox \u002F Landlock \u002F AppContainer",[177,546,547],{},"类似",[177,549,550],{},"无",[177,552,553],{},"VS Code 环境",[160,555,556,559,562,564,567],{},[177,557,558],{},"MCP",[177,560,561],{},"✅",[177,563,561],{},[177,565,566],{},"部分",[177,568,561],{},[160,570,571,573,576,579,582],{},[177,572,137],{},[177,574,575],{},"✅ GA",[177,577,578],{},"✅ Task tool",[177,580,581],{},"❌",[177,583,581],{},[160,585,586,589,592,595,597],{},[177,587,588],{},"开源",[177,590,591],{},"Apache-2.0",[177,593,594],{},"闭源",[177,596,591],{},[177,598,591],{},[160,600,601,604,606,608,610],{},[177,602,603],{},"原生 Windows",[177,605,561],{},[177,607,566],{},[177,609,561],{},[177,611,561],{},[220,613,614],{},[35,615,616],{},"一句话区分：Codex CLI = OpenAI 官方版的 Claude Code；Claude Code = Anthropic 官方版的 Codex；Aider = 任意 OpenAI 兼容 API 都能跑；Cline = VS Code 里的 GUI 终端 Agent。",[23,618,619],{"id":619},"避坑清单",[94,621,622,628,638,648,654,660],{},[97,623,624,627],{},[38,625,626],{},"国内访问别频繁切 IP","，OpenAI 风控严，账号被封基本无法找回。",[97,629,630,633,634,637],{},[38,631,632],{},"沙箱默认会限制网络","，跑 ",[146,635,636],{},"npm install"," 等需要联网的命令前先看 approval 弹窗。",[97,639,640,643,644,647],{},[38,641,642],{},"Subagents 吃 token 多","，预算敏感时关闭 ",[146,645,646],{},"[agents]"," 配置或换 mini 模型。",[97,649,650,653],{},[38,651,652],{},"WebSocket 远程模式只接受 wss:\u002F\u002F 或 localhost ws:\u002F\u002F","，远程公网必须 TLS。",[97,655,656,659],{},[38,657,658],{},"gpt-5-codex 比 gpt-5.5 便宜但能力对齐","，2026-03 之后默认推荐用 codex 系列而非 5.5。",[97,661,662,669,670,673],{},[38,663,664,665,668],{},"不要用过期的 ",[146,666,667],{},"--approval-mode"," 旧参数","，新版用 ",[146,671,672],{},"codex features"," 子命令管理。",[23,675,677],{"id":676},"适合-不适合","适合 \u002F 不适合",[35,679,680,681,684],{},"✅ 终端 \u002F TMUX \u002F Vim 重度用户；已订阅 ChatGPT Plus \u002F Pro 的人；Windows 原生开发者；headless \u002F SSH \u002F 容器场景。",[682,683],"br",{},"\n❌ GUI 党；纯内网开发；偏好 Claude 长上下文风格的人。",[23,686,687],{"id":687},"相关阅读",[119,689,690,697,704],{},[97,691,692,693],{},"配套 playbook：",[57,694,696],{"href":695},"\u002Fplaybook\u002Fcodex-cli-vs-claude-code.html","Codex CLI vs Claude Code 怎么选",[97,698,699,700],{},"同分类：",[57,701,703],{"href":702},"\u002Fcoding\u002Fcli\u002F","AI CLI 全分类",[97,705,706,707,710,711,710,714],{},"替代品：",[57,708,480],{"href":709},"\u002Fcoding\u002Fcli\u002Fclaude-code.html"," · ",[57,712,483],{"href":713},"\u002Fcoding\u002Fcli\u002Faider.html",[57,715,486],{"href":716},"\u002Fcoding\u002Fcli\u002Fcline.html",[23,718,719],{"id":719},"来源",[119,721,722,729,736,742],{},[97,723,724,725],{},"官方文档：",[57,726,727],{"href":727,"rel":728},"https:\u002F\u002Fdevelopers.openai.com\u002Fcodex\u002Fcli",[83],[97,730,731,732],{},"Features 页：",[57,733,734],{"href":734,"rel":735},"https:\u002F\u002Fdevelopers.openai.com\u002Fcodex\u002Fcli\u002Ffeatures",[83],[97,737,738,739],{},"GitHub：",[57,740,81],{"href":81,"rel":741},[83],[97,743,744,745],{},"2026 更新综述：",[57,746,747],{"href":747,"rel":748},"https:\u002F\u002Fcodex.danielvaughan.com\u002F2026\u002F03\u002F27\u002Fcodex-cli-in-2026-whats-new",[83],[220,750,751],{},[35,752,753,754,758],{},"本卡片由 AIHO 编辑部根据以上公开资料整理，非厂商付费内容；定价与功能以官网为准，欢迎在 ",[57,755,757],{"href":756},"mailto:hello@aiho.net","反馈邮箱"," 反馈更新。",[760,761,762],"style",{},"html pre.shiki code .sScJk, html code.shiki .sScJk{--shiki-default:#6F42C1;--shiki-dark:#B392F0}html pre.shiki code .sj4cs, html code.shiki .sj4cs{--shiki-default:#005CC5;--shiki-dark:#79B8FF}html pre.shiki code .sZZnC, html code.shiki .sZZnC{--shiki-default:#032F62;--shiki-dark:#9ECBFF}html pre.shiki code .szBVR, html code.shiki .szBVR{--shiki-default:#D73A49;--shiki-dark:#F97583}html pre.shiki code .sVt8B, html code.shiki .sVt8B{--shiki-default:#24292E;--shiki-dark:#E1E4E8}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sJ8bj, html code.shiki .sJ8bj{--shiki-default:#6A737D;--shiki-dark:#6A737D}",{"title":245,"searchDepth":367,"depth":367,"links":764},[765,766,767,768,773,774,775,776,777,778],{"id":25,"depth":267,"text":26},{"id":76,"depth":267,"text":76},{"id":152,"depth":267,"text":152},{"id":227,"depth":267,"text":228,"children":769},[770,771,772],{"id":237,"depth":367,"text":238},{"id":281,"depth":367,"text":282},{"id":309,"depth":367,"text":310},{"id":336,"depth":267,"text":337},{"id":466,"depth":267,"text":466},{"id":619,"depth":267,"text":619},{"id":676,"depth":267,"text":677},{"id":687,"depth":267,"text":687},{"id":719,"depth":267,"text":719},"cli","\u002Fimg\u002Ftools\u002Fcodex.webp","Codex CLI 真实评测：OpenAI 官方开源（Apache-2.0）终端 Coding Agent，Rust 实现，原生 Windows 沙箱 + 子代理 + MCP + 钩子 + 远程控制；2026-07 接入 GPT-5.6（Sol\u002FTerra\u002FLuna）家族，支持 ACP 可在 Devin Desktop \u002F Zed 运行，Plus\u002FPro\u002FTeam\u002FEdu 计划已含。",false,"md",[785,788,791,794,797],{"q":786,"a":787},"Codex CLI 和 Claude Code 有什么区别？","形态几乎一致：都是终端 Agent + 沙箱执行 + MCP + 子代理。差异主要在模型——Codex CLI 走 OpenAI 的 gpt-5-codex 系列，Claude Code 走 Anthropic Sonnet\u002FOpus。OpenAI 在原生 Windows 沙箱（不需要 WSL）和 Rust 实现速度上略胜，Claude 在长任务上下文连续性上略胜。",{"q":789,"a":790},"在 Windows 上怎么用？","原生 PowerShell 沙箱模式（推荐），也支持 WSL2。安装命令：curl -fsSL https:\u002F\u002Fchatgpt.com\u002Fcodex\u002Finstall.sh | sh（macOS\u002FLinux），Windows 直接通过 npm 或 PowerShell installer。",{"q":792,"a":793},"国内能用吗？","需要 OpenAI 账号 + 稳定代理。Plus \u002F Pro 订阅可走支付宝。直接 `codex` 即可启动。",{"q":795,"a":796},"Codex CLI 支持本地模型吗？","原生只走 OpenAI API。如果要本地模型，建议用 Aider（OpenAI 兼容 endpoint，可指向 Ollama \u002F vLLM）。",{"q":798,"a":799},"Subagents \u002F Hooks \u002F MCP 是什么？","Subagents：把大任务拆给多个并行子代理；Hooks（PostToolUse \u002F userpromptsubmit）：在工具调用前后插入企业策略；MCP：连外部工具（GitHub \u002F 数据库 \u002F Slack）。Codex 2026 把这三块都做到了 GA。",[801,802],"zh","en",{},[805,806,807,512],"gpt-5.6-sol","gpt-5.6-terra","gpt-5.6-luna",[809,810,811],"重度 GUI 党（终端排斥者请用 Cursor）","国内纯内网（OpenAI API 需稳定代理）","需要 Claude 上下文风格的人","\u002Ftools\u002Fcoding\u002Fcli\u002Fcodex","coding",[815,816,817],"windows","macos","linux",[819,823,826,830],{"plan":179,"price":182,"limit":820,"cn_pay":821,"note":822},"含 Codex CLI 使用额度，默认 gpt-5-codex-mini（2026-03 起额度 +4×）","支付宝","个人入门",{"plan":190,"price":193,"limit":824,"cn_pay":821,"note":825},"更高额度 + 优先处理 + GPT-5.3-Codex-Spark 研究预览","Agent 重度用户",{"plan":201,"price":204,"limit":827,"cn_pay":828,"note":829},"团队管理 + SSO + Codex 含在内","—","团队档",{"plan":831,"price":215,"limit":832,"cn_pay":828,"note":833},"纯 API 调用","gpt-5.5 ≈ $1.25\u002F$10 per 1M tokens（input\u002Foutput）","BYOK 自由模式","ChatGPT Plus\u002FPro\u002FBusiness\u002FEdu\u002FEnterprise 包含 \u002F 或按 OpenAI API 计费","2026-06-18",[837,838],"ai-coding\u002Fcodex-cli-vs-claude-code","ai-coding\u002Fterminal-agent-workflow",[840,841,842,843],"aider-deep-review","claude-code-deep-review","codex-deep-review","cursor-deep-review",{"power":380,"ux":374,"price":374,"cn_support":367,"stability":374},{"title":12,"description":781},"coding\u002Fcli\u002Fcodex",[848,850,852,854,856],{"title":849,"url":727},"Codex CLI 官方文档",{"title":851,"url":734},"Codex CLI Features 官方",{"title":853,"url":81},"Codex CLI GitHub",{"title":855,"url":747},"Codex CLI 2026 更新综述",{"title":857,"url":858},"Codex CLI 0.144.1 Release","https:\u002F\u002Fgithub.com\u002Fopenai\u002Fcodex\u002Freleases","tools\u002Fcoding\u002Fcli\u002Fcodex",[861,862,863,864],"终端 \u002F TMUX \u002F Vim 重度用户","已经订阅 ChatGPT Plus \u002F Pro 的人（白嫖 Codex 用量）","Windows 原生开发者（Codex CLI 有 PowerShell 沙箱，不必走 WSL）","需要远程 SSH \u002F 容器中跑 Agent 的人（headless 友好）","OpenAI 官方终端 Coding Agent，GPT-5.6 家族驱动，支持 ACP",[779,867,868,18,869,870,871,872,873],"agent","terminal","gpt-5","subagents","mcp","opensource","rust","2026-07-20","Claude Code 的 OpenAI 版镜像。Plus \u002F Pro 已含、Windows 原生沙箱、Rust 速度快，喜欢 GPT 派的人首选；Claude Sonnet 4.5 在长任务上仍略胜，喜欢 Claude 的留 Claude Code。","4zwRzenYhUbSOeoZZ5kuIQDF1MkoTXOIYq-1KZ2U2F4",{"id":878,"title":879,"alternatives":880,"api_compatible":9,"body":882,"category":779,"chinese_friendly":267,"cover":1583,"description":1584,"domestic":782,"extension":783,"faq":9,"free":370,"github":1551,"languages":1585,"lastVerified":9,"meta":1586,"models":9,"navigation":370,"notSuitable":9,"opensource":370,"path":1587,"pillar":813,"platforms":1588,"priceTable":1589,"pricing":1606,"published":1607,"relatedPlaybooks":9,"relatedReviews":9,"score":1608,"self_host":782,"seo":1609,"seoTitle":9,"slug":1610,"sources":1611,"stem":1623,"suitable":9,"tagline":1624,"tags":1625,"updated":1607,"verdict":1628,"website":1540,"__hash__":1629},"tools\u002Ftools\u002Fcoding\u002Fcli\u002Fwarp.md","Warp",[14,15,846,881],"coding\u002Fcli\u002Fgemini-cli",{"type":20,"value":883,"toc":1565},[884,886,905,910,913,917,920,931,935,938,942,975,979,990,994,997,1001,1089,1101,1115,1117,1174,1191,1194,1231,1234,1364,1370,1384,1389,1406,1408,1450,1452,1455,1469,1472,1489,1491,1531,1533,1556,1562],[23,885,26],{"id":25},[28,887,889,898],{"className":888},[31,32,33],[35,890,891,893,894,897],{},[38,892,40],{}," 用 Rust 重写的 ",[38,895,896],{},"AI-native 终端","，2020 年创立（红杉\u002FGV 投资），mac 开发者中用户量很大。它不是给老终端加 AI 插件，而是从头围绕「块状命令输出 + 现代文本编辑 + 内置 AI」重新设计。2025 年开源（客户端 AGPLv3，62k+ GitHub stars）。",[35,899,900,901,904],{},"核心能力：自然语言生成命令、本地 + 云端 agent、codebase 索引、跨 zsh\u002Fbash\u002Ffish。代价是 AI 走 ",[38,902,903],{},"credit 制","，重度使用月成本高。",[220,906,907],{},[35,908,909],{},"来源说明：本文基于 warp.dev 官方与定价页、GitHub 仓库、多份独立评测（aitools.inc \u002F theaiagentindex）综合整理。Warp 迭代快、credit 规则随官方调整，请以最新官方信息为准。",[23,911,912],{"id":912},"核心特性",[235,914,916],{"id":915},"块状终端blocks","块状终端（Blocks）",[35,918,919],{},"Warp 最标志性的设计：把每条命令的「输入 + 输出」组织成一个可导航的「块」，而不是一长串滚动文本。好处：",[119,921,922,925,928],{},[97,923,924],{},"历史命令一眼区分，点一下就能复制整块输入或输出",[97,926,927],{},"块可以分享给同事（连命令带输出）",[97,929,930],{},"命令行支持像代码编辑器一样把光标放任意位置编辑、多行编辑、智能选择",[235,932,934],{"id":933},"ai-命令助手","AI 命令助手",[35,936,937],{},"直接在终端里用自然语言问，拿到命令建议、解释和复杂工作流帮助。比如输入「重启 docker 并清缓存」生成对应命令。内置 400+ CLI 工具的智能补全。",[235,939,941],{"id":940},"warp-agent-云端-agent","Warp Agent + 云端 agent",[119,943,944,950,960,966],{},[97,945,946,949],{},[38,947,948],{},"本地 agent","：在终端里 agentic 地完成编码任务",[97,951,952,955,956,959],{},[38,953,954],{},"云端 agent（Cloud Agents）","：关键差异点——",[38,957,958],{},"终端关掉后任务还在云端继续跑","，适合长时间自主工作流",[97,961,962,965],{},[38,963,964],{},"codebase 索引","：付费档支持单仓库最多 10 万文件索引",[97,967,968,974],{},[38,969,970,973],{},[57,971,558],{"href":972},"\u002Fwiki\u002Fmcp.html"," 支持","：所有付费档可用",[235,976,978],{"id":977},"oz多-agent-编排2026-06","Oz：多 agent 编排（2026-06）",[35,980,981,982,984,985,989],{},"2026 年 6 月 Warp 推出 Oz 编排层，能在一个统一工作流里协调 ",[57,983,480],{"href":709},"、",[57,986,988],{"href":987},"\u002Fcoding\u002Fcli\u002Fcodex.html","Codex"," 和 Warp Agent——把多个 agent harness 统一调度。",[235,991,993],{"id":992},"warp-drive","Warp Drive",[35,995,996],{},"团队共享层：保存常用命令为可复用 workflow（带参数）、共享 Notebook、实时 session 分享做结对编程。",[23,998,1000],{"id":999},"价格与运行成本credit-制","价格与运行成本（credit 制）",[154,1002,1003,1018],{},[157,1004,1005],{},[160,1006,1007,1010,1012,1015],{},[163,1008,1009],{},"套餐",[163,1011,152],{},[163,1013,1014],{},"Credits",[163,1016,1017],{},"备注",[172,1019,1020,1034,1048,1061,1075],{},[160,1021,1022,1025,1028,1031],{},[177,1023,1024],{},"Free",[177,1026,1027],{},"$0",[177,1029,1030],{},"限量 AI + BYO 推理",[177,1032,1033],{},"终端基础功能全免费",[160,1035,1036,1039,1042,1045],{},[177,1037,1038],{},"Build",[177,1040,1041],{},"$20\u002F月（年付 $18）",[177,1043,1044],{},"1500\u002F月",[177,1046,1047],{},"官方推荐，前沿模型全开",[160,1049,1050,1053,1055,1058],{},[177,1051,1052],{},"Max",[177,1054,193],{},[177,1056,1057],{},"12× Build",[177,1059,1060],{},"重度自主工作流",[160,1062,1063,1066,1069,1072],{},[177,1064,1065],{},"Business",[177,1067,1068],{},"$50\u002Fseat\u002F月",[177,1070,1071],{},"1500\u002F月\u002F人",[177,1073,1074],{},"团队 ZDR + SSO，最多 25 席",[160,1076,1077,1080,1083,1086],{},[177,1078,1079],{},"Enterprise",[177,1081,1082],{},"联系销售",[177,1084,1085],{},"定制",[177,1087,1088],{},"BYOLLM + 自托管云 agent",[35,1090,1091,1094,1095,1100],{},[38,1092,1093],{},"credit 消耗要点","（据官方与 ",[57,1096,1099],{"href":1097,"rel":1098},"https:\u002F\u002Ftheaiagentindex.com\u002Fagents\u002Fwarp-ai",[83],"theaiagentindex 评测","）：",[119,1102,1103,1106,1109,1112],{},[97,1104,1105],{},"credit 同时用于云端和本地 agent",[97,1107,1108],{},"用前沿模型（GPT \u002F Claude \u002F Gemini）消耗更快",[97,1110,1111],{},"支持 Reload credits（按量加购，有阶梯折扣）+ auto-reload + 团队消费上限",[97,1113,1114],{},"年付约 9 折",[23,1116,337],{"id":336},[240,1118,1120],{"className":242,"code":1119,"language":244,"meta":245,"style":245},"# macOS\nbrew install --cask warp\n\n# Windows\nwinget install Warp.Warp\n\n# Linux（.deb \u002F .rpm \u002F AppImage \u002F pacman，x64 与 ARM64）\n# 去 https:\u002F\u002Fapp.warp.dev\u002Fget_warp 选对应包\n",[146,1121,1122,1127,1141,1145,1150,1160,1164,1169],{"__ignoreMap":245},[249,1123,1124],{"class":251,"line":252},[249,1125,1126],{"class":305},"# macOS\n",[249,1128,1129,1132,1135,1138],{"class":251,"line":267},[249,1130,1131],{"class":255},"brew",[249,1133,1134],{"class":263}," install",[249,1136,1137],{"class":259}," --cask",[249,1139,1140],{"class":263}," warp\n",[249,1142,1143],{"class":251,"line":367},[249,1144,371],{"emptyLinePlaceholder":370},[249,1146,1147],{"class":251,"line":374},[249,1148,1149],{"class":305},"# Windows\n",[249,1151,1152,1155,1157],{"class":251,"line":380},[249,1153,1154],{"class":255},"winget",[249,1156,1134],{"class":263},[249,1158,1159],{"class":263}," Warp.Warp\n",[249,1161,1162],{"class":251,"line":386},[249,1163,371],{"emptyLinePlaceholder":370},[249,1165,1166],{"class":251,"line":391},[249,1167,1168],{"class":305},"# Linux（.deb \u002F .rpm \u002F AppImage \u002F pacman，x64 与 ARM64）\n",[249,1170,1171],{"class":251,"line":399},[249,1172,1173],{"class":305},"# 去 https:\u002F\u002Fapp.warp.dev\u002Fget_warp 选对应包\n",[94,1175,1176,1179,1182,1185,1188],{},[97,1177,1178],{},"安装后用账号登录（国内需代理过验证）",[97,1180,1181],{},"习惯块状输出——每条命令是一个独立块",[97,1183,1184],{},"输入自然语言（如「找出占用 8080 端口的进程并杀掉」）让 AI 生成命令",[97,1186,1187],{},"试 Warp Agent：让它跑一个多步骤任务，看它读输出、自动纠错",[97,1189,1190],{},"团队用户配 Warp Drive 共享 workflow",[23,1192,1193],{"id":1193},"国内使用注意事项",[94,1195,1196,1202,1208,1214],{},[97,1197,1198,1201],{},[38,1199,1200],{},"网络","：AI 推理在境外，agent \u002F 命令生成没代理会卡顿",[97,1203,1204,1207],{},[38,1205,1206],{},"支付","：付费档只收海外卡",[97,1209,1210,1213],{},[38,1211,1212],{},"语言","：界面以英文为主，中文支持弱",[97,1215,1216,1219,1220,1222,1223,1225,1226,1230],{},[38,1217,1218],{},"替代路径","：国内终端 AI 工作流可考虑 ",[57,1221,480],{"href":709},"（配国内中转）、",[57,1224,483],{"href":713},"（开源、可接国内模型 API）、",[57,1227,1229],{"href":1228},"\u002Fcoding\u002Fcopilot\u002Ftongyi-lingma.html","通义灵码"," 命令行能力",[23,1232,1233],{"id":1233},"与同类怎么选",[154,1235,1236,1256],{},[157,1237,1238],{},[160,1239,1240,1242,1244,1248,1252],{},[163,1241,475],{},[163,1243,879],{},[163,1245,1246],{},[57,1247,480],{"href":709},[163,1249,1250],{},[57,1251,483],{"href":713},[163,1253,1254],{},[57,1255,988],{"href":987},[172,1257,1258,1272,1288,1303,1318,1335,1350],{},[160,1259,1260,1262,1264,1267,1270],{},[177,1261,493],{},[177,1263,896],{},[177,1265,1266],{},"终端内 agent",[177,1268,1269],{},"终端内 pair programmer",[177,1271,1266],{},[160,1273,1274,1277,1280,1283,1286],{},[177,1275,1276],{},"终端 UX 革新",[177,1278,1279],{},"★★★★★ 块状\u002F编辑",[177,1281,1282],{},"★★★☆☆ 普通终端跑",[177,1284,1285],{},"★★★☆☆",[177,1287,1285],{},[160,1289,1290,1293,1296,1299,1301],{},[177,1291,1292],{},"云端 agent",[177,1294,1295],{},"★★★★★ 有",[177,1297,1298],{},"✗",[177,1300,1298],{},[177,1302,1285],{},[160,1304,1305,1307,1310,1312,1315],{},[177,1306,588],{},[177,1308,1309],{},"★★★★☆ 客户端 AGPLv3",[177,1311,1298],{},[177,1313,1314],{},"★★★★★ Apache",[177,1316,1317],{},"★★★★☆",[160,1319,1320,1323,1326,1329,1332],{},[177,1321,1322],{},"模型灵活度",[177,1324,1325],{},"★★★★☆ 多家 + BYOK",[177,1327,1328],{},"★★★☆☆ 主 Claude",[177,1330,1331],{},"★★★★★ 任意 API",[177,1333,1334],{},"★★★☆☆ 主 OpenAI",[160,1336,1337,1340,1343,1345,1348],{},[177,1338,1339],{},"成本可预测性",[177,1341,1342],{},"★★★☆☆ credit 制",[177,1344,1317],{},[177,1346,1347],{},"★★★★★ 按 API 付",[177,1349,1317],{},[160,1351,1352,1355,1358,1360,1362],{},[177,1353,1354],{},"国内可用性",[177,1356,1357],{},"★★☆☆☆",[177,1359,1285],{},[177,1361,1317],{},[177,1363,1285],{},[35,1365,1366,1369],{},[38,1367,1368],{},"选 Warp 如果你","：",[119,1371,1372,1375,1378,1381],{},[97,1373,1374],{},"想要根本性更好的终端 UX（块状输出 + 现代编辑）",[97,1376,1377],{},"需要云端 agent 跑关终端也不停的长任务",[97,1379,1380],{},"mac \u002F Linux 用户、能搞定网络和支付",[97,1382,1383],{},"想要一个 GUI 化、可分享、可团队协作的终端",[35,1385,1386,1369],{},[38,1387,1388],{},"别选 Warp 如果你",[119,1390,1391,1397,1400,1403],{},[97,1392,1393,1394,1396],{},"重度使用且预算敏感（credit 制不如按 API 付划算，去 ",[57,1395,483],{"href":713},"）",[97,1398,1399],{},"Windows 重度用户（打磨不如 mac\u002FLinux）",[97,1401,1402],{},"国内 + 不想折腾代理",[97,1404,1405],{},"只想要纯净轻量终端（用 iTerm2 \u002F Alacritty）",[23,1407,619],{"id":619},[119,1409,1410,1416,1426,1432,1438,1444],{},[97,1411,1412,1415],{},[38,1413,1414],{},"credit 制要算账","：Build 的 1500 credits 看着多，跑 agent + 前沿模型消耗快，重度用户得上 Max（$200）或买 Reload credits，成本不低。",[97,1417,1418,1421,1422,1425],{},[38,1419,1420],{},"Windows 打磨落后","：据 ",[57,1423,1099],{"href":1097,"rel":1424},[83],"，Windows 版虽可用，但稳定性和细节不如 mac \u002F Linux。Windows 用户预期别拉太高。",[97,1427,1428,1431],{},[38,1429,1430],{},"开源 ≠ 全开源","：开源的是客户端（AGPLv3）和 UI 框架（MIT），后端服务和 AI 基础设施不开源。要完全自托管得上 Enterprise。",[97,1433,1434,1437],{},[38,1435,1436],{},"AGPLv3 注意合规","：如果你 fork 改 Warp 客户端并对外提供网络服务，AGPLv3 要求公开你的修改源码。企业内部商用前确认许可证义务。",[97,1439,1440,1443],{},[38,1441,1442],{},"数据出网","：默认 AI 走云端。介意代码出网的，Free 档可 BYO 推理，或上 Business\u002FEnterprise 的 Zero Data Retention。",[97,1445,1446,1449],{},[38,1447,1448],{},"国内三道坎","：网络、支付、英文界面，没代理基本玩不转。",[23,1451,677],{"id":676},[35,1453,1454],{},"✅ 适合：",[119,1456,1457,1460,1463,1466],{},[97,1458,1459],{},"想要现代化、AI-native 的终端体验",[97,1461,1462],{},"需要云端 agent 跑长时间自主任务",[97,1464,1465],{},"mac \u002F Linux 开发者",[97,1467,1468],{},"团队需要共享命令 \u002F workflow \u002F 结对",[35,1470,1471],{},"❌ 不适合：",[119,1473,1474,1480,1483,1486],{},[97,1475,1476,1477,1479],{},"预算敏感的重度 AI 使用者（",[57,1478,483],{"href":713}," 按 API 付更省）",[97,1481,1482],{},"Windows 重度用户",[97,1484,1485],{},"国内首选且不想配代理",[97,1487,1488],{},"偏好极简纯净终端",[23,1490,687],{"id":687},[119,1492,1493,1507,1520],{},[97,1494,1495,1496,1498,1499,1498,1501,1498,1503],{},"同类对比：",[57,1497,480],{"href":709}," \u002F ",[57,1500,483],{"href":713},[57,1502,988],{"href":987},[57,1504,1506],{"href":1505},"\u002Fcoding\u002Fcli\u002Fgemini-cli.html","Gemini CLI",[97,1508,1509,1510,1498,1514,1498,1516],{},"概念：",[57,1511,1513],{"href":1512},"\u002Fwiki\u002Fai-agent.html","AI Agent",[57,1515,558],{"href":972},[57,1517,1519],{"href":1518},"\u002Fwiki\u002Fcontext-rot.html","Context Rot",[97,1521,1522,1523,1498,1527],{},"模型：",[57,1524,1526],{"href":1525},"\u002Fmodels\u002Fclaude-opus-4-5.html","Claude Opus 4.5",[57,1528,1530],{"href":1529},"\u002Fmodels\u002Fgpt-5-1-codex-max.html","GPT-5.1-Codex-Max",[23,1532,719],{"id":719},[119,1534,1535,1547,1553],{},[97,1536,1537,1538,1542,1543],{},"官网：",[57,1539,1540],{"href":1540,"rel":1541},"https:\u002F\u002Fwarp.dev",[83]," ｜ 定价：",[57,1544,1545],{"href":1545,"rel":1546},"https:\u002F\u002Fwww.warp.dev\u002Fpricing",[83],[97,1548,738,1549],{},[57,1550,1551],{"href":1551,"rel":1552},"https:\u002F\u002Fgithub.com\u002Fwarpdotdev\u002FWarp",[83],[97,1554,1555],{},"第三方评测：aitools.inc \u002F theaiagentindex.com",[35,1557,1558,1559,1561],{},"本卡片由 AIHO 编辑部根据官方公开资料与第三方评测整理。所有事实点均标注来源；如发现价格 \u002F 命令 \u002F 功能与最新官方信息不一致，请通过 ",[57,1560,757],{"href":756}," 反馈。",[760,1563,1564],{},"html pre.shiki code .sJ8bj, html code.shiki .sJ8bj{--shiki-default:#6A737D;--shiki-dark:#6A737D}html pre.shiki code .sScJk, html code.shiki .sScJk{--shiki-default:#6F42C1;--shiki-dark:#B392F0}html pre.shiki code .sZZnC, html code.shiki .sZZnC{--shiki-default:#032F62;--shiki-dark:#9ECBFF}html pre.shiki code .sj4cs, html code.shiki .sj4cs{--shiki-default:#005CC5;--shiki-dark:#79B8FF}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":245,"searchDepth":367,"depth":367,"links":1566},[1567,1568,1575,1576,1577,1578,1579,1580,1581,1582],{"id":25,"depth":267,"text":26},{"id":912,"depth":267,"text":912,"children":1569},[1570,1571,1572,1573,1574],{"id":915,"depth":367,"text":916},{"id":933,"depth":367,"text":934},{"id":940,"depth":367,"text":941},{"id":977,"depth":367,"text":978},{"id":992,"depth":367,"text":993},{"id":999,"depth":267,"text":1000},{"id":336,"depth":267,"text":337},{"id":1193,"depth":267,"text":1193},{"id":1233,"depth":267,"text":1233},{"id":619,"depth":267,"text":619},{"id":676,"depth":267,"text":677},{"id":687,"depth":267,"text":687},{"id":719,"depth":267,"text":719},"\u002Fimg\u002Ftools\u002Fwarp.webp","Warp 真实评测：用 Rust 重写的 AI-native 终端，块状命令输出、自然语言生成命令、本地+云端 agent、codebase 索引。AIHO 编辑部基于官方与多份独立评测整理，含 credit 定价、与 Claude Code 对比、避坑指南。",[802],{},"\u002Ftools\u002Fcoding\u002Fcli\u002Fwarp",[815,816,817],[1590,1592,1597,1600,1603],{"plan":1024,"price":1027,"limit":1591,"cn_pay":828,"note":1033},"限量 AI credits + BYO 推理，云 agent\u002F索引受限",{"plan":1038,"price":1593,"limit":1594,"cn_pay":1595,"note":1596},"$20\u002F月（年付 9 折 $18）","1500 credits\u002F月，前沿 OpenAI\u002FAnthropic\u002FGoogle 模型","⚠️ 需海外卡","官方推荐档",{"plan":1052,"price":193,"limit":1598,"cn_pay":1599,"note":1060},"12× Build 的 credits","⚠️",{"plan":1065,"price":1068,"limit":1601,"cn_pay":1599,"note":1602},"1500 credits + 团队 ZDR + SAML SSO","团队（最多 25 席）",{"plan":1079,"price":1082,"limit":1604,"cn_pay":828,"note":1605},"无限席位 + BYOLLM + 自托管云 agent","大企业","Free（100-限量 AI）\u002F Build $20\u002Fmo 1500 credits \u002F Max $200\u002Fmo \u002F Business $50\u002Fseat","2026-06-28",{"power":374,"ux":380,"price":367,"cn_support":267,"stability":374},{"title":879,"description":1584},"coding\u002Fcli\u002Fwarp",[1612,1614,1616,1618,1621],{"title":1613,"url":1540},"Warp 官方",{"title":1615,"url":1545},"Warp 定价页",{"title":1617,"url":1551},"Warp GitHub (warpdotdev\u002FWarp)",{"title":1619,"url":1620},"Warp Features & Pricing (aitools.inc)","https:\u002F\u002Faitools.inc\u002Ftools\u002Fwarp",{"title":1622,"url":1097},"Warp AI Review 2026 (theaiagentindex)","tools\u002Fcoding\u002Fcli\u002Fwarp","Rust 重写的 AI-native 终端，块状输出 + agent + 云端 agent",[779,868,867,873,1626,1627],"block-output","cloud-agent","重新发明终端 UX 的标杆：块状输出 + 现代文本编辑 + AI 命令生成确实好用，2025 开源（AGPLv3）加分。但 AI 走 credit 制，重度使用成本高，Windows 打磨不如 mac\u002FLinux，国内网络+支付有门槛。","fLOEItZU23Ka_kxLhuh0UlN02QStTJWIUfFrquBvjdQ",1784565441783]