How to Deploy 9Router: Free AI Coding for Claude Code, Codex and Cursor
Step-by-step tutorial: deploy 9Router with Docker, connect Claude Code, Codex, Cursor and Cline to 40+ free AI providers, and enable RTK mode for 40% fewer tokens.
In this tutorial, you'll deploy 9Router with Docker and connect Claude Code, Codex, Cursor and Cline to free AI providers β in under 10 minutes. No credit card, no rate limits, no hassle.
π Want to deploy 9Router yourself?
Docker configs, system requirements, and installation guides β all on one page.
View 9Router Tool Page βStep 1: Requirements
Any machine with Docker works. Minimum specs are modest: 2 CPU cores and 4 GB RAM; for heavy multi-agent workloads go with 4 cores and 8 GB. Linux VPS, a Mac, or even a Raspberry Pi class device will do.
Step 2: Deploy with Docker Compose
services:
9router:
image: decolua/9router:latest
restart: unless-stopped
ports:
- 8080:8080
volumes:
- ./data/9router:/data
Save that as docker-compose.yml, then run docker compose up -d. The official image has 275K+ pulls, so it's battle-tested across thousands of deployments.
Step 3: Connect Your Agents
Open the dashboard at http://localhost:8080, add your provider keys (or use the free tiers), and point your agent at the router endpoint:
- Claude Code β set
ANTHROPIC_BASE_URLto your 9Router URL - Codex / Cursor / Cline β configure the custom OpenAI-compatible endpoint
- Copilot / Antigravity β enable via the agent router profile
Step 4: Enable RTK and Auto-Fallback
Two settings make the biggest difference. Auto-fallback keeps you online when a provider throttles you, and RTK mode compresses prompts so you consume up to 40% fewer tokens. Together they turn 9Router into a truly unlimited coding setup.
Verification Checklist
| Check | Command |
|---|---|
| Container running | docker ps | grep 9router |
| Dashboard reachable | curl localhost:8080 |
| Agent connected | Send a test prompt from Claude Code |
That's it β your agents now have unlimited access to 40+ free AI providers with automatic failover. Deploy it once and forget about rate limits forever.
π Ready to go unlimited?
Get the Docker compose file, system requirements and more on the tool page.
View 9Router Tool Page β