What is OpenClaw?
OpenClaw is a privacy-first open-source agent with guarded network paths — you control exactly where requests go. It declares model providers in openclaw.json, and any OpenAI-compatible endpoint is added with the openai-completions API type.
- A CLI + VS Code agent built around an explicit, auditable network path.
- Custom providers live under
models.providersinopenclaw.json. - Uses
api: "openai-completions"for OpenAI-compatible endpoints. - Keys are referenced from environment variables.
Why route OpenClaw through Tokonomix?
OpenClaw’s trust model lines up with Tokonomix: you own the network path, and Tokonomix is one endpoint that fans out to 130+ models — with consensus and region routing for the calls where it matters.
- Set
tokonomix-consensusas the default for any planning task. - One provider, 130+ models, one key.
- Per-call spend caps and
hosting_region/origin_countryrouting. - Reference your key from an env var — nothing secret in the config file.
Connect Tokonomix in openclaw.json
Add a provider under models.providers with the Tokonomix baseUrl, an apiKey env reference and api: "openai-completions", then set it as the default model.
{
"agents": {
"defaults": { "model": { "primary": "tokonomix/tokonomix-consensus" } }
},
"models": {
"providers": {
"tokonomix": {
"baseUrl": "https://tokonomix.ai/api/v1",
"apiKey": "${TOKONOMIX_API_KEY}",
"api": "openai-completions",
"models": [
{ "id": "tokonomix-consensus", "name": "Tokonomix Consensus", "contextWindow": 200000 }
]
}
}
}
}Verify it works
- Export
TOKONOMIX_API_KEYand saveopenclaw.json. - Run a small task and confirm OpenClaw uses the Tokonomix model.
- Confirm the call and token usage in your Tokonomix dashboard.

