Search docs...

Start typing to search documentation

openclaw
OpenClaw

OpenClaw Integration

Use UnoRouter as a model provider for your OpenClaw agent. Configure once and access every model through OpenClaw's gateway.

Overview

OpenClaw is an open-source agent platform for deploying self-hosted AI assistants across Telegram, Discord, Slack, and more from one configuration. Set its openai provider to UnoRouter's base URL and every channel reaches the full model catalog through a single OpenAI-compatible key.

Quick Config

Drop these values into the client. Your key auto-fills when you are signed in.

text
Base URL: https://api.unorouter.com/v1
API Key: YOUR_API_KEY

Sign in to auto-fill your API key

Compatibility

Chat CompletionsStreamingTool calling

Step-by-step setup

  1. 1
    Install and onboard

    Install OpenClaw globally with npm, then run `openclaw onboard` to scaffold the config.

    bash
    npm install -g openclaw@latest
    openclaw onboard

    Sign in to auto-fill your API key

  2. 2
    Point the provider at UnoRouter

    Edit `~/.openclaw/config.json` so the openai provider uses UnoRouter's base URL and reads the API key from the `OPENAI_API_KEY` env var. Set your default model under agents.

    json
    // ~/.openclaw/config.json
    {
      "env": { "OPENAI_API_KEY": "YOUR_API_KEY" },
      "agents": {
        "defaults": { "model": { "primary": "openai/YOUR_MODEL_ID" } }
      },
      "providers": {
        "openai": {
          "baseUrl": "https://api.unorouter.com/v1",
          "apiKey": "env:OPENAI_API_KEY"
        }
      }
    }

    Sign in to auto-fill your API key

  3. 3
    Start OpenClaw

    Run `openclaw start` to launch the agent against UnoRouter.

powershell
# In %APPDATA%\openclaw\config.json set
# providers.openai.baseUrl to "https://api.unorouter.com/v1"
$env:OPENAI_API_KEY="YOUR_API_KEY"

openclaw onboard

Sign in to auto-fill your API key

Recommended models

Free models that work well here. Paste any model id into the client.

mistral-medium-c21211-r0-75qwen3.6-27bqwen2.5-vl-72b-instructnemotron-3.5-content-safetymistral-large-2512

Gotchas

  • If OpenClaw cannot reach the API, confirm `providers.openai.baseUrl` ends in `/v1` and `OPENAI_API_KEY` is exported in the same shell.
  • If the model is rejected, set `agents.defaults.model.primary` to a valid id prefixed with `openai/`, copied exactly from UnoRouter's models page.
Generate API KeyModels