OpenRouter Setup Guide: One API Key to Rule Them All

Stop juggling 5 API keys. OpenRouter gives you a single API key that routes to Claude, GPT, Gemini, MiniMax, DeepSeek, and 300+ other models — with unified billing and automatic failover. This guide walks you through the exact setup on Hostinger's 1-click Docker install, including every gotcha we discovered the hard way so you don't have to.


Why OpenRouter Instead of Direct API Keys?

The Old Way The OpenRouter Way
Separate Anthropic account + API key One API key
Separate OpenAI account + API key One dashboard
Separate Google AI account + API key One bill
Separate MiniMax account + API key Automatic failover
4+ billing dashboards to monitor One credit balance
If Anthropic goes down, you're stuck Auto-routes to the next provider

The bottom line: OpenRouter is a meta-provider. You pay one bill, manage one key, and get access to every major model. The tradeoff is a small markup (~5.5%) and ~25ms added latency — negligible for 99% of use cases.

What it costs: MiniMax M2.1 through OpenRouter is $0.30 per million input tokens. That's roughly 60x cheaper than Claude Opus. A typical active user spends $5–20/month through OpenRouter.


Before You Start

You need three things:

  1. A working OpenClaw Gateway Dashboard (the one you access at http://YOUR_VPS_IP:PORT)
  2. An OpenRouter account — sign up at openrouter.ai
  3. Credits loaded on OpenRouter — go to openrouter.ai/settings/credits and add at least $5

⚠️ This is the #1 reason people think their setup is broken: OpenRouter is prepaid. If your balance is $0.00, your API key is valid but every request silently fails. Nothing will work until you add credits.


Step 1: Get Your OpenRouter API Key

  1. Go to openrouter.ai/settings/keys
  2. Click Create Key
  3. Name it something like "OpenClaw"
  4. Copy the key (starts with sk-or-v1-...)