模型Models
OpenRouter
连接Connection
协议ProtocolOpenAI 的接口经本地代理转换,Claude Code 的请求和回答都由它翻译。OpenAI’s APIs go through the local proxy, which translates Claude Code’s requests and the answers.OpenAI Chat Completions
Base URLhttps://openrouter.ai/api/v1
API 密钥API Key存在系统钥匙串里,不写进 settings.json。Kept in the system’s keychain, not in settings.json.•••••••••••••••••••••••••••
请求头HeadersHTTP-Referer: https://baocode.dev
模型Models勾选的会出现在模型选择器里。Those checked are offered in the model picker.从上游获取Fetch from upstream添加模型Add model
openai/gpt-6-astra · 400K测试Test✓ 1.2s
deepseek/deepseek-v4.1-flash · 400K测试Test✓ 0.8s
google/gemini-3.5-pro · 1M测试Test
角色RolesClaude Code 每类工作用哪个模型;不设就用选中的模型。Which model Claude Code uses for each part of its work; unset, the one picked.
主模型Main modelopenai/gpt-6-astra
快速模型Fast modeldeepseek/deepseek-v4.1-flash