# Claude Code

[Claude](https://www.edgepedia.org/zh/claude-assistant-apps) Code 是 [Anthropic](https://www.edgepedia.org/zh/anthropic) 推出的终端优先智能体编程工具，一个命令行运行框架，让 Claude 语言模型能够读取代码库、编辑文件、运行 shell 命令，并通过自然语言指令管理 git。该工具于 2025 年 2 月以研究预览形式发布，同年 5 月正式全面开放，多位分析师称其营收攀升速度为企业软件史上最快的十亿美元级增长。

| 关键事实 | 详情 |
|---|---|
| 首次发布 | 2025 年 2 月 24 日研究预览，与 Claude 3.7 Sonnet 同步推出；2025 年 5 月 22 日随 Claude 4 正式全面开放 <sup>[1](https://aiwiki.ai/wiki/claude_code)</sup> |
| 形态 | 终端优先智能体，通过自然语言获得 shell、文件和 git 访问权限 <sup>[2](https://github.com/anthropics/claude-code?tab=readme-ov-file)</sup> |
| 营收 | 2025 年底年化运行率超过 5 亿美元；2026 年 2 月年化达 25 亿美元（厂商报告数据）<sup>[3](https://newsletter.pragmaticengineer.com/p/how-claude-code-is-built)</sup><sup> • </sup><sup>[4](https://www.techtimes.com/articles/320477/20260714/claude-code-origin-story-how-forgotten-cli-became-fastest-enterprise-software-ever.htm)</sup> |
| 定价 | API token 计费，或订阅方案，从每月 17 美元（年度 Pro）到企业席位 <sup>[5](https://claude.com/product/claude-code)</sup><sup> • </sup><sup>[1](https://aiwiki.ai/wiki/claude_code)</sup> |
| 典型企业成本 | 每开发者每活跃日约 13 美元，每月 150–250 美元（Anthropic 自报基准）<sup>[1](https://aiwiki.ai/wiki/claude_code)</sup> |
| 采用率 | 约占 GitHub 全部公开提交的 4%，每天约 135,000 次（SemiAnalysis 估算，2026 年 2 月）<sup>[4](https://www.techtimes.com/articles/320477/20260714/claude-code-origin-story-how-forgotten-cli-became-fastest-enterprise-software-ever.htm)</sup> |
| 满意度 | 2026 年 2 月 Pragmatic Engineer 调查中为 46%，Cursor 为 19%，GitHub Copilot 为 9% <sup>[4](https://www.techtimes.com/articles/320477/20260714/claude-code-origin-story-how-forgotten-cli-became-fastest-enterprise-software-ever.htm)</sup> |

## Claude Code 是什么

Claude Code 构建在 Anthropic 所称的智能体循环之上，该循环结合两个组件：负责推理的模型和负责行动的工具。产品本身是围绕 Claude 的智能体运行框架；它提供工具、上下文管理和执行环境，将语言模型转变为编程智能体 <sup>[6](https://code.claude.com/docs/en/how-claude-code-works?_rsc=1tg4o)</sup>。

在实践中，该框架让模型得以访问开发者的机器。Anthropic 的 README 将其描述为一种驻留在终端中的智能体编程工具，能够理解代码库、执行日常任务、解释复杂代码，并通过自然语言命令处理 git 工作流 <sup>[2](https://github.com/anthropics/claude-code?tab=readme-ov-file)</sup>。开发者输入诸如“修复失败的测试”或“为这个改动开一个拉取请求”之类的指令，智能体便进行规划、编辑文件、运行命令并回报结果。

## 发布与版本历史

该工具最初是 Boris Cherny 领导的团队开发的内部原型。2024 年 11 月，距首个原型两个月后，一个可供内部试用的版本上线；Anthropic 工程团队约 20% 的人在第一天使用，到第五天达到 50% <sup>[3](https://newsletter.pragmaticengineer.com/p/how-claude-code-is-built)</sup>。

公开时间线如下 <sup>[1](https://aiwiki.ai/wiki/claude_code)</sup>：

- **2025 年 2 月 24 日**：有限研究预览，与 [Claude 3.7 Sonnet](https://www.edgepedia.org/zh/claude-3-7-sonnet) 同步发布。
- **2025 年 5 月 22 日**：随 [Claude 4](https://www.edgepedia.org/zh/claude-4) 发布正式全面开放。
- **2025 年 9 月 29 日**：Claude Code 2.0，新增原生 [Visual Studio Code](https://www.edgepedia.org/zh/visual-studio-code) 扩展、检查点和更新的终端体验；Claude Code SDK 更名为 Claude Agent SDK。
- **2025 年 10 月 20 日**：Claude Code 网页版，研究预览。
- **2026 年**：模型绑定持续进行。版本 2.1.170（2026 年 6 月 9 日）加入 Claude Fable 5；版本 2.1.197（2026 年 6 月 30 日）加入 Claude Sonnet 5，原生支持一百万 token 上下文窗口；版本 2.1.219（2026 年 7 月 24 日）将“opus”别名指向 Opus 5，并新增 strictAllowlist 沙箱设置 <sup>[1](https://aiwiki.ai/wiki/claude_code)</sup>。

## 功能与可扩展性

除核心循环外，Claude Code 还增加了一套可扩展机制 <sup>[7](https://code.claude.com/docs/en/overview?_rsc=1w3nc)</sup>：

- **钩子（Hooks）**，在 Claude Code 操作前后运行 shell 命令，例如每次文件编辑后自动格式化，或在提交前运行 lint。
- **并行子智能体**，多个 Claude Code 智能体同时处理任务的不同部分；一个主智能体协调工作、分配子任务并合并结果。后台智能体运行时无需占用终端会话。
- **Agent SDK**，让开发者基于 Claude Code 的工具和能力构建自己的智能体，并可控制编排、工具访问和权限。
- **检查点**和原生 VS Code 扩展，均于 2.0 版本加入 <sup>[1](https://aiwiki.ai/wiki/claude_code)</sup>。
- **strictAllowlist 沙箱**（版本 2.1.219，2026 年 7 月），设置层面的控制，限制智能体可运行的内容 <sup>[1](https://aiwiki.ai/wiki/claude_code)</sup>。

## 定价与可用性

Claude Code 有两种计费途径。使用 Claude Console 账户时，按标准 API 定价消耗 API token <sup>[5](https://claude.com/product/claude-code)</sup>。或者，它包含在 Claude 订阅方案中；截至 2026 年 8 月 1 日，这些方案为 Pro 每月 17 美元（年度）或每月 20 美元，Max 每月 100 美元起，Team Standard 年度每席位每月 20 美元，Enterprise 每席位 20 美元，外加按 API 费率计收的用量费用 <sup>[1](https://aiwiki.ai/wiki/claude_code)</sup>。

对于重度配置，Anthropic 为 Opus 5 提供快速模式，模型运行速度达到原来的 2.5 倍，但每 token 成本更高，在 Claude Code 研究预览中定价为每百万 token 10/50 美元；订阅用户通过用量积分使用 <sup>[5](https://claude.com/product/claude-code)</sup>。

Anthropic 自己的企业成本基准（厂商报告数据，非独立测量）平均每开发者每活跃日约 13 美元，每开发者每月 150–250 美元，90% 的用户成本保持在每活跃日 30 美元以下 <sup>[1](https://aiwiki.ai/wiki/claude_code)</sup>。

## 数据一览

以下营收数据除注明外均为厂商报告；运行率和年化数据描述的是外推销售额，而非已确认收入。

- 到 2025 年底，Claude Code 产生的年化运行率营收超过 5 亿美元，5 月全面开放后的三个月内使用量增长超过 10 倍 <sup>[3](https://newsletter.pragmaticengineer.com/p/how-claude-code-is-built)</sup>。
- 在 2025 年 5 月发布后六个月内，年化营收达到 10 亿美元，多位分析师称这一速度为企业软件史上最快的十亿美元级增长 <sup>[4](https://www.techtimes.com/articles/320477/20260714/claude-code-origin-story-how-forgotten-cli-became-fastest-enterprise-software-ever.htm)</sup>。
- 到 2026 年 2 月，年化营收增长至 25 亿美元，据 Anthropic 的 G 轮公告和路透社对 Anthropic 以 3800 亿美元估值完成 300 亿美元融资的报道 <sup>[4](https://www.techtimes.com/articles/320477/20260714/claude-code-origin-story-how-forgotten-cli-became-fastest-enterprise-software-ever.htm)</sup>。

独立的使用量估算较为少见。SemiAnalysis 2026 年 2 月的分析估计，Claude Code 撰写了 GitHub 全部公开提交的约 4%，每天约 135,000 次，并预测到 2026 年底将超过 20% <sup>[4](https://www.techtimes.com/articles/320477/20260714/claude-code-origin-story-how-forgotten-cli-became-fastest-enterprise-software-ever.htm)</sup>。

Anthropic 自己对约 235,000 人约 400,000 次交互会话（2025 年 10 月至 2026 年 4 月）的行为分析估计，用户做出了约 70% 的规划决策，但仅做出约 20% 的执行决策，这是厂商报告的图景：智能体处理大多数底层实现选择，而人类掌舵 <sup>[1](https://aiwiki.ai/wiki/claude_code)</sup>。

在生产力方面，Murphy-Hill 及其同事 2026 年的一篇预印本研究了数万名微软工程师，发现观察性证据表明，任何使用 Claude Code 的周都与合并拉取请求增加 11.4% 相关（95% 置信区间 9.4–13.6%）。这属于采用者中跨工具约 24% 的更广泛效应之内，不能单独归因于 Claude Code <sup>[1](https://aiwiki.ai/wiki/claude_code)</sup>。

## 反响及与 Codex、Cursor 和 Copilot 的比较

2026 年 2 月 Pragmatic Engineer 对 906 名开发者的调查发现，Claude Code 以 46% 的满意度领先，Cursor 为 19%，[GitHub Copilot](https://www.edgepedia.org/zh/github-copilot) 为 9%。该调查的读者群偏向技术前沿公司的高级工程师，因此这一差距不应被解读为全市场的定论 <sup>[4](https://www.techtimes.com/articles/320477/20260714/claude-code-origin-story-how-forgotten-cli-became-fastest-enterprise-software-ever.htm)</sup>。

在 Anthropic 内部，采用率很高：公司超过 80% 的写代码工程师日常使用 Claude Code，Anthropic 将工程团队规模翻倍期间拉取请求吞吐量增加 67% 归功于 Claude Code。这些是内部厂商报告数据 <sup>[3](https://newsletter.pragmaticengineer.com/p/how-claude-code-is-built)</sup>。

## 事件与安全

Check Point 发现、Anthropic 修复的三个项目信任边界漏洞，由 [The Register](https://www.edgepedia.org/zh/the-register) 于 2026 年 2 月报道 <sup>[1](https://aiwiki.ai/wiki/claude_code)</sup>：

- GHSA-ph6w-f82w-28w6，2025 年 9 月 3 日发布，1.0.87 版本修复。
- CVE-2025-59536，启动信任对话框中的代码注入，2025 年 10 月 3 日发布，1.0.111 版本修复。
- CVE-2026-21852，2026 年 1 月 21 日发布，2.0.65 版本修复，允许恶意仓库附带一个设置文件，将 ANTHROPIC_BASE_URL 设为攻击者控制的端点，可能泄露用户的 API 密钥。

2026 年 3 月，Anthropic 因一个配置错误的调试文件，意外将 512,000 行 Claude Code 的 TypeScript 源代码发布到公共 npm 注册表 <sup>[4](https://www.techtimes.com/articles/320477/20260714/claude-code-origin-story-how-forgotten-cli-became-fastest-enterprise-software-ever.htm)</sup>。

2026 年 6 月，微软安全研究人员记录了 Claude Code GitHub Action 中的一个提示注入漏洞，当智能体处理不受信任的 issue 或拉取请求内容时，可能暴露 CI/CD 流水线机密。Anthropic 在协调披露后于 2026 年 5 月（版本 2.1.128）修补了该漏洞 <sup>[4](https://www.techtimes.com/articles/320477/20260714/claude-code-origin-story-how-forgotten-cli-became-fastest-enterprise-software-ever.htm)</sup>。

## References

1. [Claude Code | AI Wiki](https://aiwiki.ai/wiki/claude_code)
2. [anthropics/claude-code (GitHub README)](https://github.com/anthropics/claude-code?tab=readme-ov-file)
3. [How Claude Code is built, The Pragmatic Engineer](https://newsletter.pragmaticengineer.com/p/how-claude-code-is-built)
4. [Claude Code Origin Story: How a Forgotten CLI Became the Fastest Enterprise Software Ever, TechTimes](https://www.techtimes.com/articles/320477/20260714/claude-code-origin-story-how-forgotten-cli-became-fastest-enterprise-software-ever.htm)
5. [Claude Code by Anthropic | AI Coding Agent, Terminal, IDE](https://claude.com/product/claude-code)
6. [How Claude Code works (official docs)](https://code.claude.com/docs/en/how-claude-code-works?_rsc=1tg4o)
7. [Claude Code overview (official docs)](https://code.claude.com/docs/en/overview?_rsc=1w3nc)

---
*Initially written Sep 17, 2026 · Edited: Oct 11, 2026; Oct 15, 2026; Oct 25, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 现代人工智能：基础模型、生成式人工智能与人工智能产业 › Model families and named models › Code models and coding agents

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/claude-code

English original: https://www.edgepedia.org/claude-code
