Docs
Everything you need to integrate Leanroute.
Point your existing OpenAI SDK at api.leanroute.dev/v1 and you're running. Everything else — model catalog, integration playbooks, guardrails, compliance posture, competitor comparisons — is below.
Build with Leanroute
Pointing your existing OpenAI SDK at Leanroute. The 5-minute path.
Developer Guide
OpenAI-compatible endpoints, request shapes, response headers, error codes, code samples in cURL and Python. Start here.
Models & Pricing
Interactive catalog of every model we route to. Filter by tier, region, vision support. Live per-1M-token prices.
Gateway Headers Reference
Every x-gateway-* header the API emits — direction, when it appears, example values, and JS/Python snippets to consume each.
MCP passthrough
newAdd mcp_servers to any /v1/chat/completions request; Claude connects to your MCP server(s) server-side and returns the final answer in OpenAI-shape. The only LLM gateway that routes MCP + chat through one endpoint.
Examples
End-to-end walkthroughs of real Leanroute integrations you can lift wholesale for your own product.
Integration Guides
Drop-in playbooks for the tools developers actually use.
All integrations
The full catalog — Cursor, Continue, Cline, Aider, OpenWebUI, n8n, plus guardrails vendors Presidio, Lakera, Rebuff.
Coding tools
Cursor, Continue, Cline, Aider, OpenWebUI — each with the exact OPENAI_BASE_URL config and a working example.
Automation
n8n liven8n drop-in node + AI-Agent recipe. Zapier and Make integrations are on the post-launch roadmap.
Guardrails vendors
If our built-in guardrails (block + redact + moderation) aren't enough, here's how to layer Presidio, Lakera Guard, or Rebuff in front.
Platform Features
Behavior built into the gateway. No code required on your side.
Compare to alternatives
Side-by-side with every LLM gateway you might also be considering.
Missing something?
We document what we ship, not what we plan to ship. If you can't find an integration guide for a tool you use, the OpenAI-compatible base URL configuration usually works directly — see the Developer Guide for the canonical pattern. If you'd like us to add a dedicated guide, tell us.