mirror of
https://github.com/musistudio/claude-code-router.git
synced 2026-01-29 22:02:05 +00:00
764 B
764 B
id, title, sidebar_position
| id | title | sidebar_position |
|---|---|---|
| installation | 安装 | 2 |
安装
使用您喜欢的包管理器全局安装 Claude Code Router。
前置要求
- Node.js: >= 18.0.0
- pnpm: >= 8.0.0(如果使用 pnpm)
- 来自您偏好的 LLM 提供商的 API 密钥
通过 npm 安装
npm install -g @musistudio/claude-code-router
通过 pnpm 安装
pnpm add -g @musistudio/claude-code-router
通过 Yarn 安装
yarn global add @musistudio/claude-code-router
验证安装
安装完成后,验证 ccr 命令是否可用:
ccr --version
您应该看到版本号显示。
下一步
安装完成后,前往 快速开始 了解如何配置和使用路由器。