Co-Pilot / 辅助式
更新于 a month ago

claude-code-guide

Zzebbern
3.2k
zebbern/claude-code-guide
76
Agent 评分

💡 摘要

Claude Code指南提供了在各种平台上安装和使用Claude Code工具的全面说明。

🎯 适合人群

寻求AI集成的软件开发人员管理自动化任务的DevOps工程师编写文档的技术作家学习AI工具的学生增强AI项目的开源贡献者

🤖 AI 吐槽:这个指南就像一把瑞士军刀——有用,但祝你好运找到合适的工具!

安全分析中风险

README建议使用API密钥,如果管理不当可能会带来风险。确保使用环境变量和秘密管理器来降低暴露风险。

For updates and contributions, visit the official Claude Code documentation

Claude Code Status License

| Section | Status | | ------------------------------------------------- | ------ | | Guides on how to install on Windows, Linux, MacOS | ✅ | | Tips and Tricks | ✅ | | MCP Overview with what to use | ✅ | | Community Guides | ✅ | | Troubleshooting | ✅ | | How to use Claude code the most optimal way | ✅ |

Interact with Claude Code Via Discord Guide Here!

Daily Updated Claude Changelogs

Agent Security SKILL.md files \|/ How to create agent-skills-guide


Quick links: Install · Commands · Shortcuts · MCP · Troubleshoot


Enable sound alerts when claude completes the task:

claude config set --global preferredNotifChannel terminal_bell

[!TIP] Send claude or npx claude in terminal to start the interface

Go to Help & Troubleshooting to fix issues...

# Node.js 18+⭐️ /*Universal Method */ npm install -g @anthropic-ai/claude-code -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- # Windows /* Via CMD (npm) */ npm install -g @anthropic-ai/claude-code /* Via CMD (native) */ curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd /* Via Powershell */ irm https://claude.ai/install.ps1 | iex -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- # WSL/GIT /* Via Terminal */ npm install -g @anthropic-ai/claude-code /* Via Terminal */ curl -fsSL https://claude.ai/install.sh | bash -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- # MacOS */ brew install node && npm install -g @anthropic-ai/claude-code -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- # Linux /* Via Terminal */ sudo apt update && sudo apt install -y nodejs npm /* Via Terminal */ npm install -g @anthropic-ai/claude-code /* Via Terminal */ curl -fsSL https://claude.ai/install.sh | bash -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- # Arch /* Via Terminal */ yay -S claude-code*/ -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- # Docker /* Windows (CMD) */ docker run -it --rm -v "%cd%:/workspace" -e ANTHROPIC_API_KEY="sk-your-key" node:20-slim bash -lc "npm i -g @anthropic-ai/claude-code && cd /workspace && claude" /* macOS/Linux (bash/zsh)*/ docker run -it --rm -v "$PWD:/workspace" -e ANTHROPIC_API_KEY="sk-your-key" node:20-slim bash -lc 'npm i -g @anthropic-ai/claude-code && cd /workspace && claude' /* No bash Fallback */ docker run -it --rm -v "$PWD:/workspace" -e ANTHROPIC_API_KEY="sk-your-key" node:20-slim sh -lc 'npm i -g @anthropic-ai/claude-code && cd /workspace && claude' --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- # Check if claude is installed correctly /* Linux */ which claude /* Windows */ where claude /* Universal */ claude --version -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- # Common Management /*claude config */ Configure settings /*claude mcp list */ Setup MCP servers, you can also replace "list" with add/remove /*claude /agents */ Configure/Setup Subagents for different tasks /*claude update */ Update to latest

[!Tip] Open Project Via Terminal Into VS Code / Cursor

$ - cd /path/to/project

$ - code .

Make sure you have the (Claude Code extension) installed in your VS Code / Cursor


  • OS: macOS 10.15+, Ubuntu 20.04+/Debian 10+, or Windows 10/11 or WSL
  • Hardware: 4GB RAM minimum 8GB+ recommended
  • Software: Node.js 18+ or git 2.23+ (optional) & GitHub or GitLab CLI for PR workflows (optional)
  • Internet: Connection for API calls
  • Node.js 18+

[!Tip] Find API key from Anthropic Console

Do NOT commit real keys use git-ignored files, OS key stores, or secret managers

# Universal /* start login process */ claude /login /* Setup long-lived authentication token */ claude setup-token ---------------------------------------------------------------------------------------------------------------------------------- # Windows /* Set-api-key */ set ANTHROPIC_API_KEY=sk-your-key-here-here /* cmd-masked-check */ echo OK: %ANTHROPIC_API_KEY:~0,8%*** /* Set-persistent-key */ setx ANTHROPIC_API_KEY "sk-your-key-here-here" /* cmd-unset-key */ set ANTHROPIC_API_KEY= ---------------------------------------------------------------------------------------------------------------------------------- # Linux /* Set-api-key */ export ANTHROPIC_API_KEY="sk-your-key-here-here" /* masked-check */ echo "OK: ${ANTHROPIC_API_KEY:0:8}***" /* remove-session */ unset ANTHROPIC_API_KEY ---------------------------------------------------------------------------------------------------------------------------------- # Powershell /* ps-session */ $env:ANTHROPIC_API_KEY = "sk-your-key-here-here" /* ps-masked-check */ "OK: $($env:ANTHROPIC_API_KEY.Substring(0,8))***" /* ps-persist */ [Environment]::SetEnvironmentVariable("ANTHROPIC_API_KEY","sk-your-key-here-here","User") /* ps-rotate */ $env:ANTHROPIC_API_KEY = "sk-new-key" /* ps-remove */ Remove-Item Env:\ANTHROPIC_API_KEY ---------------------------------------------------------------------------------------------------------------------------------- # Other... # persist-bash/* */ echo 'export ANTHROPIC_API_KEY="sk-your-key-here-here"' >> ~/.bashrc && source ~/.bashrc # persist-zsh /* */ echo 'export ANTHROPIC_API_KEY="sk-your-key-here-here"' >> ~/.zshrc && source ~/.zshrc # persist-fish/* */ fish -lc 'set -Ux ANTHROPIC_API_KEY sk-your-key-here-here' ----------------------------------------------------------------------------------------------------------------------------------

五维分析
清晰度8/10
创新性6/10
实用性9/10
完整性8/10
可维护性7/10
优缺点分析

优点

  • 提供多平台的全面安装说明。
  • 包括故障排除和最佳实践。
  • 支持各种集成和自动化功能。

缺点

  • 复杂性可能会让初学者感到困惑。
  • 安装命令在不同平台之间差异很大。
  • 某些部分可能缺乏详细示例。

相关技能

pytorch

S
toolCode Lib / 代码库
92/ 100

“它是深度学习的瑞士军刀,但祝你好运能从47种安装方法里找到那个不会搞崩你系统的那一个。”

agno

S
toolCode Lib / 代码库
90/ 100

“它承诺成为智能体领域的Kubernetes,但得看开发者有没有耐心学习又一个编排层。”

nuxt-skills

S
toolCo-Pilot / 辅助式
90/ 100

“这本质上是一份组织良好的小抄,能把你的 AI 助手变成一只 Nuxt 框架的复读机。”

免责声明:本内容来源于 GitHub 开源项目,仅供展示和评分分析使用。

版权归原作者所有 zebbern.