OpenClaw Integration

Configure OpenClaw with TheRouter.ai-backed model IDs

OpenClaw supports OpenAI-style providers and model catalogs. Point it to TheRouter.ai and select models in `provider/model` format.

Overview

This page mirrors the OpenRouter workflow and adapts it for TheRouter.ai. Use TheRouter.ai as your OpenAI-compatible endpoint and keep model IDs in `provider/model` format.

Installation

Install the required SDKs and keep your TheRouter.ai key in environment variables.

install.sh
npm install -g openclaw

Configuration

Set TheRouter.ai base URL overrides and pass your API key. Add attribution headers when your app should appear in rankings.

TypeScript
const config = {
  provider: {
    name: "therouter",
    base_url: "https://api.therouter.ai/v1",
    api_key_env: "THEROUTER_API_KEY",
  },
};

Caveats

Integration note
When using multiple bot channels, keep per-channel model policies to avoid expensive models on lightweight interactions.

For production rollouts, pin SDK versions and validate model compatibility in staging before broad rollout.

Help & contact