read_when, summary, title, x-i18n
| read_when |
summary |
title |
x-i18n |
| 你想用一个 API 密钥访问多种 LLM |
| 你想在 OpenClaw 中通过 OpenRouter 运行模型 |
|
使用 OpenRouter 的统一 API 在 OpenClaw 中访问多种模型 |
OpenRouter |
| generated_at |
model |
provider |
source_hash |
source_path |
workflow |
| 2026-02-01T21:35:19Z |
claude-opus-4-5 |
pi |
b7e29fc9c456c64d567dd909a85166e6dea8388ebd22155a31e69c970e081586 |
providers/openrouter.md |
15 |
|
OpenRouter
OpenRouter 提供了一个统一 API,通过单一端点和 API 密钥将请求路由到多种模型。它兼容 OpenAI,因此大多数 OpenAI SDK 只需切换 base URL 即可使用。
CLI 设置
配置片段
注意事项
- 模型引用格式为
openrouter/<provider>/<model>。
- 更多模型/提供商选项,请参阅模型提供商。
- OpenRouter 底层使用 Bearer 令牌和你的 API 密钥进行认证。