OpenClaw Setup
Three ways to integrate RelayPlane with your OpenClaw agent, from easiest to most control.
Why OpenClaw + RelayPlane? OpenClaw agents can burn $30-300/month on API costs. RelayPlane routes simple tasks (tool calls, quick responses) to cheaper models like Haiku, keeping Opus for complex reasoning.
Option 1: ClawHub Skill (Easiest)
Install the skill and use slash commands:
1clawhub install relayplaneThen in chat:
1/relayplane proxy start # Start the proxy2/relayplane stats # View usage and savings3/relayplane doctor # Diagnose issuesOption 2: Base URL Override
Run the proxy and point OpenClaw at it via environment variables:
1# Start the proxy2relayplane-proxy34# In another terminal, or in your shell config:5export ANTHROPIC_BASE_URL=http://localhost:48016export OPENAI_BASE_URL=http://localhost:480178# Then start OpenClaw9openclawAll API calls from OpenClaw will route through RelayPlane.
Option 3: Config File
Add the proxy URL directly to your OpenClaw config:
1# ~/.openclaw/config.yaml2providers:3 anthropic:4 baseUrl: http://localhost:48015 openai:6 baseUrl: http://localhost:4801Verify It's Working
1# Check proxy stats2relayplane-proxy stats34# You should see:5# - Requests routed6# - Cost breakdown by model7# - Estimated savingsSlash Commands Reference
When using the ClawHub skill:
| Command | Description |
|---|---|
/relayplane stats | Show usage statistics and cost savings |
/relayplane status | Show proxy health and configuration |
/relayplane doctor | Diagnose configuration and connectivity |
/relayplane proxy start | Start the proxy server |
/relayplane proxy stop | Stop the proxy server |
/relayplane telemetry off | Disable telemetry |
/relayplane models | List available routing modes |
Expected Savings: Most OpenClaw users see 40-60% reduction in API costs. The proxy routes ~70% of tasks to cheaper models without affecting quality.