anthropics / claude-code
Claude Code
Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows — all through natural language commands. Use it in your terminal, IDE, or tag @claude on Github. Learn more in the official documentation. Claude Code 是一款运行在终端中的智能编程工具。它能够理解你的代码库,通过执行日常任务、解释复杂代码以及处理 Git 工作流来帮助你更高效地编程——所有操作均可通过自然语言指令完成。你可以在终端、IDE 中使用它,或在 GitHub 上通过 @claude 进行调用。更多信息请参阅官方文档。
Get started
开始使用
Note: Installation via npm is deprecated. Use one of the recommended methods below. For more installation options, uninstall steps, and troubleshooting, see the setup documentation. 注意:通过 npm 安装的方式已被弃用。请使用以下推荐方法之一。如需更多安装选项、卸载步骤及故障排除,请查看安装文档。
Install Claude Code: 安装 Claude Code:
- MacOS/Linux (Recommended):
curl -fsSL https://claude.ai/install.sh | bash - MacOS/Linux (推荐):
curl -fsSL https://claude.ai/install.sh | bash - Homebrew (MacOS/Linux):
brew install --cask claude-code - Homebrew (MacOS/Linux):
brew install --cask claude-code - Windows (Recommended):
irm https://claude.ai/install.ps1 | iex - Windows (推荐):
irm https://claude.ai/install.ps1 | iex - WinGet (Windows):
winget install Anthropic.ClaudeCode - WinGet (Windows):
winget install Anthropic.ClaudeCode - NPM (Deprecated):
npm install -g @anthropic-ai/claude-code - NPM (已弃用):
npm install -g @anthropic-ai/claude-code
Navigate to your project directory and run claude.
进入你的项目目录并运行 claude。
Plugins
插件
This repository includes several Claude Code plugins that extend functionality with custom commands and agents. See the plugins directory for detailed documentation on available plugins. 本仓库包含多个 Claude Code 插件,可通过自定义命令和智能体扩展功能。有关可用插件的详细文档,请参阅插件目录。
Reporting Bugs
报告错误
We welcome your feedback. Use the /bug command to report issues directly within Claude Code, or file a GitHub issue.
我们欢迎您的反馈。请使用 /bug 命令直接在 Claude Code 内报告问题,或提交 GitHub Issue。
Connect on Discord
加入 Discord 社区
Join the Claude Developers Discord to connect with other developers using Claude Code. Get help, share feedback, and discuss your projects with the community. 加入 Claude Developers Discord,与其他使用 Claude Code 的开发者交流。获取帮助、分享反馈并与社区讨论你的项目。
Data collection, usage, and retention
数据收集、使用与保留
When you use Claude Code, we collect feedback, which includes usage data (such as code acceptance or rejections), associated conversation data, and user feedback submitted via the /bug command.
当你使用 Claude Code 时,我们会收集反馈信息,包括使用数据(如代码采纳或拒绝情况)、相关的对话数据,以及通过 /bug 命令提交的用户反馈。
How we use your data
我们如何使用你的数据
See our data usage policies. 请参阅我们的数据使用政策。
Privacy safeguards
隐私保护措施
We have implemented several safeguards to protect your data, including limited retention periods for sensitive information, restricted access to user session data, and clear policies against using feedback for model training. For full details, please review our Commercial Terms of Service and Privacy Policy. 我们实施了多项保护措施来保障你的数据安全,包括对敏感信息设置有限的保留期限、限制对用户会话数据的访问,以及明确禁止将反馈用于模型训练的政策。详情请查阅我们的商业服务条款和隐私政策。