Native wire
OpenAI-compatible
Use Tokaroo as an OpenAI-compatible provider for OpenClaw agents and skills.
Tokaroo does not host this harness. It receives the model request, selects a compatible route, handles fallback and metering, then returns the response in the harness's expected format.
OpenAI-compatible
Start with auto. Basic, Fast, Pro, and Max remain available for explicit workload requirements.
Optimized across compatible model families.
The compatible provider path works, but full Tokaroo-only egress conformance is not yet promoted as guaranteed.
Use OPENAI_API_KEY for the Tokaroo credential and OPENAI_BASE_URL for the gateway. The recipe below is the same compatibility path exercised by the Gwen runtime.
npm install -g openclaw@2026.7.1export TOKAROO_API_KEY="tok_..."
export OPENAI_API_KEY="$TOKAROO_API_KEY"
export OPENAI_BASE_URL="https://api.tokaroo.com/v1"
export TOKAROO_HARNESS_REF="openclaw"{
"models": {
"mode": "replace",
"providers": {
"tokaroo": {
"baseUrl": "https://api.tokaroo.com/v1",
"apiKey": "${TOKAROO_API_KEY}",
"api": "openai-completions",
"headers": { "x-tokaroo-harness-ref": "openclaw" },
"models": [
{ "id": "basic", "name": "Tokaroo Basic", "contextWindow": 128000, "maxTokens": 8192 },
{ "id": "fast", "name": "Tokaroo Fast", "contextWindow": 128000, "maxTokens": 8192 },
{ "id": "auto", "name": "Tokaroo Auto", "contextWindow": 128000, "maxTokens": 8192 },
{ "id": "pro", "name": "Tokaroo Pro", "contextWindow": 128000, "maxTokens": 16384 },
{ "id": "max", "name": "Tokaroo Max", "contextWindow": 128000, "maxTokens": 16384 }
]
}
}
},
"agents": { "defaults": { "model": { "primary": "tokaroo/auto" } } }
}export TOKAROO_API_KEY="tok_..."
openclaw agent --local --message "Return exactly: Tokaroo connected"OPENAI_API_KEY = your Tokaroo key
OPENAI_BASE_URL = https://api.tokaroo.com/v1
auto for the first run; switch to Basic, Fast, Pro, or Max only for a measured workload need
openclaw is a compatibility preference, never a hard model lock
This direct request proves the key, protocol, model alias, and harness profile header independently of the harness process.
curl https://api.tokaroo.com/v1/chat/completions \
-H "Authorization: Bearer $TOKAROO_API_KEY" \
-H "x-tokaroo-harness-ref: openclaw" \
-H "Content-Type: application/json" \
-d '{"model":"auto","messages":[{"role":"user","content":"Return exactly: Tokaroo connected"}]}'A successful native response containing Tokaroo connected.
Record the trace ID, requested Tokaroo mode, input and output tokens, latency, and Tokaroo charge.
CLI, MCP, skills, agent tools.
The harness remains responsible for its own installation, updates, sandbox, filesystem, tools, and network policy.
Store the Tokaroo key in a secret manager or trusted runtime environment.
Use Auto first, then choose another Tokaroo mode only for a measured workload requirement.
Preserve the harness's native wire and tool event format.
Log Tokaroo trace, requested-mode, token, latency, and charge headers with the harness run identifier.
Set spend limits, retry 429 and 503 responses with backoff, and monitor balance before production rollout.
Use Auto for the initial integration, then validate tool behavior, latency, usage, and output quality against your own workload.