OpenClaw Latest Custom Relay Setup
Make sure Node.js is installed, then in a terminal:
OpenClaw Latest Custom Relay Setup
Step 1: Install and onboard
Make sure Node.js is installed, then in a terminal:
- Install globally:
npm install -g openclaw@latestjson- Run onboarding (follow the prompts):
openclaw onboardjsonStep 2: Edit main config clawdbot.json
Open: C:\Users\admin\.openclaw\openclaw.json
Update the models and auth sections as below to use a custom relay.
{ "agents": { "defaults": { "model": { "primary": "api-proxy-claude/claude-sonnet-4-5-20250929" }, "models": { "api-proxy-gpt/gpt-5.2": { "alias": "GPT-5.2" }, "api-proxy-claude/claude-sonnet-4-5-20250929": { "alias": "Claude Sonnet 4.5" }, "api-proxy-google/gemini-3-pro-preview": { "alias": "Gemini 3 Pro" }, "api-proxy-deepseek/deepseek-v3.2": { "alias": "Deepseek v3.2" } }, "workspace": "C:\\Users\\admin\\clawd", "maxConcurrent": 4, "subagents": { "maxConcurrent": 8 } } }, "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" }, "api-proxy-deepseek:default": { "provider": "api-proxy-deepseek", "mode": "api_key" } } }, "models": { "mode": "merge", "providers": { "api-proxy-gpt": { "baseUrl": "https://api.digislash.com/v1", "api": "openai-responses", "models": [ { "id": "gpt-5.2", "name": "GPT-5.2", "reasoning": false, "input": [ "text" ], "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 }, "contextWindow": 128000, "maxTokens": 8192 } ] }, "api-proxy-claude": { "baseUrl": "https://api.digislash.com", "api": "anthropic-messages", "models": [ { "id": "claude-sonnet-4-5-20250929", "name": "Claude Sonnet 4.5", "reasoning": false, "input": [ "text" ], "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 }, "contextWindow": 200000, "maxTokens": 8192 } ] }, "api-proxy-google": { "baseUrl": "https://api.digislash.com/v1", "api": "google-generative-ai", "models": [ { "id": "gemini-3-pro-preview", "name": "Gemini 3 Pro", "reasoning": false, "input": [ "text" ], "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 }, "contextWindow": 2000000, "maxTokens": 8192 } ] }, "api-proxy-deepseek": { "baseUrl": "https://api.digislash.com/v1", "api": "openai-completions", "models": [ { "id": "deepseek-v3.2", "name": "Deepseek v3.2", "reasoning": false, "input": [ "text" ], "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 }, "contextWindow": 2000000, "maxTokens": 8192 } ] } } } }jsonStep 3: Configure auth file auth-profiles.json
Open: C:\Users\admin\.openclaw\agents\main\agent\auth-profiles.json
Put the real API keys from your relay here.
{ "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" }, "api-proxy-deepseek:default": { "type": "api_key", "provider": "api-proxy-deepseek", "key": "sk-your-unique-deepseek-key-here" } } }jsonStep 4: Check and start
- Start the Gateway:
openclaw gateway --port 18789json- Open the console: Visit
http://127.0.0.1:18789/
