OpenRouter
本文介绍如何在 OmniAgent 中配置 OpenRouter 模型服务。
OpenRouter 在 Anthropic API 与各大模型提供商之间提供了一层统一的中转与管理,支持自动故障转移、用量统计与组织预算控制。
获取 API Key
-
登录 OpenRouter 官网,注册或登录账号。
-
进入 Settings → Keys 页面。

-
点击 Create Key,复制生成的 API Key。

密钥仅在创建时显示一次,请立即保存到安全位置。
在 OmniAgent 中配置
-
打开 OmniAgent 的 系统设置 -> API Key 页面。
-
点击 + 添加,选择提供商 其他。
-
配置信息:
- Base URL: 填写需要使用的 Base URL(见下方列表)。
- 模型:填写需要使用的模型名称。
- API Key: 填入您刚刚获取的 OpenRouter API Key。

常用服务商 Base URL 参考
如需填写 Base URL,可参考下表选择对应服务商地址:
| 服务商 | Base URL | 推荐模型 |
|---|---|---|
| Qwen | https://dashscope.aliyuncs.com/apps/anthropic | qwen3.5-plus |
| DeepSeek | https://api.deepseek.com/anthropic | deepseek-chat |
| Kimi | https://api.moonshot.ai/anthropic | kimi-k2.5 |
| GLM | https://open.bigmodel.cn/api/anthropic | GLM-4.7 |
| MiniMax | https://api.minimax.com/anthropic | MiniMax-M2.5 |
| Anthropic | https://api.anthropic.com/v1 | claude-sonnet-4-6 |
注意事项
- Base URL: OpenRouter 使用
https://openrouter.ai/api作为端点,与 Anthropic API 格式完全兼容。
OpenRouter 支持 Anthropic API 兼容格式,您可以在任何支持 Anthropic SDK 的工具中,将 Base URL 替换为 https://openrouter.ai/api 后直接使用 OpenRouter API Key 接入。