OpenClaw Integration
1. Prerequisites
- Registered and obtained a platform API Key.
- Node.js environment installed.
- OpenClaw installed:bash
# MacOS / Linux curl -fsSL https://openclaw.ai/install.sh | bash # Windows iwr -useb https://openclaw.ai/install.ps1 | iex
2. Recommended: One-Command Setup with codesw
codesw writes directly to ~/.openclaw/openclaw.json with the right provider, models and defaults — no proxy, no middleman.
2.1 Install
bash
npm i -g @bumocc/codesw
# or
yarn global add @bumocc/codesw2.2 Run the interactive mode
Just execute:
bash
codeswFollow the prompts — use the arrow keys to select and Enter to confirm. Three steps:
- Which client to configure: choose
OpenClaw. - Which provider: choose
Bumo Router. The first time, paste the key from the API Keys page (shown as*while typing); it is saved and reused afterwards. - Which model: recommended models are listed first, e.g.
claude-sonnet-5-5; or choose "Enter a model ID…" to type your own.
Then restart OpenClaw:
bash
openclaw gateway restartAppendix: Manual Configuration (Alternative)
Open ~/.openclaw/openclaw.json and merge the following configuration:
json
{
"models": {
"providers": {
"router.bumo.ai": {
"baseUrl": "https://router.bumo.ai/",
"apiKey": "YOUR_API_KEY",
"api": "openai-completions",
"models": [
{
"id": "claude-opus-4-6",
"name": "claude-opus-4-6",
"reasoning": true,
"input": ["text", "image"]
}
]
}
}
},
"agents": {
"defaults": {
"model": {
"primary": "claude-opus-4-6",
"fallbacks": ["claude-opus-4-6"]
},
"models": {
"router.bumo.ai/claude-opus-4-6": {}
}
}
}
}Then restart OpenClaw:
bash
openclaw gateway restartReplace
YOUR_API_KEYwith your platform API Key.
