Catalog npm
Back to packageRELEASE DETAILS

0.4.66

npm

9router-lite

9Router web dashboard

9routeraiapicliproxy
Published4 Jun 2026
Direct dependencies36
Transitive dependenciesNot calculated

README

Current package documentation

9Router Lite

English | Bahasa Indonesia


English

9Router Lite is a rebuilt, lightweight edition of the original 9Router. This package is maintained as the author's own lite rebuild of the original project, designed to be lighter, more flexible, and support custom database configurations.

Never stop coding. Save 20-40% tokens with RTK + auto-fallback to FREE & cheap AI models.

Connect AI code tools (Claude Code, Cursor, Antigravity, Copilot, Codex, Gemini, OpenCode, Cline, OpenClaw...) to many AI providers and models.

npm Downloads License


🤔 Why 9Router Lite?

Stop wasting money, tokens and hitting limits:

  • ❌ Subscription quota expires unused every month
  • ❌ Rate limits stop you mid-coding
  • ❌ Tool outputs (git diff, grep, ls...) burn tokens fast
  • ❌ Expensive APIs ($20-50/month per provider)

9Router Lite solves this:

  • ✅ RTK Token Saver - Auto-compress tool_result, save 20-40% tokens
  • ✅ Maximize subscriptions - Track quota, use every bit before reset
  • ✅ Auto fallback - Subscription → Cheap → Free, zero downtime
  • ✅ Multi-account - Round-robin between accounts per provider
  • ✅ Universal - Works with any OpenAI/Claude-compatible CLI
  • ✅ Lite rebuild - Reworked and packaged as 9router-lite
  • ✅ DB Selectable - Choose between SQL.js (local), PostgreSQL, or CockroachDB

⚡ Quick Start

npm install -g 9router-lite
9router-lite

# Or run directly with npx
npx 9router-lite

The package also keeps a compatibility alias:

9router

🎉 Dashboard opens at http://localhost:20129

Option 2 — Docker (server/VPS):

docker run -d --name 9router-lite -p 20129:20129 \
  -v "$HOME/.9router-lite:/app/data" -e DATA_DIR=/app/data \
  ghcr.io/YOUR_GITHUB_USERNAME/9router-lite:latest

Replace YOUR_GITHUB_USERNAME with the GitHub owner that publishes this fork.


🚀 CLI Options

9router-lite                    # Start with default settings
9router-lite --port 8080        # Custom port
9router-lite --no-browser       # Don't open browser
9router-lite --skip-update      # Skip auto-update check
9router-lite --help             # Show all options

Dashboard: http://localhost:20129/dashboard


💾 Data Location

  • macOS/Linux: ~/.9router-lite/
  • Windows: %APPDATA%/9router-lite/
  • Docker: /app/data (mount $HOME/.9router-lite to persist)

Bahasa Indonesia

9Router Lite adalah rebuild ringan dari 9Router original yang gue susun ulang supaya lebih simpel, lebih enteng dipakai, dan lebih fleksibel untuk kebutuhan sendiri maupun orang lain.

Jangan pernah berhenti coding. Hemat 20-40% token dengan RTK + auto-fallback ke model AI GRATIS & murah.

Hubungkan tool AI coding (Claude Code, Cursor, Antigravity, Copilot, Codex, Gemini, OpenCode, Cline, OpenClaw...) ke berbagai provider dan model AI.


🤔 Kenapa 9Router Lite?

Stop buang-buang uang, token, dan terkena rate limit:

  • ❌ Kuota langganan hangus sia-sia setiap bulan
  • ❌ Rate limit menghentikan lo di tengah-tengah coding
  • ❌ Output tool (git diff, grep, ls...) membakar token dengan cepat
  • ❌ API mahal ($20-50/bulan per provider)

9Router Lite menyelesaikan ini:

  • ✅ RTK Token Saver - Kompres otomatis tool_result, hemat 20-40% token
  • ✅ Maksimalkan langganan - Lacak kuota, gunakan setiap bit sebelum reset
  • ✅ Auto fallback - Langganan → Murah → Gratis, tanpa downtime
  • ✅ Multi-account - Round-robin antar akun per provider
  • ✅ Universal - Bekerja dengan CLI apa pun yang kompatibel dengan OpenAI/Claude
  • ✅ Lite rebuild - Dibuat ulang dan dikemas sebagai 9router-lite
  • ✅ Pilihan Database - Pilih antara SQL.js (lokal), PostgreSQL, atau CockroachDB

⚡ Quick Start

Opsi 1 — npm (direkomendasikan untuk desktop):

npm install -g 9router-lite
9router-lite

# Atau jalankan langsung dengan npx
npx 9router-lite

Package ini juga menyediakan alias kompatibilitas:

9router

🎉 Dashboard terbuka di http://localhost:20129

Opsi 2 — Docker (server/VPS):

docker run -d --name 9router-lite -p 20129:20129 \
  -v "$HOME/.9router-lite:/app/data" -e DATA_DIR=/app/data \
  ghcr.io/YOUR_GITHUB_USERNAME/9router-lite:latest

Ganti YOUR_GITHUB_USERNAME dengan username GitHub lo.


🚀 Opsi CLI

9router-lite                    # Mulai dengan pengaturan default
9router-lite --port 8080        # Port kustom
9router-lite --no-browser       # Jangan buka browser otomatis
9router-lite --skip-update      # Lewati pemeriksaan pembaruan otomatis
9router-lite --help             # Tampilkan semua opsi

Dashboard: http://localhost:20129/dashboard


💾 Lokasi Data

  • macOS/Linux: ~/.9router-lite/
  • Windows: %APPDATA%/9router-lite/
  • Docker: /app/data (mount $HOME/.9router-lite untuk persistensi)

Tentang Project Ini / About This Project

Project ini bukan mirror biasa. Ini adalah hasil karya rebuild yang gue bikin dari 9Router original dengan tujuan:

  • bikin versi yang lebih ringan
  • tetap nyaman dipakai sehari-hari
  • lebih enak buat maintain dan publish sendiri
  • lebih fleksibel untuk pemilihan database dan runtime packaging

This project is not a simple mirror. It is a custom rebuild of the original 9Router with the goal of providing a lighter, more maintainable, and database-flexible gateway for personal and community use.


Publish ke npm via GitHub Actions

Repo ini sudah disiapkan supaya publish npm jalan dari GitHub Actions pakai secret NPM_TOKEN.

Flow-nya:

  • push ke branch utama (main)

Acknowledgments

  • Rebuilt from the original 9Router idea and ecosystem
  • CLIProxyAPI - Original Go implementation inspiration

License

MIT License - see LICENSE for details.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 36

Native requirements
36 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
fs
Environment
{
  "local_name": "fs",
  "alias": false,
  "peer_metadata": null
}
^0.0.1-securityruntime
ora
Environment
{
  "local_name": "ora",
  "alias": false,
  "peer_metadata": null
}
^9.1.0runtime
jose
Environment
{
  "local_name": "jose",
  "alias": false,
  "peer_metadata": null
}
^6.1.3runtime
next
Environment
{
  "local_name": "next",
  "alias": false,
  "peer_metadata": null
}
^16.1.6runtime
open
Environment
{
  "local_name": "open",
  "alias": false,
  "peer_metadata": null
}
^11.0.0runtime
uuid
Environment
{
  "local_name": "uuid",
  "alias": false,
  "peer_metadata": null
}
^13.0.0runtime
react
Environment
{
  "local_name": "react",
  "alias": false,
  "peer_metadata": null
}
19.2.4runtime
marked
Environment
{
  "local_name": "marked",
  "alias": false,
  "peer_metadata": null
}
^18.0.1runtime
sql.js
Environment
{
  "local_name": "sql.js",
  "alias": false,
  "peer_metadata": null
}
^1.14.1runtime
undici
Environment
{
  "local_name": "undici",
  "alias": false,
  "peer_metadata": null
}
^7.19.2runtime
confbox
Environment
{
  "local_name": "confbox",
  "alias": false,
  "peer_metadata": null
}
^0.2.4runtime
express
Environment
{
  "local_name": "express",
  "alias": false,
  "peer_metadata": null
}
^5.2.1runtime
zustand
Environment
{
  "local_name": "zustand",
  "alias": false,
  "peer_metadata": null
}
^5.0.10runtime
bcryptjs
Environment
{
  "local_name": "bcryptjs",
  "alias": false,
  "peer_metadata": null
}
^3.0.3runtime
react-is
Environment
{
  "local_name": "react-is",
  "alias": false,
  "peer_metadata": null
}
^16.13.1runtime
recharts
Environment
{
  "local_name": "recharts",
  "alias": false,
  "peer_metadata": null
}
^3.7.0runtime
react-dom
Environment
{
  "local_name": "react-dom",
  "alias": false,
  "peer_metadata": null
}
19.2.4runtime
node-forge
Environment
{
  "local_name": "node-forge",
  "alias": false,
  "peer_metadata": null
}
^1.3.3runtime
selfsigned
Environment
{
  "local_name": "selfsigned",
  "alias": false,
  "peer_metadata": null
}
^5.5.0runtime
@dnd-kit/core
Environment
{
  "local_name": "@dnd-kit/core",
  "alias": false,
  "peer_metadata": null
}
^6.3.1runtime
@xyflow/react
Environment
{
  "local_name": "@xyflow/react",
  "alias": false,
  "peer_metadata": null
}
^12.10.1runtime
monaco-editor
Environment
{
  "local_name": "monaco-editor",
  "alias": false,
  "peer_metadata": null
}
^0.55.1runtime
node-machine-id
Environment
{
  "local_name": "node-machine-id",
  "alias": false,
  "peer_metadata": null
}
^1.1.12runtime
material-symbols
Environment
{
  "local_name": "material-symbols",
  "alias": false,
  "peer_metadata": null
}
^0.44.6runtime
@dnd-kit/sortable
Environment
{
  "local_name": "@dnd-kit/sortable",
  "alias": false,
  "peer_metadata": null
}
^10.0.0runtime
socks-proxy-agent
Environment
{
  "local_name": "socks-proxy-agent",
  "alias": false,
  "peer_metadata": null
}
^8.0.5runtime
@dnd-kit/modifiers
Environment
{
  "local_name": "@dnd-kit/modifiers",
  "alias": false,
  "peer_metadata": null
}
^9.0.0runtime
@dnd-kit/utilities
Environment
{
  "local_name": "@dnd-kit/utilities",
  "alias": false,
  "peer_metadata": null
}
^3.2.2runtime
@monaco-editor/react
Environment
{
  "local_name": "@monaco-editor/react",
  "alias": false,
  "peer_metadata": null
}
^4.7.0runtime
http-proxy-middleware
Environment
{
  "local_name": "http-proxy-middleware",
  "alias": false,
  "peer_metadata": null
}
^3.0.5runtime
eslint
Environment
{
  "local_name": "eslint",
  "alias": false,
  "peer_metadata": null
}
^9development
postcss
Environment
{
  "local_name": "postcss",
  "alias": false,
  "peer_metadata": null
}
^8.5.6development
tailwindcss
Environment
{
  "local_name": "tailwindcss",
  "alias": false,
  "peer_metadata": null
}
^4development
eslint-config-next
Environment
{
  "local_name": "eslint-config-next",
  "alias": false,
  "peer_metadata": null
}
16.1.6development
@tailwindcss/postcss
Environment
{
  "local_name": "@tailwindcss/postcss",
  "alias": false,
  "peer_metadata": null
}
^4.1.18development
better-sqlite3
Environment
{
  "local_name": "better-sqlite3",
  "alias": false,
  "peer_metadata": null
}
^12.6.2optional

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "7e3cadf97e067e1048ae79f07421b721b67aec2d",
  "tarball": "https://registry.npmjs.org/9router-lite/-/9router-lite-0.4.66.tgz",
  "fileCount": 3626,
  "integrity": "sha512-gPA1nj65vxepfiKIiSyX414igWAe7SoQCdUlbkelvTYTbLVvjcsr9sakmb8DDPoNfi4o1PoxQ2naBmSePTE7Jg==",
  "signatures": [
    {
      "sig": "MEUCIQD/ZaLWzaag0dAOW9goDTjLNYJxzFNqr/Thw01/9sXFAAIgeDRF08Px5PPaUuqUNvqaDP+ZZX/PvCIH/0haFoVRq60=",
      "keyid": "SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"
    }
  ],
  "unpackedSize": 84748020
}

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 21:41 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:9679ca5c8d223cc8da65d085fdfe603441dc630366240edbe45a3b3907599d33

Other collected versions

0.4.7510 Jun0.4.7410 Jun0.4.7310 Jun0.4.727 Jun0.4.706 Jun0.4.696 JunView all collected versions →