/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
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install fastrouter-setup - After installation, invoke the skill by name or use
/fastrouter-setup - Provide required inputs per the skill's parameter spec and get structured output
What is 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... It is an AI Agent Skill for Claude Code / OpenClaw, with 117 downloads so far.
How do I install FastRouter Setup?
Run "/install fastrouter-setup" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is FastRouter Setup free?
Yes, FastRouter Setup is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does FastRouter Setup support?
FastRouter Setup is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created FastRouter Setup?
It is built and maintained by vamsimnet (@vamsimnet); the current version is v1.2.0.