/install fastrouter-setup
FastRouter Setup
Add the FastRouter AI provider to OpenClaw with all available text and vision models using only built-in tools (no script execution required).
Inputs
- API Key (required): Starts with
sk-v1-followed by a hex string. If not provided, ask for it. - Base URL (optional): Defaults to
https://api.fastrouter.ai
Steps
1. Extract the API key
Parse the API key from the user's message. It starts with sk-v1-.
If no API key is found, ask the user for it. Do NOT proceed without one.
2. Fetch models
Use web_fetch to get the model list:
web_fetch url="https://api.fastrouter.ai/v1/models" extractMode="text"
3. Filter models
From the response JSON, keep only models where:
is_activeis truearchitecture.output_modalitiesincludes "text"architecture.input_modalitiesincludes "text" or "image"
For each qualifying model, extract:
id— the model identifiercontext_length— context window sizetop_provider.max_completion_tokens— max output tokens (if 0 or missing, use min(context_length, 8192))- Input types: list of "text" and/or "image" from input_modalities
4. Build provider config
Construct the provider object (do NOT include a "name" key — OpenClaw rejects it):
{
"baseUrl": "https://api.fastrouter.ai",
"api": "openai-completions",
"apiKey": "THE_API_KEY",
"models": [
{
"id": "model/id",
"name": "Display Name",
"contextWindow": 128000,
"maxTokens": 8192,
"input": ["text", "image"],
"cost": {"input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0},
"reasoning": false
}
]
}
5. Update openclaw.json
Use read to load ~/.openclaw/openclaw.json.
Merge the provider into models.providers.fastrouter, preserving all other config.
Also add model references to agents.defaults.models — for each model, add:
"fastrouter/MODEL_ID": {}
Use write to save the updated config.
6. Restart gateway
openclaw gateway restart
This is the only step requiring user approval.
7. Report to user
Tell the user:
- How many models were added
- They can switch models with
/model fastrouter/MODEL_ID - Suggest popular models (claude, gpt, gemini, deepseek variants)
Error Handling
- API unreachable: Tell the user the FastRouter API may be down, try again later
- No qualifying models: Warn that no text/image models were found
- Config file missing: Create the full structure from scratch
- Invalid API key format: Ask the user to double-check their key
Notes
- Provider key is
fastrouter - Existing fastrouter config will be replaced with fresh model list
- All other providers and settings are preserved
- Cost is set to zero (FastRouter handles billing separately)
- Video-only and audio-only models are excluded
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install fastrouter-setup - 安装完成后,直接呼叫该 Skill 的名称或使用
/fastrouter-setup触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
FastRouter Setup 是什么?
Add the FastRouter AI provider to OpenClaw with all available text and vision models, fetched live from the FastRouter API. Use when: (1) a user wants to set... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 117 次。
如何安装 FastRouter Setup?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install fastrouter-setup」即可一键安装,无需额外配置。
FastRouter Setup 是免费的吗?
是的,FastRouter Setup 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
FastRouter Setup 支持哪些平台?
FastRouter Setup 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 FastRouter Setup?
由 vamsimnet(@vamsimnet)开发并维护,当前版本 v1.2.0。