Search docs...

Start typing to search documentation

OpenClaw

OpenClaw Integration

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

What is OpenClaw?

OpenClaw is an open-source AI agent platform that lets you deploy and manage AI assistants with multi-channel support, self-hosting capabilities, and flexible model configuration.

Core Features

  • Multi-Channel DeploymentDeploy your AI agent across Telegram, Discord, Slack, and more from a single configuration.
  • Self-HostedRun OpenClaw on your own infrastructure with full control over data and privacy.
  • Agent FrameworkBuild intelligent agents with tool use, memory, and multi-step reasoning capabilities.

Quick Setup with CC Switch

Use CC Switch to configure your provider with one click. It automatically sets the API endpoint and provider name for you.

Sign in to auto-fill your API key

Or use the CC Switch CLI:

bash
cc-switch provider add

Installation

Docker and Docker Compose are required. Clone the repository and start the services:

bash
# Install OpenClaw globally
npm install -g openclaw@latest

# Run the onboarding wizard
openclaw onboard

Configuration

Edit the configuration file to connect OpenClaw to UnoRouter:

%APPDATA%\openclaw\config.json

json
{
  "env": {
    "OPENAI_API_KEY": "YOUR_API_KEY"
  },
  "agents": {
    "defaults": {
      "model": {
        "primary": "openai/gpt-5.1-codex-mini"
      }
    }
  },
  "providers": {
    "openai": {
      "baseUrl": "https://api.unorouter.ai/v1",
      "apiKey": "env:OPENAI_API_KEY"
    }
  }
}

Sign in to auto-fill your API key

Key Configuration Details

FieldDescription
providers.openai.baseUrlThe UnoRouter API base URL for OpenAI-compatible requests.
providers.openai.apiKeyYour UnoRouter API key from the dashboard.
agents.defaults.model.primaryThe model to use for your agent (e.g. claude-sonnet-4-20250514, gpt-4o).
envAlternatively, set these values as environment variables:

Start the Service

bash
openclaw start

Ready to get started?

Get your API key and start using UnoRouter with OpenClaw.