Skip to content

OpenClaw Clawdbot Custom Relay Station Configuration Guide

Step 1: Installation and Basic Initialization

First, ensure you have Node.js installed, then execute the following in your terminal:

  1. Global Installation:
npm i -g clawdbot
  1. Run the Onboarding Guide (complete basic setup as prompted):
clawdbot onboard

Note: On native Windows environments, if you receive a message that openclaw is not recognized as a command, use clawdbot consistently.


Step 2: Modify the Main Configuration File clawdbot.json

Open the path: C:\Users\Administrator\.clawdbot\clawdbot.json
Modify the models and auth sections to the following content to support custom relay stations.

{
  "agents": {
    "defaults": {
      "workspace": "C:\\Users\\Administrator\\clawd",
      "models": {
        "api-proxy-gpt/gpt-4o": { "alias": "GPT-4o" },
        "api-proxy-claude/claude-sonnet-4-5-20250929": { "alias": "Claude Sonnet 4.5" },
        "api-proxy-google/gemini-3-pro-preview": { "alias": "Gemini 3 Pro" }
      },
      "model": {
        "primary": "api-proxy-claude/claude-sonnet-4-5-20250929"
      }
    }
  },
  "auth": {
    "profiles": {
      "api-proxy-gpt:default": { "provider": "api-proxy-gpt", "mode": "api_key" },
      "api-proxy-claude:default": { "provider": "api-proxy-claude", "mode": "api_key" },
      "api-proxy-google:default": { "provider": "api-proxy-google", "mode": "api_key" }
    }
  },
  "models": {
    "mode": "merge",
    "providers": {
      "api-proxy-gpt": {
        "baseUrl": "https://www.kkiai.com/v1",
        "api": "openai-completions",
        "models": [
          { "id": "gpt-4o", "name": "GPT-4o", "contextWindow": 128000, "maxTokens": 8192 }
        ]
      },
      "api-proxy-claude": {
        "baseUrl": "https://www.kkiai.com",
        "api": "anthropic-messages",
        "models": [
          { "id": "claude-sonnet-4-5-20250929", "name": "Claude Sonnet 4.5", "contextWindow": 200000, "maxTokens": 8192 }
        ]
      },
      "api-proxy-google": {
        "baseUrl": "https://www.kkiai.com/v1beta",
        "api": "google-generative-ai",
        "models": [
          { "id": "gemini-3-pro-preview", "name": "Gemini 3 Pro", "contextWindow": 2000000, "maxTokens": 8192 }
        ]
      }
    }
  }
}

Step 3: Configure the Authentication File auth-profiles.json

Open the path: C:\Users\Administrator\.clawdbot\agents\main\agent\auth-profiles.json
Fill in the actual API Keys you obtained from the relay station.

{
  "version": 1,
  "profiles": {
    "api-proxy-gpt:default": {
      "type": "api_key",
      "provider": "api-proxy-gpt",
      "key": "sk-your-unique-gpt-key-here"
    },
    "api-proxy-claude:default": {
      "type": "api_key",
      "provider": "api-proxy-claude",
      "key": "sk-your-unique-claude-key-here"
    },
    "api-proxy-google:default": {
      "type": "api_key",
      "provider": "api-proxy-google",
      "key": "sk-your-unique-google-key-here"
    }
  },
  "lastGood": {
    "api-proxy-gpt": "api-proxy-gpt:default",
    "api-proxy-claude": "api-proxy-claude:default",
    "api-proxy-google": "api-proxy-google:default"
  }
}

Step 4: Verify and Start

  1. Run Health Check:
clawdbot doctor
  1. Start the Gateway Service:
clawdbot gateway
  1. Access the Console:
    Open your browser and visit http://127.0.0.1:18789/, then log in using the Token output at the end of clawdbot onboarding to begin training your AI Agent.