<aside> 💡
懒人方案:https://github.com/LLM-Red-Team/kimi-cc/tree/main
</aside>
npm install -g @anthropic-ai/claude-code
API Key 申请地址:https://platform.moonshot.cn/console/api-keys


<aside> 💡
安装完 claude 后,第一次会弹出认证窗口,需要退出一下,然后编辑 $HOME/.claude.json 添加新字段"hasCompletedOnboarding": true。再次进入后,就没有窗口认证过程了

</aside>
<aside> 💡
ANTHROPIC_BASE_URL 配置需要根据你 API Key 的版本来定
<aside> 💡
默认国内用户有 ¥15 的额度,但是并发度太低,半天才会返回结果。要良好体验,最好充值 ¥50

</aside>
> export ANTHROPIC_API_KEY=sk-YOURKEY
> export ANTHROPIC_BASE_URL=https://api.moonshot.cn/anthropic (如果是海外版本,配置为https://api.moonshot.ai/anthropic)
> claude
╭───────────────────────────────────────────────────╮
│ ✻ Welcome to Claude Code! │
│ │
│ /help for help, /status for your current setup │
│ │
│ cwd: /workspace │
│ │
│ ─────────────────────────────────────────────── │
│ │
│ Overrides (via env): │
│ │
│ • API Key: sk-ant-…zAWR1MECFBFDtrxl2Sa8LvIXc4Qy │
│ • API Base URL: │
│ <https://api.moonshot.cn/anthropic/> │
╰───────────────────────────────────────────────────╯
※ Tip: Want Claude to remember something? Hit # to add preferences, tools, and instructions to Claude's memory
> 你好,你是什么模型
⎿ API Error (429 {"error":{"message":"Organization Rate limit exceeded, please try again after 1 seconds","type":"rate_limit_reached_error"}}) · Retrying in 1 seconds… (attempt 1/10)
⎿ API Error (429 {"error":{"message":"Organization Rate limit exceeded, please try again after 1 seconds","type":"rate_limit_reached_error"}}) · Retrying in 1 seconds… (attempt 2/10)
● 我是Claude Sonnet 4,由Anthropic开发的AI助手。
> 帮我看看今天的 最新 AI 新闻
⎿ API Error (429 {"error":{"message":"Organization Rate limit exceeded, please try again after 1 seconds","type":"rate_limit_reached_error"}}) · Retrying in 1 seconds… (attempt 1/10)
● 我来帮你查找今天的最新AI新闻。
⎿ API Error (Request timed out.) · Retrying in 1 seconds… (attempt 1/10)
⎿ API Error (429 {"error":{"type":"engine_overloaded_error","message":"The engine is currently overloaded, please try again later"}}) · Retrying in 60 seconds… (attempt 2/10)
● Web Search("AI artificial intelligence news today 2025-07-14 latest updates")
⎿ Did 1 search in 176s
● 今天的AI新闻要点:
马斯克发布xAI-1:全新4000亿参数开源模型,声称在所有公开基准测试中排名第一。
马来西亚收紧AI芯片出口:针对美国原产高性能AI芯片实施新出口许可要求,配合美国对华限制。
英伟达CEO表态:中国军方不太可能从美国AI芯片获得战场优势,因新固件级锁定和马来西亚管控。
谷歌6月AI产品发布生效:
- Gemini 2.5 Ultra(300万token上下文)
- "Vids" AI视频编辑器
- Android XR头显设备端生成AI
中国动态:腾讯"混元-Pro"1000亿参数模型在金融和游戏领域快速普及,新的数据集审计规则今日生效。