Search docs...

Start typing to search documentation

openclaw
OpenClaw

OpenClaw Integration

Use UnoRouter as the model provider for your OpenClaw agent.

Overview

OpenClaw is an open-source agent platform for self-hosted AI assistants on Telegram, Discord, Slack, and more from one config. Set its openai provider to UnoRouter's base URL and every channel reaches the full catalog with one key.

Quick Config

Paste these into the client. Your key auto-fills when 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`. Point the openai provider at UnoRouter's base URL, read the key from `OPENAI_API_KEY`, and 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 here. Paste any model id into the client.

glm-5.3-search:freeglm-5.3-think-search:freeglm-5.3-thinking:freeglm-5.3:freeqwen-3.8-27b:free

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 from UnoRouter's models page.
Generate API KeyModels