OpenClaw
Gate supports OpenClaw. Route it through Gate to add prompt-injection scanning, audit, caching, and cost tracking. Your agents do not change.
Pay through Gate
Create your Gate key (sk-gw-…) under API keys in the dashboard, then use it as your only credential. Gate routes each request and bills your prepaid balance. List any Gate-catalog models under models, written provider/model. Browse IDs on the dashboard’s Models page or via GET /v1/models.
~/.openclaw/openclaw.json:
{ "models": { "providers": { "gate": { "baseUrl": "https://gateway.constellationgate.ai/v1", "apiKey": "${GATE_API_KEY}", "api": "openai-completions", "models": [{ "id": "anthropic/claude-opus-4-8", "name": "anthropic/claude-opus-4-8" }] } } }}~/.openclaw/.env:
GATE_API_KEY=sk-gw-…your Gate key…Replace sk-gw-…your Gate key… in .env with your own Gate key.
Use your own keys
Keep your own provider key (OpenRouter shown here). Gate forwards it and adds its security and audit layer underneath.
~/.openclaw/openclaw.json:
{ "models": { "providers": { "openrouter": { "baseUrl": "https://gateway.constellationgate.ai", "apiKey": "${OPENROUTER_API_KEY}", "api": "openai-completions", "headers": { "X-Gate-Api-Key": "sk-gw-…your Gate key…", "X-Gate-Upstream-Url": "https://openrouter.ai/api/v1" }, "models": [{ "id": "openrouter/auto", "name": "openrouter/auto" }] } } }}~/.openclaw/.env:
OPENROUTER_API_KEY=sk-or-…your OpenRouter key…Confirm requests are flowing
Restart OpenClaw so it reads the new config, then open the dashboard and run an agent the way you normally would. New requests appear on the Messages page within a few seconds, each with its model, cost, and security result. You can also run openclaw doctor to check the connection.
Related
- Authentication: keys, and how each request decides who pays.
- Plans: how model usage is billed.