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 relayplane

Then in chat:

1/relayplane proxy start # Start the proxy
2/relayplane stats # View usage and savings
3/relayplane doctor # Diagnose issues

Option 2: Base URL Override

Run the proxy and point OpenClaw at it via environment variables:

1# Start the proxy
2relayplane-proxy
3
4# In another terminal, or in your shell config:
5export ANTHROPIC_BASE_URL=http://localhost:4801
6export OPENAI_BASE_URL=http://localhost:4801
7
8# Then start OpenClaw
9openclaw

All API calls from OpenClaw will route through RelayPlane.

Option 3: Config File

Add the proxy URL directly to your OpenClaw config:

1# ~/.openclaw/config.yaml
2providers:
3 anthropic:
4 baseUrl: http://localhost:4801
5 openai:
6 baseUrl: http://localhost:4801

Verify It's Working

1# Check proxy stats
2relayplane-proxy stats
3
4# You should see:
5# - Requests routed
6# - Cost breakdown by model
7# - Estimated savings

Slash Commands Reference

When using the ClawHub skill:

CommandDescription
/relayplane statsShow usage statistics and cost savings
/relayplane statusShow proxy health and configuration
/relayplane doctorDiagnose configuration and connectivity
/relayplane proxy startStart the proxy server
/relayplane proxy stopStop the proxy server
/relayplane telemetry offDisable telemetry
/relayplane modelsList 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.