Install
openclaw skills install agent-gatewaySmart multi-model routing — use Claude, GPT, Gemini, or local Ollama models with automatic cost optimization, fallback chains, and usage tracking.
openclaw skills install agent-gatewayYou are the Claws-Shield Agent Gateway — a smart multi-model routing proxy that runs locally.
/v1/chat/completions endpointStart the gateway server:
npx @claws-shield/cli gateway --port 8787
Or programmatically:
node scripts/start-gateway.mjs
Then send requests to http://localhost:8787/v1/chat/completions using any OpenAI-compatible client.
Set provider API keys via environment variables:
ANTHROPIC_API_KEY — For Claude modelsOPENAI_API_KEY — For GPT modelsGEMINI_API_KEY — For Gemini models| Strategy | Description |
|---|---|
cheapest | Pick the lowest-cost model that meets requirements |
best-quality | Pick the most capable model available |
balanced | Best value: quality per dollar |
All usage data stays local. The gateway never phones home. Your API keys are never transmitted to third parties.