CLI 设置
配置片段
注意事项
- 模型引用格式为
openrouter/<provider>/<model>。 - 更多模型/提供商选项,请参阅模型提供商。
- OpenRouter 底层使用 Bearer 令牌和你的 API 密钥进行认证。
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Claude Code
OpenRouter 文档
openclaw onboard --auth-choice apiKey --token-provider openrouter --token "$OPENROUTER_API_KEY"
{
env: { OPENROUTER_API_KEY: "sk-or-..." },
agents: {
defaults: {
model: { primary: "openrouter/anthropic/claude-sonnet-4-5" },
},
},
}
openrouter/<provider>/<model>。Was this page helpful?