Raziel Router cuts your Claude Code costs by routing requests through a marketplace of spot-priced providers. This guide walks you from a fresh machine to a running Claude Code session — you only need Node.js and Claude Code installed.Documentation Index
Fetch the complete documentation index at: https://docs.raziel.fun/llms.txt
Use this file to discover all available pages before exploring further.
Install the CLI and authenticate
Run the setup command once. Your browser opens to sign in; after you authorize, your API key is saved locally — no manual copy-paste required.The key is written to
~/.config/raziel/config.json. If you already have a key, you can paste it manually when prompted instead.Issue an API key
The
setup command creates a key automatically when you sign in. If you prefer to manage keys yourself, go to Customer → API Keys in the dashboard and click Issue key.Keys start with rz_live_. You can issue multiple keys (for example, one per machine or project) and revoke them individually at any time.Deposit credits
Go to Customer → Deposit in the dashboard. Your current balance and a top-up link are shown on that page. Credits appear within seconds of a completed checkout.Requests are forwarded only when your balance is $0.05 or above. If a request is rejected with a
402 error, your balance has dropped below the minimum — top up and retry.Launch Claude Code
Start Claude Code through the Raziel proxy with one command:This starts a local proxy on You should see a short banner confirming the proxy port and key prefix before Claude Code’s interface appears.
localhost:3099, then spawns Claude Code with ANTHROPIC_BASE_URL and ANTHROPIC_AUTH_TOKEN already set. No shell configuration changes are needed — the environment is injected only for the child process.All arguments after claude pass through directly to Claude Code:Manual setup (advanced): If you prefer to set environment variables directly without the CLI, export the following before running Use
claude:ANTHROPIC_AUTH_TOKEN, not ANTHROPIC_API_KEY. The ANTHROPIC_API_KEY variable triggers a connectivity check against Anthropic’s servers, which will fail because you are pointing at the Raziel gateway instead.Router overview
Learn how the gateway routes requests, what models are available, and how spot pricing works.
Teams overview
Spin up a persistent agent VM with Hermes, Claude Code, and integrations preinstalled for $40/mo.
