OpenClaw (gateway)

Route OpenClaw’s LLM calls through the Respan gateway for automatic logging, caching, and model switching. OpenClaw supports custom OpenAI-compatible providers, so only your RESPAN_API_KEY is needed.

Setup

1

Install OpenClaw

npm install -g openclaw@latest
2

Add Respan as a custom provider

Edit ~/.openclaw/openclaw.json and define a Respan-backed model under agents.defaults:

{
agents: {
defaults: {
model: {
primary: "respan/gpt-4o"
},
models: {
"respan/gpt-4o": {
alias: "Respan Gateway",
provider: "custom",
baseUrl: "https://api.respan.ai/api",
apiKey: "${RESPAN_API_KEY}"
}
}
}
}
}

Set RESPAN_API_KEY in your shell or in ~/.openclaw/.env:

RESPAN_API_KEY=YOUR_RESPAN_API_KEY

No separate provider key needed. The Respan gateway handles provider authentication.

3

Run OpenClaw

openclaw

All LLM calls now route through Respan.

Switch models

Add more entries under models and change model.primary to use any of the 1000+ models available through the gateway.

model: {
primary: "respan/gpt-4o"
// primary: "respan/claude-sonnet-4-5-20250929"
// primary: "respan/gemini-3.5-flash"
}

See the full model list.