← Back to Skills Marketplace
vamsimnet

FastRouter Setup

by vamsimnet · GitHub ↗ · v1.2.0 · MIT-0
cross-platform ✓ Security Clean
117
Downloads
0
Stars
0
Active Installs
4
Versions
Install in OpenClaw
/install fastrouter-setup
Description
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...
README (SKILL.md)

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_active is true
  • architecture.output_modalities includes "text"
  • architecture.input_modalities includes "text" or "image"

For each qualifying model, extract:

  • id — the model identifier
  • context_length — context window size
  • top_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
Usage Guidance
This skill appears to do what it claims, but take these precautions before using it: 1) Only provide a FastRouter API key — double-check the key prefix so you don't accidentally paste an OpenAI or other provider key. 2) Backup ~/.openclaw/openclaw.json before running the skill; it will overwrite any existing 'fastrouter' provider entry. 3) Be aware the API key will be written into your config file (plaintext unless your system encrypts it); consider using a secrets store if available. 4) Confirm the gateway restart when prompted. If you want extra safety, ask the agent to show the exact provider object it plans to write and confirm it before saving.
Capability Analysis
Type: OpenClaw Skill Name: fastrouter-setup Version: 1.2.0 The skill bundle is designed to automate the configuration of the FastRouter AI provider within OpenClaw. It fetches model metadata from 'https://api.fastrouter.ai/v1/models', updates the local '~/.openclaw/openclaw.json' configuration file, and restarts the gateway. The actions performed are consistent with the stated purpose and use standard OpenClaw tools (web_fetch, read, write) without evidence of malicious intent or data exfiltration.
Capability Assessment
Purpose & Capability
Name/description match the actions in SKILL.md: fetching models from api.fastrouter.ai, filtering text/image-capable models, and adding them as a provider in ~/.openclaw/openclaw.json. All requested actions (read/write config, fetch remote model list, restart gateway) are coherent with a 'provider setup' skill.
Instruction Scope
Instructions are narrow and focused: parse an API key from the user message, call the FastRouter models endpoint, filter results, and write provider + model references to the OpenClaw config. This scope is appropriate, but the skill expects the agent to extract secrets from user messages (the API key) and to write that secret directly into the config file. Also, the SKILL.md explicitly states that restarting the gateway is the only step that requires user approval — writing/replacing provider config is not gated, which may be surprising to users.
Install Mechanism
Instruction-only skill with no install steps and no code files — lowest installation risk. It uses built-in web_fetch and read/write actions, not external installers or downloads.
Credentials
No environment variables or unrelated credentials are requested, which is appropriate. The skill does ask the user directly for an API key (prefix 'sk-v1-'), and then stores that key in openclaw.json. Two concerns: (1) the 'sk-v1-' prefix is identical to many OpenAI-style keys and could lead users to accidentally paste a different provider's key (unintentional credential exposure), and (2) the API key will be written to the user's config file in plaintext unless the platform masks or encrypts it — users should be aware of local storage risks.
Persistence & Privilege
The skill will modify the user's ~/.openclaw/openclaw.json and replace any existing 'fastrouter' provider entry with the fresh model list; this is within scope for a setup tool but can be destructive. While gateway restart is flagged as requiring user approval, the SKILL.md implies config changes occur without explicit consent beyond the initial invocation. Users should be prompted to review/backup config before the write step.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install fastrouter-setup
  3. After installation, invoke the skill by name or use /fastrouter-setup
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.2.0
Renamed provider key from custom-api-fastrouter-ai to fastrouter
v1.1.2
Renamed provider key from custom-go-fastrouter-ai to custom-api-fastrouter-ai
v1.1.0
Replaced Python script with native tool instructions. No script execution or approval needed except for gateway restart.
v1.0.0
Initial release of fastrouter-setup skill: - Adds FastRouter as a model provider to OpenClaw using a user-supplied API key. - Fetches all available text and vision models live from the FastRouter API. - Updates the OpenClaw config and restarts the gateway automatically. - Handles setup triggers, missing API keys, API errors, and incorrect key formats. - Informs users about added models and how to use them after setup.
Metadata
Slug fastrouter-setup
Version 1.2.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 4
Frequently Asked Questions

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.

💬 Comments