Quick Start

Get the proxy running and start saving on API costs in under 5 minutes.

Prerequisites: Node.js 18+ and at least one LLM API key (Anthropic, OpenAI, etc.)

1. Install the Proxy

1npm install -g @relayplane/proxy

This installs the relayplane-proxy command globally.

2. Set Your API Keys

1# Set the keys for providers you use
2export ANTHROPIC_API_KEY=sk-ant-...
3export OPENAI_API_KEY=sk-...
4
5# Optional: Google, xAI, etc.
6export GEMINI_API_KEY=...
7export XAI_API_KEY=...

3. Start the Proxy

1relayplane-proxy

The proxy starts on http://localhost:4100 by default.

4. Point Your Tools at the Proxy

1# For tools using Anthropic API
2export ANTHROPIC_BASE_URL=http://localhost:4100
3
4# For tools using OpenAI API
5export OPENAI_BASE_URL=http://localhost:4100

Now any tool that uses the Anthropic or OpenAI API will route through RelayPlane.

5. Check Your Stats

1relayplane-proxy stats

View your usage, costs, and savings breakdown by model and task type.

That's it! Your AI tools will now route through RelayPlane. Simple tasks go to cheaper models, complex reasoning stays on premium models.

Next Steps