- Unified OpenAI-compatible endpoint across multiple AI providers
- 3-tier auto-fallback routing when quotas or rate limits hit
- Isolated loopback service coexisting cleanly via Cloudflare Tunnel
Domain: 9router.nsywn.my.id
9Router AI Infrastructure Gateway
Self-hosted AI gateway unifying multiple LLM providers behind one endpoint with key control and usage tracking.
Operates and maintains a self-hosted instance of the open-source 9Router proxy on a personal Linux VPS, providing one unified /v1 endpoint, 3-tier fallback routing, and persistent SQLite usage telemetry.
Verified Highlights
Problem & Context
Managing disparate API formats and separate keys across coding assistants and scripts introduces friction and breaks workflows whenever a single provider hits rate limits.
Exact Role & Contribution
Deployed and maintain the self-hosted 9Router service on a personal Linux VPS, keeping it isolated on loopback behind Cloudflare Tunnel with automated health monitoring alongside co-located web services.
System Architecture Flow
Unified client integration to /v1
OpenAI / Anthropic / Gemini translation & token trimming
Automatic fallback across quota tiers
SQLite usage tracking & isolated VPS supervision
Methodology & Technical Approach
- Bind the gateway strictly to loopback and expose access only through an encrypted Cloudflare Tunnel.
- Route requests through 3-tier priority fallback across subscription, low-cost, and free provider pools.
- Keep process supervision independent so sibling static web deployments never disrupt API traffic.
Relevance to Data Analysis
Provides practical exposure to API telemetry, cost/quota tracking, and reliable Linux infrastructure management that supports future automated data pipelines.
Next Milestones
- Maintain uptime and strict isolation alongside upcoming data projects
- Keep administrative console private and access-controlled