[{"data":1,"prerenderedAt":1441},["ShallowReactive",2],{"header-counts":3,"footer-counts":6,"compare-cline-vs-codex":9,"compare-a-cline":10,"compare-b-codex":667},{"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":18,"body":25,"category":571,"chinese_friendly":572,"cover":573,"description":574,"domestic":575,"extension":576,"faq":577,"free":575,"github":527,"languages":593,"lastVerified":9,"meta":596,"models":597,"navigation":603,"notSuitable":604,"opensource":603,"path":608,"pillar":609,"platforms":610,"priceTable":614,"pricing":627,"published":628,"relatedPlaybooks":629,"relatedReviews":632,"score":636,"self_host":603,"seo":638,"seoTitle":9,"slug":639,"sources":640,"stem":649,"suitable":650,"tagline":656,"tags":657,"updated":664,"verdict":665,"website":519,"__hash__":666},"tools\u002Ftools\u002Fcoding\u002Fcli\u002Fcline.md","Cline",[14,15,16,17],"coding\u002Fcli\u002Froo-code","coding\u002Fcli\u002Faider","coding\u002Fcli\u002Fclaude-code","coding\u002Fide\u002Fcursor",[19,20,21,22,23,24],"openai","anthropic","openrouter","bedrock","vertex","ollama",{"type":26,"value":27,"toc":553},"minimark",[28,33,55,58,61,93,96,99,154,159,170,174,180,185,222,225,229,240,244,247,251,261,264,399,402,464,468,475,478,509,512,543],[29,30,32],"h2",{"id":31},"tldr","TL;DR",[34,35,40,52],"div",{"className":36},[37,38,39],"card","p-5","my-4",[41,42,43,47,48,51],"p",{},[44,45,46],"strong",{},"一句话："," Cline 是 VS Code 里的开源 AI Agent 插件（Apache-2.0，58k+ stars），",[44,49,50],{},"BYOK 模式 + Plan-then-Act 工作流 + 每步审批 + 最大 MCP 生态","，定位为「谨慎派」的标杆。",[41,53,54],{},"不订阅、不抽成，你直接付 API 钱；成本敏感的人可以接 DeepSeek V4 Pro（输入 $0.435 \u002F 1M token），把月费压到 Cursor 的几分之一。",[29,56,57],{"id":57},"它到底是个什么",[41,59,60],{},"Cline（原名 Claude Dev）是 VS Code 扩展商店里的开源 AI Agent。和 Cursor \u002F Trae 这种独立 IDE 不同，它就是个插件，你装上就用：",[62,63,64,71,77,87],"ul",{},[65,66,67,70],"li",{},[44,68,69],{},"形态","：VS Code 右侧栏开一个 Cline 面板，输入任务 → Plan → Act → 每步审批 → 直到完成。",[65,72,73,76],{},[44,74,75],{},"模型","：完全 BYOK（Bring Your Own Key）。OpenAI \u002F Anthropic \u002F OpenRouter \u002F Bedrock \u002F Vertex \u002F Ollama \u002F DeepSeek \u002F Qwen 全支持。",[65,78,79,82,83,86],{},[44,80,81],{},"MCP","：原生支持 MCP 协议，并维护一个",[44,84,85],{},"社区 Marketplace","——比 Cursor \u002F Claude Code 的 MCP 生态都大。",[65,88,89,92],{},[44,90,91],{},"开源","：Apache-2.0，可 fork \u002F 审计 \u002F 自部署，企业合规友好。",[41,94,95],{},"它和 Roo Code 共享同一个祖宗（Claude Dev），2024 分叉之后各走各路。Cline 更社区驱动（MCP Marketplace 是社区维护，Star 数高），Roo Code 更产品驱动（自带 Cloud Agents、Team Policy）。",[29,97,98],{"id":98},"价格",[100,101,102,117],"table",{},[103,104,105],"thead",{},[106,107,108,112,114],"tr",{},[109,110,111],"th",{},"档位",[109,113,98],{},[109,115,116],{},"说明",[118,119,120,132,143],"tbody",{},[106,121,122,126,129],{},[123,124,125],"td",{},"插件本体",[123,127,128],{},"免费",[123,130,131],{},"Apache-2.0 开源",[106,133,134,137,140],{},[123,135,136],{},"BYOK",[123,138,139],{},"按 API 计费",[123,141,142],{},"0 厂商抽成，付的钱全进 API 厂商口袋",[106,144,145,148,151],{},[123,146,147],{},"Cline Teams",[123,149,150],{},"询价",[123,152,153],{},"SSO + RBAC + 集中策略 + 审计 + 用量分析",[41,155,156],{},[44,157,158],{},"真实成本范例（参考）：",[62,160,161,164,167],{},[65,162,163],{},"Claude Sonnet 4.6 BYOK：$3 \u002F $15 per 1M token（input\u002Foutput），重度日用 $30-100\u002F月",[65,165,166],{},"DeepSeek V4 Pro BYOK：$0.435 \u002F $0.87 per 1M token，重度日用 $5-15\u002F月",[65,168,169],{},"Ollama 本地：$0（电费忽略），但需要 RTX 3090+ 才能跑 Qwen2.5-Coder 32B",[29,171,173],{"id":172},"真实任务实测基于公开素材归纳","真实任务实测（基于公开素材归纳）",[175,176,177],"blockquote",{},[41,178,179],{},"来源说明：以下场景为 Cline GitHub 文档与 Qodo \u002F Serenities AI 评测的工作流归纳。",[181,182,184],"h3",{"id":183},"任务-1让-cline-在陌生代码库里加-feature","任务 1：让 Cline 在陌生代码库里加 feature",[186,187,188,191,209,215],"ol",{},[65,189,190],{},"输入任务：\"在这个 Express 项目里加一个 \u002Fapi\u002Fusers\u002Fme endpoint\"",[65,192,193,196,197,201,202,201,205,208],{},[44,194,195],{},"Plan 阶段","：Cline 先读 ",[198,199,200],"code",{},"package.json"," + ",[198,203,204],{},"app.js",[198,206,207],{},"routes\u002F","，列出需要新建\u002F修改的文件",[65,210,211,214],{},[44,212,213],{},"Act 阶段","：每改一个文件、每跑一条命令都弹审批",[65,216,217,218,221],{},"完成后跑 ",[198,219,220],{},"npm test"," 验证",[41,223,224],{},"第一次用会觉得\"怎么这么多次点击\"，但在不熟悉的代码库里这就是安全网。",[181,226,228],{"id":227},"任务-2byok-切到-deepseek-压成本","任务 2：BYOK 切到 DeepSeek 压成本",[41,230,231,232,235,236,239],{},"设置里选 OpenAI-compatible，base URL 填 DeepSeek 的 endpoint（",[198,233,234],{},"https:\u002F\u002Fapi.deepseek.com","），key 填好，模型选 ",[198,237,238],{},"deepseek-coder","。同样任务从月费 $50 降到 $10 量级。质量略低于 Claude Sonnet 4.6，但对常规改动够用。",[181,241,243],{"id":242},"任务-3mcp-marketplace-装数据库-server","任务 3：MCP Marketplace 装数据库 server",[41,245,246],{},"Cline 面板 → MCP Marketplace → 装 Postgres MCP server → 配 connection string → 让 AI 直接查表、改 schema、跑 migration。这是 Cursor 也能做但生态没这么丰富的部分。",[29,248,250],{"id":249},"上手-5-分钟","上手 5 分钟",[252,253,259],"pre",{"className":254,"code":256,"language":257,"meta":258},[255],"language-text","1. VS Code Marketplace 搜 \"Cline\"，作者 saoudrizwan，安装\n2. 左侧栏点 Cline 图标 → Settings\n3. 选 API Provider（Anthropic \u002F OpenAI \u002F OpenRouter \u002F DeepSeek \u002F Ollama …）\n4. 填 API key，选模型\n5. 回到主面板，输入任务 → Plan → 审批 → Act\n6. 装 MCP server：Cline 面板顶部 \"MCP Servers\" → Marketplace\n","text","",[198,260,256],{"__ignoreMap":258},[29,262,263],{"id":263},"同类对比",[100,265,266,284],{},[103,267,268],{},[106,269,270,273,275,278,281],{},[109,271,272],{},"维度",[109,274,12],{},[109,276,277],{},"Roo Code",[109,279,280],{},"Cursor",[109,282,283],{},"Claude Code",[118,285,286,301,315,330,346,365,382],{},[106,287,288,290,293,295,298],{},[123,289,69],{},[123,291,292],{},"VS Code 插件",[123,294,292],{},[123,296,297],{},"独立 IDE",[123,299,300],{},"终端",[106,302,303,305,308,310,313],{},[123,304,91],{},[123,306,307],{},"Apache-2.0",[123,309,307],{},[123,311,312],{},"闭源",[123,314,312],{},[106,316,317,319,322,324,327],{},[123,318,136],{},[123,320,321],{},"✅",[123,323,321],{},[123,325,326],{},"部分",[123,328,329],{},"❌",[106,331,332,335,338,341,344],{},[123,333,334],{},"默认审批",[123,336,337],{},"每步",[123,339,340],{},"可配置",[123,342,343],{},"Accept All",[123,345,340],{},[106,347,348,351,357,360,363],{},[123,349,350],{},"MCP 生态",[123,352,353,356],{},[44,354,355],{},"最大","（Marketplace）",[123,358,359],{},"中",[123,361,362],{},"中（注册表 200+）",[123,364,359],{},[106,366,367,370,373,376,379],{},[123,368,369],{},"团队功能",[123,371,372],{},"Cline Teams（询价）",[123,374,375],{},"Cloud Team $99\u002F月",[123,377,378],{},"Teams $40\u002F用户\u002F月",[123,380,381],{},"Claude Team",[106,383,384,387,390,393,396],{},[123,385,386],{},"适合",[123,388,389],{},"谨慎派 + BYOK",[123,391,392],{},"Mode 切换重度 + Cloud Agent",[123,394,395],{},"GUI 全能",[123,397,398],{},"终端硬核",[29,400,401],{"id":401},"避坑清单",[186,403,404,410,424,434,440,446],{},[65,405,406,409],{},[44,407,408],{},"每步审批默认开","，新手会觉得烦——可在设置里把信任的工具加白名单（read_file \u002F list_dir 等）减少弹窗。",[65,411,412,415,416,419,420,423],{},[44,413,414],{},"BYOK 别填错 base URL","，DeepSeek \u002F 第三方 OpenAI 兼容端需要写对 ",[198,417,418],{},"https:\u002F\u002Fapi.deepseek.com\u002Fv1","，少 ",[198,421,422],{},"\u002Fv1"," 会 404。",[65,425,426,429,430,433],{},[44,427,428],{},"Plan 阶段读太多文件","，第一轮上下文容易吃光配额——大项目里加 ",[198,431,432],{},".clineignore"," 排除 node_modules \u002F dist。",[65,435,436,439],{},[44,437,438],{},"MCP server 装多了会拖慢启动","，VS Code 启动时会逐个连，配置 30+ 个 server 会明显卡顿，按需启用。",[65,441,442,445],{},[44,443,444],{},"OpenRouter \u002F 第三方代理 endpoint 偶尔抽风","，可以同时配 2 个 provider 互为备份。",[65,447,448,451,452,455,456,459,460,463],{},[44,449,450],{},"跨平台 path 问题","：Windows 下 Cline 跑的 shell 默认是 cmd 而非 git-bash，命令里 ",[198,453,454],{},"&&"," \u002F ",[198,457,458],{},"$HOME"," 等可能失败，配置改 ",[198,461,462],{},"terminal.integrated.defaultProfile.windows","。",[29,465,467],{"id":466},"适合-不适合","适合 \u002F 不适合",[41,469,470,471,474],{},"✅ BYOK 派（用 DeepSeek \u002F Qwen \u002F Ollama 压成本）；对 AI 自主性谨慎的人；需要大 MCP 生态；VS Code 用户；企业合规场景。",[472,473],"br",{},"\n❌ 嫌弃配置的人；需要 GUI Composer 体验；想要订阅制固定月费的人。",[29,476,477],{"id":477},"相关阅读",[62,479,480,488,495],{},[65,481,482,483],{},"配套 playbook：",[484,485,487],"a",{"href":486},"\u002Fplaybook\u002Fcline-vs-roo-code.html","Cline vs Roo Code 怎么选",[65,489,490,491],{},"同分类：",[484,492,494],{"href":493},"\u002Fcoding\u002Fcli\u002F","AI CLI 全分类",[65,496,497,498,501,502,501,506],{},"替代品：",[484,499,277],{"href":500},"\u002Fcoding\u002Fcli\u002Froo-code.html"," · ",[484,503,505],{"href":504},"\u002Fcoding\u002Fcli\u002Faider.html","Aider",[484,507,283],{"href":508},"\u002Fcoding\u002Fcli\u002Fclaude-code.html",[29,510,511],{"id":511},"来源",[62,513,514,522,529,536],{},[65,515,516,517],{},"官网：",[484,518,519],{"href":519,"rel":520},"https:\u002F\u002Fcline.bot",[521],"nofollow",[65,523,524,525],{},"GitHub：",[484,526,527],{"href":527,"rel":528},"https:\u002F\u002Fgithub.com\u002Fcline\u002Fcline",[521],[65,530,531,532],{},"Roo Code vs Cline（Serenities AI 2026）：",[484,533,534],{"href":534,"rel":535},"https:\u002F\u002Fserenitiesai.com\u002Farticles\u002Froo-code-vs-cline-ai-coding-2026",[521],[65,537,538,539],{},"Roo Code vs Cline（Qodo 2025-12）：",[484,540,541],{"href":541,"rel":542},"https:\u002F\u002Fwww.qodo.ai\u002Fblog\u002Froo-code-vs-cline",[521],[175,544,545],{},[41,546,547,548,552],{},"本卡片由 AIHO 编辑部根据以上公开资料整理，非厂商付费内容；定价与功能以官网为准，欢迎在 ",[484,549,551],{"href":550},"mailto:hello@aiho.net","反馈邮箱"," 反馈更新。",{"title":258,"searchDepth":554,"depth":554,"links":555},3,[556,558,559,560,565,566,567,568,569,570],{"id":31,"depth":557,"text":32},2,{"id":57,"depth":557,"text":57},{"id":98,"depth":557,"text":98},{"id":172,"depth":557,"text":173,"children":561},[562,563,564],{"id":183,"depth":554,"text":184},{"id":227,"depth":554,"text":228},{"id":242,"depth":554,"text":243},{"id":249,"depth":557,"text":250},{"id":263,"depth":557,"text":263},{"id":401,"depth":557,"text":401},{"id":466,"depth":557,"text":467},{"id":477,"depth":557,"text":477},{"id":511,"depth":557,"text":511},"cli",4,"\u002Fimg\u002Ftools\u002Fcline.webp","Cline 真实评测：原名 Claude Dev，Apache-2.0 开源 VS Code 扩展，58k+ stars，社区驱动的 MCP Marketplace；BYOK 模式接任意 LLM，Plan-then-Act 工作流 + 每步审批，安全感是最大卖点。",false,"md",[578,581,584,587,590],{"q":579,"a":580},"Cline 和 Roo Code 什么关系？","Roo Code 是 Cline 的 fork。两者共享祖宗 Claude Dev，2024 年分叉后各走各路：Cline 更社区驱动（MCP Marketplace 是社区维护），Roo Code 更产品驱动（自带 Cloud Agents、团队 Policy）。两个都 Apache-2.0，可同时装。",{"q":582,"a":583},"Cline 必须用 Claude 吗？","不必。BYOK 设计，OpenAI \u002F Anthropic \u002F OpenRouter \u002F Bedrock \u002F Vertex \u002F Ollama \u002F DeepSeek API 都能配。默认推荐 Claude Sonnet 4.6（autonomous coding 准确率最高），成本敏感场景上 DeepSeek V4 Pro（输入 $0.435 \u002F 输出 $0.87 per 1M token）。",{"q":585,"a":586},"Plan-then-Act 是什么？","Cline 接到任务后先 plan（列出要改的文件 + 命令 + 浏览器操作），再 act（每步执行前要你点 approve）。和 Cursor Composer 的 Accept All 不同——Cline 默认更谨慎，更适合不熟悉的代码库。",{"q":588,"a":589},"MCP Marketplace 是什么？","Cline 自带的 MCP server 市集，社区维护。装 server 后 AI 就能调那个外部工具（比如 Postgres \u002F Notion \u002F Stripe \u002F 自建 API）。截至 2026 已有数百个 MCP server。",{"q":591,"a":592},"国内能用吗？","插件本身没限制。模型 API 走国内厂商（DeepSeek \u002F Qwen \u002F Doubao）直连无需代理，走 Claude \u002F OpenAI 需稳定代理。",[594,595],"zh","en",{},[598,599,600,601,602],"claude-sonnet-4.6","claude-opus-4.6","deepseek-v3","qwen-coder","gpt-5",true,[605,606,607],"嫌弃配置的人（API key、模型、参数都要自己设）","需要 GUI 多文件 Composer 体验的人（Cline 更线性）","想要订阅制（每月固定成本）的人","\u002Ftools\u002Fcoding\u002Fcli\u002Fcline","coding",[611,612,613],"windows","macos","linux",[615,619,624],{"plan":125,"price":128,"limit":616,"cn_pay":617,"note":618},"Apache-2.0 开源，VS Code Marketplace 安装","—","0 厂商抽成",{"plan":620,"price":139,"limit":621,"cn_pay":622,"note":623},"BYOK 模式","接 OpenAI \u002F Anthropic \u002F OpenRouter \u002F Bedrock \u002F Vertex \u002F Ollama \u002F DeepSeek 等","看 API 厂商","完全自主成本",{"plan":147,"price":625,"limit":153,"cn_pay":617,"note":626},"$30\u002F用户\u002F月起（询价）","企业合规档","插件免费 \u002F BYOK 按 API 计费 \u002F Cline Teams 含 SSO+RBAC","2026-06-18",[630,631],"ai-coding\u002Fcline-vs-roo-code","ai-coding\u002Fbyok-cost-optimization",[633,634,635],"aider-deep-review","claude-code-deep-review","cline-deep-review",{"power":572,"ux":572,"price":637,"cn_support":572,"stability":572},5,{"title":12,"description":574},"coding\u002Fcli\u002Fcline",[641,643,645,647],{"title":642,"url":527},"Cline GitHub",{"title":644,"url":519},"Cline 官网",{"title":646,"url":534},"Roo Code vs Cline（Serenities AI 2026）",{"title":648,"url":541},"Roo Code vs Cline（Qodo 2025-12）","tools\u002Fcoding\u002Fcli\u002Fcline",[651,652,653,654,655],"BYOK 派（用 DeepSeek \u002F Qwen \u002F 自部署模型压成本）","对 AI 自主性紧张的人（每步审批模式可见性强）","需要 MCP 生态扩展（GitHub \u002F Database \u002F Slack 等）","VS Code 用户（不想换编辑器）","企业合规场景（开源 + 可审计）","VS Code 里的开源 AI Agent 插件，BYOK + MCP Marketplace",[658,659,660,661,662,663],"agent","vscode-plugin","opensource","byok","mcp-marketplace","plan-act","2026-06-24","BYOK 派的标杆。装在 VS Code 里、连任意 API、每步审批、行为可控、MCP 生态最大；适合谨慎派、企业合规场景，以及想用 DeepSeek \u002F Qwen 压成本的人。","KXdEfWj60UYHiZ2vqbySPVtPdjM3iDBJDAjEXDDYoUE",{"id":668,"title":669,"alternatives":670,"api_compatible":671,"body":672,"category":571,"chinese_friendly":554,"cover":1360,"description":1361,"domestic":575,"extension":576,"faq":1362,"free":575,"github":721,"languages":1377,"lastVerified":9,"meta":1378,"models":1379,"navigation":603,"notSuitable":1383,"opensource":603,"path":1387,"pillar":609,"platforms":1388,"priceTable":1389,"pricing":1404,"published":628,"relatedPlaybooks":1405,"relatedReviews":1408,"score":1411,"self_host":575,"seo":1412,"seoTitle":9,"slug":1413,"sources":1414,"stem":1426,"suitable":1427,"tagline":1432,"tags":1433,"updated":1438,"verdict":1439,"website":1313,"__hash__":1440},"tools\u002Ftools\u002Fcoding\u002Fcli\u002Fcodex.md","Codex CLI",[16,15,639],[19],{"type":26,"value":673,"toc":1344},[674,676,715,717,728,731,751,754,784,786,844,849,853,858,862,896,899,903,927,931,951,954,956,1067,1078,1080,1212,1217,1219,1273,1275,1281,1283,1304,1306,1334,1340],[29,675,32],{"id":31},[34,677,679,688,712],{"className":678},[37,38,39],[41,680,681,683,684,687],{},[44,682,46],{}," Codex CLI 是 OpenAI 官方做的终端 Coding Agent，对标 Claude Code。",[44,685,686],{},"Rust 实现 + Windows 原生沙箱 + 子代理 + MCP + Hooks","，ChatGPT Plus\u002FPro\u002FTeam\u002FEdu 已含使用额度。",[41,689,690,693,694,697,698,702,703,706,707,711],{},[44,691,692],{},"2026-07 最新","：稳定版 ",[44,695,696],{},"0.144.1","（7-09）接入 ",[484,699,701],{"href":700},"\u002Fmodels\u002Fgpt-5-6.html","GPT-5.6"," 家族（Sol\u002FTerra\u002FLuna）；新增 ",[44,704,705],{},"ACP 支持","，可在 ",[484,708,710],{"href":709},"\u002Fcoding\u002Fide\u002Fwindsurf.html","Devin Desktop"," \u002F Zed 等 ACP 客户端里作为 Agent provider 运行；此前已作为公测 Agent provider 进入 JetBrains（经 GitHub Copilot，7-07）。",[41,713,714],{},"形态和 Claude Code 几乎一样，差异主要在模型选择。喜欢 GPT 的人选它，喜欢 Claude 的留 Claude Code。",[29,716,57],{"id":57},[41,718,719,724,725,727],{},[484,720,723],{"href":721,"rel":722},"https:\u002F\u002Fgithub.com\u002Fopenai\u002Fcodex",[521],"GitHub: openai\u002Fcodex","，",[44,726,131],{},"，Rust 写的二进制，428+ 贡献者。在终端里跑一个能读 \u002F 改 \u002F 执行代码的 Agent，类似 Claude Code 但绑定 OpenAI 模型。",[41,729,730],{},"2026 的三个主线：",[186,732,733,739,745],{},[65,734,735,738],{},[44,736,737],{},"速度 & 实时","：gpt-5.3-codex-spark 推理速度 1000+ token\u002Fs；WebSocket 远程控制延迟优化。",[65,740,741,744],{},[44,742,743],{},"Agent 自主性","：Subagents GA、Smart Approvals、PostToolUse hooks、worktree 自动化。",[65,746,747,750],{},[44,748,749],{},"企业就绪","：自定义 CA 证书、userpromptsubmit hooks、托管配置、插件策略强制。",[41,752,753],{},"最有用的 4 个能力：",[62,755,756,762,768,774],{},[65,757,758,761],{},[44,759,760],{},"沙箱执行","：默认在受限沙箱跑命令（macOS Sandbox \u002F Linux Landlock \u002F Windows AppContainer），不会污染主机。",[65,763,764,767],{},[44,765,766],{},"MCP 工具调用","：连 GitHub \u002F 数据库 \u002F Slack \u002F 自建 server，支持并行 tool call。",[65,769,770,773],{},[44,771,772],{},"Subagents","：把大任务拆给多个并行 sub-agent，token 用得多但效率高。",[65,775,776,779,780,783],{},[44,777,778],{},"Image inputs","：终端里 ",[198,781,782],{},"codex -i screenshot.png \"解释这个错误\""," 直接读图。",[29,785,98],{"id":98},[100,787,788,798],{},[103,789,790],{},[106,791,792,794,796],{},[109,793,111],{},[109,795,98],{},[109,797,116],{},[118,799,800,811,822,833],{},[106,801,802,805,808],{},[123,803,804],{},"ChatGPT Plus",[123,806,807],{},"$20\u002F月",[123,809,810],{},"含 Codex CLI 用量（2026-03 起 mini 模型额度 +4×）",[106,812,813,816,819],{},[123,814,815],{},"ChatGPT Pro",[123,817,818],{},"$200\u002F月",[123,820,821],{},"更高额度 + 优先处理 + Spark 研究预览",[106,823,824,827,830],{},[123,825,826],{},"Business \u002F Edu \u002F Team",[123,828,829],{},"$25-30\u002F用户\u002F月起",[123,831,832],{},"企业管理 + SSO + Codex 含在内",[106,834,835,838,841],{},[123,836,837],{},"纯 API",[123,839,840],{},"按 token",[123,842,843],{},"gpt-5.5 ≈ $1.25 \u002F $10 per 1M token",[175,845,846],{},[41,847,848],{},"已经付 ChatGPT Plus 的人，等于白嫖一个 Codex CLI 用量，几乎不必另开 API 账号。",[29,850,852],{"id":851},"真实任务实测基于官方文档归纳","真实任务实测（基于官方文档归纳）",[175,854,855],{},[41,856,857],{},"来源说明：以下基于 Codex CLI 官方 features 文档与公开评测整合。",[181,859,861],{"id":860},"任务-1在-50k-行-rust-项目里加新-feature","任务 1：在 50k 行 Rust 项目里加新 feature",[252,863,867],{"className":864,"code":865,"language":866,"meta":258,"style":258},"language-bash shiki shiki-themes github-light github-dark","codex -m gpt-5-codex\n> 在 src\u002Fauth 模块下加 OAuth2 callback handler，参考已有的 token refresh 实现\n","bash",[198,868,869,886],{"__ignoreMap":258},[870,871,874,878,882],"span",{"class":872,"line":873},"line",1,[870,875,877],{"class":876},"sScJk","codex",[870,879,881],{"class":880},"sj4cs"," -m",[870,883,885],{"class":884},"sZZnC"," gpt-5-codex\n",[870,887,888,892],{"class":872,"line":557},[870,889,891],{"class":890},"szBVR",">",[870,893,895],{"class":894},"sVt8B"," 在 src\u002Fauth 模块下加 OAuth2 callback handler，参考已有的 token refresh 实现\n",[41,897,898],{},"Agent 会 plan → 读相关文件 → 跑 cargo check → 跑测试 → 提 diff。子代理可以同时跑 lint 和 test 两条线。",[181,900,902],{"id":901},"任务-2ci-失败自动-debug","任务 2：CI 失败自动 debug",[252,904,906],{"className":864,"code":905,"language":866,"meta":258,"style":258},"codex --features enable post_tool_use_hook\n# 然后跑 cargo test，CI 失败时 Hook 自动触发 Agent 分析失败 + 写 fix\n",[198,907,908,921],{"__ignoreMap":258},[870,909,910,912,915,918],{"class":872,"line":873},[870,911,877],{"class":876},[870,913,914],{"class":880}," --features",[870,916,917],{"class":884}," enable",[870,919,920],{"class":884}," post_tool_use_hook\n",[870,922,923],{"class":872,"line":557},[870,924,926],{"class":925},"sJ8bj","# 然后跑 cargo test，CI 失败时 Hook 自动触发 Agent 分析失败 + 写 fix\n",[181,928,930],{"id":929},"任务-3跨仓库脚手架生成","任务 3：跨仓库脚手架生成",[252,932,934],{"className":864,"code":933,"language":866,"meta":258,"style":258},"codex -m gpt-5-codex\n> 用 mono-repo 模式建 3 个 package：core \u002F cli \u002F web，统一走 pnpm workspace\n",[198,935,936,944],{"__ignoreMap":258},[870,937,938,940,942],{"class":872,"line":873},[870,939,877],{"class":876},[870,941,881],{"class":880},[870,943,885],{"class":884},[870,945,946,948],{"class":872,"line":557},[870,947,891],{"class":890},[870,949,950],{"class":894}," 用 mono-repo 模式建 3 个 package：core \u002F cli \u002F web，统一走 pnpm workspace\n",[41,952,953],{},"子代理并行起 3 个目录的初始化，单次任务跑完 ~3 分钟，token 用约 80k。",[29,955,250],{"id":249},[252,957,959],{"className":864,"code":958,"language":866,"meta":258,"style":258},"# 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",[198,960,961,966,983,988,993,998,1003,1011,1027,1041,1055],{"__ignoreMap":258},[870,962,963],{"class":872,"line":873},[870,964,965],{"class":925},"# macOS \u002F Linux\n",[870,967,968,971,974,977,980],{"class":872,"line":557},[870,969,970],{"class":876},"curl",[870,972,973],{"class":880}," -fsSL",[870,975,976],{"class":884}," https:\u002F\u002Fchatgpt.com\u002Fcodex\u002Finstall.sh",[870,978,979],{"class":890}," |",[870,981,982],{"class":876}," sh\n",[870,984,985],{"class":872,"line":554},[870,986,987],{"emptyLinePlaceholder":603},"\n",[870,989,990],{"class":872,"line":572},[870,991,992],{"class":925},"# Windows（原生 PowerShell）\n",[870,994,995],{"class":872,"line":637},[870,996,997],{"class":925},"# 见官方 Windows setup guide，或用 npm i -g @openai\u002Fcodex\n",[870,999,1001],{"class":872,"line":1000},6,[870,1002,987],{"emptyLinePlaceholder":603},[870,1004,1006,1008],{"class":872,"line":1005},7,[870,1007,877],{"class":876},[870,1009,1010],{"class":925},"                          # 启动 TUI\n",[870,1012,1014,1016,1018,1021,1024],{"class":872,"line":1013},8,[870,1015,877],{"class":876},[870,1017,881],{"class":880},[870,1019,1020],{"class":884}," gpt-5-codex",[870,1022,1023],{"class":884}," .",[870,1025,1026],{"class":925},"         # 在当前目录起 Agent\n",[870,1028,1030,1032,1035,1038],{"class":872,"line":1029},9,[870,1031,877],{"class":876},[870,1033,1034],{"class":880}," --remote",[870,1036,1037],{"class":884}," wss:\u002F\u002F...",[870,1039,1040],{"class":925},"       # 远程模式（SSH \u002F 容器）\n",[870,1042,1044,1046,1049,1052],{"class":872,"line":1043},10,[870,1045,877],{"class":876},[870,1047,1048],{"class":884}," features",[870,1050,1051],{"class":884}," list",[870,1053,1054],{"class":925},"            # 看可用 feature flag\n",[870,1056,1058,1060,1062,1064],{"class":872,"line":1057},11,[870,1059,877],{"class":876},[870,1061,1048],{"class":884},[870,1063,917],{"class":884},[870,1065,1066],{"class":884}," unified_exec\n",[41,1068,1069,1070,1073,1074,1077],{},"配置文件：",[198,1071,1072],{},"$CODEX_HOME\u002Fconfig.toml","（默认 ",[198,1075,1076],{},"~\u002F.codex\u002Fconfig.toml","）。",[29,1079,263],{"id":263},[100,1081,1082,1096],{},[103,1083,1084],{},[106,1085,1086,1088,1090,1092,1094],{},[109,1087,272],{},[109,1089,669],{},[109,1091,283],{},[109,1093,505],{},[109,1095,12],{},[118,1097,1098,1112,1128,1144,1161,1173,1187,1199],{},[106,1099,1100,1102,1105,1107,1110],{},[123,1101,69],{},[123,1103,1104],{},"终端 TUI",[123,1106,1104],{},[123,1108,1109],{},"终端 REPL",[123,1111,292],{},[106,1113,1114,1117,1120,1123,1126],{},[123,1115,1116],{},"默认模型",[123,1118,1119],{},"gpt-5-codex",[123,1121,1122],{},"Claude Sonnet\u002FOpus",[123,1124,1125],{},"BYOK 任意",[123,1127,1125],{},[106,1129,1130,1133,1136,1139,1142],{},[123,1131,1132],{},"含在订阅",[123,1134,1135],{},"ChatGPT Plus\u002FPro",[123,1137,1138],{},"Claude.ai $20\u002F月",[123,1140,1141],{},"❌（仅 API）",[123,1143,1141],{},[106,1145,1146,1149,1152,1155,1158],{},[123,1147,1148],{},"沙箱",[123,1150,1151],{},"macOS Sandbox \u002F Landlock \u002F AppContainer",[123,1153,1154],{},"类似",[123,1156,1157],{},"无",[123,1159,1160],{},"VS Code 环境",[106,1162,1163,1165,1167,1169,1171],{},[123,1164,81],{},[123,1166,321],{},[123,1168,321],{},[123,1170,326],{},[123,1172,321],{},[106,1174,1175,1177,1180,1183,1185],{},[123,1176,772],{},[123,1178,1179],{},"✅ GA",[123,1181,1182],{},"✅ Task tool",[123,1184,329],{},[123,1186,329],{},[106,1188,1189,1191,1193,1195,1197],{},[123,1190,91],{},[123,1192,307],{},[123,1194,312],{},[123,1196,307],{},[123,1198,307],{},[106,1200,1201,1204,1206,1208,1210],{},[123,1202,1203],{},"原生 Windows",[123,1205,321],{},[123,1207,326],{},[123,1209,321],{},[123,1211,321],{},[175,1213,1214],{},[41,1215,1216],{},"一句话区分：Codex CLI = OpenAI 官方版的 Claude Code；Claude Code = Anthropic 官方版的 Codex；Aider = 任意 OpenAI 兼容 API 都能跑；Cline = VS Code 里的 GUI 终端 Agent。",[29,1218,401],{"id":401},[186,1220,1221,1227,1237,1247,1253,1259],{},[65,1222,1223,1226],{},[44,1224,1225],{},"国内访问别频繁切 IP","，OpenAI 风控严，账号被封基本无法找回。",[65,1228,1229,1232,1233,1236],{},[44,1230,1231],{},"沙箱默认会限制网络","，跑 ",[198,1234,1235],{},"npm install"," 等需要联网的命令前先看 approval 弹窗。",[65,1238,1239,1242,1243,1246],{},[44,1240,1241],{},"Subagents 吃 token 多","，预算敏感时关闭 ",[198,1244,1245],{},"[agents]"," 配置或换 mini 模型。",[65,1248,1249,1252],{},[44,1250,1251],{},"WebSocket 远程模式只接受 wss:\u002F\u002F 或 localhost ws:\u002F\u002F","，远程公网必须 TLS。",[65,1254,1255,1258],{},[44,1256,1257],{},"gpt-5-codex 比 gpt-5.5 便宜但能力对齐","，2026-03 之后默认推荐用 codex 系列而非 5.5。",[65,1260,1261,1268,1269,1272],{},[44,1262,1263,1264,1267],{},"不要用过期的 ",[198,1265,1266],{},"--approval-mode"," 旧参数","，新版用 ",[198,1270,1271],{},"codex features"," 子命令管理。",[29,1274,467],{"id":466},[41,1276,1277,1278,1280],{},"✅ 终端 \u002F TMUX \u002F Vim 重度用户；已订阅 ChatGPT Plus \u002F Pro 的人；Windows 原生开发者；headless \u002F SSH \u002F 容器场景。",[472,1279],{},"\n❌ GUI 党；纯内网开发；偏好 Claude 长上下文风格的人。",[29,1282,477],{"id":477},[62,1284,1285,1291,1295],{},[65,1286,482,1287],{},[484,1288,1290],{"href":1289},"\u002Fplaybook\u002Fcodex-cli-vs-claude-code.html","Codex CLI vs Claude Code 怎么选",[65,1292,490,1293],{},[484,1294,494],{"href":493},[65,1296,497,1297,501,1299,501,1301],{},[484,1298,283],{"href":508},[484,1300,505],{"href":504},[484,1302,12],{"href":1303},"\u002Fcoding\u002Fcli\u002Fcline.html",[29,1305,511],{"id":511},[62,1307,1308,1315,1322,1327],{},[65,1309,1310,1311],{},"官方文档：",[484,1312,1313],{"href":1313,"rel":1314},"https:\u002F\u002Fdevelopers.openai.com\u002Fcodex\u002Fcli",[521],[65,1316,1317,1318],{},"Features 页：",[484,1319,1320],{"href":1320,"rel":1321},"https:\u002F\u002Fdevelopers.openai.com\u002Fcodex\u002Fcli\u002Ffeatures",[521],[65,1323,524,1324],{},[484,1325,721],{"href":721,"rel":1326},[521],[65,1328,1329,1330],{},"2026 更新综述：",[484,1331,1332],{"href":1332,"rel":1333},"https:\u002F\u002Fcodex.danielvaughan.com\u002F2026\u002F03\u002F27\u002Fcodex-cli-in-2026-whats-new",[521],[175,1335,1336],{},[41,1337,547,1338,552],{},[484,1339,551],{"href":550},[1341,1342,1343],"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":258,"searchDepth":554,"depth":554,"links":1345},[1346,1347,1348,1349,1354,1355,1356,1357,1358,1359],{"id":31,"depth":557,"text":32},{"id":57,"depth":557,"text":57},{"id":98,"depth":557,"text":98},{"id":851,"depth":557,"text":852,"children":1350},[1351,1352,1353],{"id":860,"depth":554,"text":861},{"id":901,"depth":554,"text":902},{"id":929,"depth":554,"text":930},{"id":249,"depth":557,"text":250},{"id":263,"depth":557,"text":263},{"id":401,"depth":557,"text":401},{"id":466,"depth":557,"text":467},{"id":477,"depth":557,"text":477},{"id":511,"depth":557,"text":511},"\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 计划已含。",[1363,1366,1369,1371,1374],{"q":1364,"a":1365},"Codex CLI 和 Claude Code 有什么区别？","形态几乎一致：都是终端 Agent + 沙箱执行 + MCP + 子代理。差异主要在模型——Codex CLI 走 OpenAI 的 gpt-5-codex 系列，Claude Code 走 Anthropic Sonnet\u002FOpus。OpenAI 在原生 Windows 沙箱（不需要 WSL）和 Rust 实现速度上略胜，Claude 在长任务上下文连续性上略胜。",{"q":1367,"a":1368},"在 Windows 上怎么用？","原生 PowerShell 沙箱模式（推荐），也支持 WSL2。安装命令：curl -fsSL https:\u002F\u002Fchatgpt.com\u002Fcodex\u002Finstall.sh | sh（macOS\u002FLinux），Windows 直接通过 npm 或 PowerShell installer。",{"q":591,"a":1370},"需要 OpenAI 账号 + 稳定代理。Plus \u002F Pro 订阅可走支付宝。直接 `codex` 即可启动。",{"q":1372,"a":1373},"Codex CLI 支持本地模型吗？","原生只走 OpenAI API。如果要本地模型，建议用 Aider（OpenAI 兼容 endpoint，可指向 Ollama \u002F vLLM）。",{"q":1375,"a":1376},"Subagents \u002F Hooks \u002F MCP 是什么？","Subagents：把大任务拆给多个并行子代理；Hooks（PostToolUse \u002F userpromptsubmit）：在工具调用前后插入企业策略；MCP：连外部工具（GitHub \u002F 数据库 \u002F Slack）。Codex 2026 把这三块都做到了 GA。",[594,595],{},[1380,1381,1382,1119],"gpt-5.6-sol","gpt-5.6-terra","gpt-5.6-luna",[1384,1385,1386],"重度 GUI 党（终端排斥者请用 Cursor）","国内纯内网（OpenAI API 需稳定代理）","需要 Claude 上下文风格的人","\u002Ftools\u002Fcoding\u002Fcli\u002Fcodex",[611,612,613],[1390,1394,1397,1400],{"plan":804,"price":807,"limit":1391,"cn_pay":1392,"note":1393},"含 Codex CLI 使用额度，默认 gpt-5-codex-mini（2026-03 起额度 +4×）","支付宝","个人入门",{"plan":815,"price":818,"limit":1395,"cn_pay":1392,"note":1396},"更高额度 + 优先处理 + GPT-5.3-Codex-Spark 研究预览","Agent 重度用户",{"plan":826,"price":829,"limit":1398,"cn_pay":617,"note":1399},"团队管理 + SSO + Codex 含在内","团队档",{"plan":1401,"price":840,"limit":1402,"cn_pay":617,"note":1403},"纯 API 调用","gpt-5.5 ≈ $1.25\u002F$10 per 1M tokens（input\u002Foutput）","BYOK 自由模式","ChatGPT Plus\u002FPro\u002FBusiness\u002FEdu\u002FEnterprise 包含 \u002F 或按 OpenAI API 计费",[1406,1407],"ai-coding\u002Fcodex-cli-vs-claude-code","ai-coding\u002Fterminal-agent-workflow",[633,634,1409,1410],"codex-deep-review","cursor-deep-review",{"power":637,"ux":572,"price":572,"cn_support":554,"stability":572},{"title":669,"description":1361},"coding\u002Fcli\u002Fcodex",[1415,1417,1419,1421,1423],{"title":1416,"url":1313},"Codex CLI 官方文档",{"title":1418,"url":1320},"Codex CLI Features 官方",{"title":1420,"url":721},"Codex CLI GitHub",{"title":1422,"url":1332},"Codex CLI 2026 更新综述",{"title":1424,"url":1425},"Codex CLI 0.144.1 Release","https:\u002F\u002Fgithub.com\u002Fopenai\u002Fcodex\u002Freleases","tools\u002Fcoding\u002Fcli\u002Fcodex",[1428,1429,1430,1431],"终端 \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",[571,658,1434,19,602,1435,1436,660,1437],"terminal","subagents","mcp","rust","2026-07-20","Claude Code 的 OpenAI 版镜像。Plus \u002F Pro 已含、Windows 原生沙箱、Rust 速度快，喜欢 GPT 派的人首选；Claude Sonnet 4.5 在长任务上仍略胜，喜欢 Claude 的留 Claude Code。","4zwRzenYhUbSOeoZZ5kuIQDF1MkoTXOIYq-1KZ2U2F4",1784565441433]