2026年Claude Code安装与配置手册

Claude Code安装与配置手册你需要有自己的 token 安装 Homebrew 如果未安装 bin bash c curl fsSL https raw githubuserco com Homebrew install HEAD install sh 安装 Node js brew install node 验证安装 node

大家好,我是讯享网,很高兴认识大家。这里提供最前沿的Ai技术和互联网信息。



你需要有自己的token

安装 Homebrew(如果未安装)

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

安装 Node.js

brew install node

验证安装

node --version
npm --version

地址:

brew install --cask claude-code

验证 claude -v

claude --version

如果出现如:  2.1.87 (Claude Code)                                                                                           表示安装OK                                                                                                      

找到系统目录下.claude文件下settings.json文件 复制以下配置

{ "alwaysThinkingEnabled": true, "attribution": { "commit": "", "pr": "" }, "cleanupPeriodDays": 2, "coding": { "constraints": { "maxFileChanges": 3, "noLargeInlineLogic": true, "preferNamedFunctions": true }, "principles": [ "clarity-over-cleverness", "explicit-boundaries", "readability-first", "fail-fast", "testable-design" ], "style": "human" }, "dangerouslySkipPermissions": false, "displayMode": "split-panes", "enabledPlugins": , "env": { "ANTHROPIC_AUTH_TOKEN": "", "ANTHROPIC_BASE_URL": "https://api.aicodemirror.com/api/claudecode", "API_TIMEOUT_MS": "", "CLAUDE_CODE_ATTRIBUTION_HEADER": "0", "CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC": "1", "CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS": "1", "CLAUDE_CODE_PROXY_RESOLVES_HOSTS": "true", "CLAUDE_CODE_SKIP_PROMPT_HISTORY": "1", "DISABLE_ERROR_REPORTING": "1", "DISABLE_INSTALLATION_CHECKS": "1", "DISABLE_TELEMETRY": "1", "ENABLE_TOOL_SEARCH": "1" }, "hooks": ] } ] }, "includeCoAuthoredBy": false, "mcp": { "autoInvoke": true, "requiredFor": [ "code-change", "architecture-decision", "refactor", "bug-fix" ], "sources": [ "repo", "git-history", "tests", "docs" ] }, "model": "opus[1m]", "output": , "outputStyle": "Explanatory", "permissionMode": "plan", "skipDangerousModePermissionPrompt": true, "skipWebFetchPreflight": true, "teammateMode": "tmux", "thinking": , "verbose": true }

ANTHROPIC_AUTH_TOKEN 换上自己的token

superpowers(强烈推荐) https://mp.weixin..com/s/8SGRMIyspvUcLMcmeDa2Mw

hookify

chrome-devtools 浏览器操作

context7 官方接口对接

mcp-deepwiki 查看源码

sequential-thinking

claude-hud 查看模型使用量 https://mp.weixin..com/s/hLO3CZLtDUdG_JPVEPcPiw

code-review

code-simplifier

frontend-design

security-guidance

/clear 清理会话(不同任务要清理会话)

/compact 压缩会话

/model 选择模型

/btw 会话过程中修正大模型

/insights 分析自己提示词

/simplify 代码优化

/branch 切会话

/exit 退出会话

/mcp 查看mcp

/skills 查看skill

/plugin 查看插件

/resume 回退

/rename 重命名

/rewind 回撤代码及会话

/init 初始化项目 生成CLAUDE.md文件

/loop 循环调用

Harness

gstack

Cowork Dispatch插件

Channel

Remote-Control

agent team

等自己去尝试

小讯
上一篇 2026-04-16 17:46
下一篇 2026-04-16 17:44

相关推荐

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容,请联系我们,一经查实,本站将立刻删除。
如需转载请保留出处:https://51itzy.com/kjqy/262118.html