Introduction
Router9 documentation — the token plan for AI harnesses (agents and coding CLIs)
What is Router9?
Router9 is the Token Plan for AI Harness — a subscription-based LLM gateway, an OpenRouter alternative with flat monthly pricing. It fronts multiple providers behind one endpoint and routes each request for the best value, then adds rollover credits, built-in Skills, and enterprise-grade observability — for any AI harness, whether an autonomous agent or a coding CLI like Claude Code or OpenCode.
Key Features
- OpenAI-Compatible API — Drop-in replacement that works with any OpenAI SDK and any harness — Claude Code, OpenCode, Cursor, LangChain, and more
- Multi-Provider, Best Value — One endpoint fronts OpenAI, Anthropic, Google, DeepSeek and hundreds more, routed for the best performance-per-dollar
- Flat Monthly Pricing — Predictable costs with no per-token billing. Choose Free ($0), Pro ($29), or Max ($59) per plan
- Rollover Credits — On paid plans, keep unused credits into next month (60% on Pro, 80% on Max), accumulating up to 2× your monthly quota
- Harness Isolation — Each Token Plan gets its own API keys, usage quotas, and audit logs
- Skills — Built-in speech-to-text, text-to-speech, image understanding, and image generation via the Skill package or MCP — with video generation and more on the roadmap
- Audit Logging — Every request logged with model, tokens, latency, status, and full payloads
Quick Start
# Set your environment variables
export OPENAI_BASE_URL=https://api.router9.com/v1
export OPENAI_API_KEY=sk-r9k-your-key-here
# Make a request
curl $OPENAI_BASE_URL/chat/completions \
-H "Authorization: Bearer $OPENAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-4o",
"messages": [{ "role": "user", "content": "Hello!" }]
}'See the Quick Start guide for step-by-step setup instructions.
Documentation Overview
Getting Started
- Quick Start — Get up and running in under 5 minutes
- Authentication — API key management and security
Token Plan
- Plan Management — Create and manage your token plans
- Billing & Plans — Pricing tiers, rollover credits, and subscription management
- Audit Logs — Track and export request history
- Security — Sessions, account security, and best practices
API Reference
- Chat Completions — OpenAI-compatible chat API
- Models — Available models and routing
- Anthropic API — Native Anthropic Messages endpoint
- Rate Limiting — Request quotas and 429 handling
- Errors — Error codes and response format
Tools
- Audio — Speech-to-text and text-to-speech
- Image — Image understanding and generation
- Tool Usage & Credits — How Skills consume credits