Skip to content

获取 API Key

API Key 是你调用 CodyRouter API、配置 Claude Code、Codex、OpenCode、OpenClaw 或其他 API 接入工具时使用的密钥。

创建步骤

  1. 登录 CodyRouter 控制台
  2. 打开 API Keys 页面
  3. 创建新的 API Key。
  4. 复制生成的 Key,并保存到本地安全位置。
  5. 在工具或代码中使用这个 Key。

使用建议

  • 不要把 API Key 提交到 Git 仓库。
  • 不要把 API Key 放到前端公开代码里。
  • 本地开发优先使用环境变量。

CodyRouter 集成文档。