Official Portfolio & nsywn.my.id Ecosystem Hub Edition v1.0 | 100% Local Assets | Zero Trackers
Muhammad Nasywan nsywn.my.id
ID EN
Active · Self-Hosted Self-Hosted Infrastructure 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.

  • 9Router (decolua/9router)
  • Node.js & Next.js
  • SQLite Telemetry
  • Linux VPS
  • Cloudflare Tunnel
Self-Hosted Infrastructure

Verified Highlights

  • 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

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.

9router.nsywn.my.id

System Architecture Flow

01 · Client Request

Unified client integration to /v1

02 · Format Proxy

OpenAI / Anthropic / Gemini translation & token trimming

03 · 3-Tier Router

Automatic fallback across quota tiers

04 · Local Telemetry

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