ClawdBot(MoltBot) 自定义模型 API Key
·
Moltbot 使用 pi-coding-agent 模型目录。你可以添加自定义供应商 (LiteLLM、本地兼容 OpenAI 服务器、Anthropic 代理等)
https://docs.clawd.bot/gateway/configuration#models-custom-providers-+-base-urls
配置位置:
~/.clawdbot/clawdbot.json
这里使用 F2API 的Key
{
agents: {
defaults: {
model: { primary: "custom-proxy/gemini-3-flash-preview" },
models: {
"custom-proxy/gemini-3-flash-preview": {}
}
}
},
models: {
mode: "merge",
providers: {
"custom-proxy": {
baseUrl: "https://api.f2api.com/v1",
apiKey: "sk-f2jFMWZ5SWq9QZ...",
api: "openai-completions",
models: [
{
id: "gemini-3-flash-preview",
name: "gemini-3-flash-preview",
reasoning: false,
input: ["text"],
cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 },
contextWindow: 128000,
maxTokens: 32000
}
]
}
}
}
}
更多推荐




所有评论(0)