OpenClaw
The provider and default agent model go into ~/.openclaw/openclaw.json.
1. Open the settings file
text
~/.openclaw/openclaw.json2. Configure the connection
Check the example context/output settings against your selected provider in the catalog. Replace YOUR_API_KEY. Keep agents.defaults.models so the agent can select the model.
JSON
{
"models": {
"mode": "merge",
"providers": {
"closerouter": {
"baseUrl": "https://api.closerouter.dev/v1",
"apiKey": "YOUR_API_KEY",
"api": "openai-completions",
"models": [
{
"id": "anthropic/claude-opus-4.6",
"name": "Claude Opus 4.6 via CloseRouter",
"reasoning": true,
"input": ["text", "image"],
"contextWindow": 200000,
"maxTokens": 8192
}
]
}
}
},
"agents": {
"defaults": {
"models": {
"closerouter/anthropic/claude-opus-4.6": {}
}
}
}
}Check the connection
Save the file and restart the application. Select the configured CloseRouter model. If it is missing or the key is rejected, check the file location, API address and key.