FastClaw
集成 · 模型

在 FastClaw 中通过 OpenRouter 使用海量模型

把 FastClaw 接入 OpenRouter,用一个 API Key 让每个 Agent 都能使用多家厂商的模型。

01

一个 Key,多家厂商

openrouter 预设指向 https://openrouter.ai/api/v1 并读取 OPENROUTER_API_KEY,之后可选择 OpenRouter 上的任意模型。

02

每个 Agent 一个模型

在单个 Agent 上试用新模型,不影响部署中的其他 Agent。

03

随时切换

在控制台或 fastclaw chat 中用 /model 切换模型,会话和记忆都会保留。

能做什么

  • 让外包客户自己挑模型,而你不必管理十几家厂商的 Key——参见 FastClaw 面向服务商。
  • 给不同 Agent 配置不同厂商的模型,横向对比效果。
  • 需要厂商专属能力时,随时切回直连的 Anthropic 或 OpenAI。

接入步骤

  1. 在 Console → Models 中点击 Add provider,选择 OpenRouter 并粘贴 Key。
  2. 添加你要使用的模型 ID 并选择默认模型,或在某个 Agent 的 Models 标签页中单独设置。
  3. 使用 CLI 时,预设会自动填好 API 地址:
fastclaw agents config alpha set provider.openrouter.apiKeyEnv OPENROUTER_API_KEY
fastclaw agents config alpha set provider.openrouter.apiBase https://openrouter.ai/api/v1

补充说明

服务商、默认模型和 Agent 级覆盖之间的关系,详见 模型功能页。

常见问题

在你自己的 Agent 上试试

在 FastClaw Cloud 免费开始,或一分钟内自部署单个二进制。