Claude Code:终端智能代码助理

GitHub Trending2026-04-01🔗 查看原文
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.
⭐ 97859💻 Shell
Claude Code 是运行于终端的智能编程代理,能理解代码库,通过自然语言执行常规任务、解释复杂代码并处理 Git 工作流,支持在终端、IDE 或在 GitHub 上 @claude 使用。提供跨平台安装方式(Mac/Linux 一键脚本、Homebrew,Windows 推荐脚本或 WinGet),npm 安装已弃用,更多信息见官方文档。
📄 README

Claude Code

[npm]: https://img.shields.io/npm/v/@anthropic-ai/claude-code.svg?style=flat-square

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.

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.

  • Install Claude Code:
  • MacOS/Linux (Recommended):

    “`bash

    curl -fsSL https://claude.ai/install.sh | bash

    “`

    Homebrew (MacOS/Linux):

    “`bash

    brew install –cask claude-code

    “`

    Windows (Recommended):

    “`powershell

    irm https://claude.ai/install.ps1 | iex

    “`

    WinGet (Windows):

    “`powershell

    winget install Anthropic.ClaudeCode

    “`

    NPM (Deprecated):

    “`bash

    npm install -g @anthropic-ai/claude-code

    “`

  • Navigate to your project directory and run 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.

    Reporting Bugs

    We welcome your feedback. Use the /bug command to report issues directly within Claude Code, or file a GitHub issue.

    Connect on 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.

    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.

    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.