@synthever/jrouter 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +129 -158
- package/app/.next-cli-build/BUILD_ID +1 -1
- package/app/.next-cli-build/app-path-routes-manifest.json +13 -13
- package/app/.next-cli-build/build-manifest.json +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/health/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/playground/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/_global-error.html +1 -1
- package/app/.next-cli-build/server/app/_global-error.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/_not-found.html +1 -1
- package/app/.next-cli-build/server/app/_not-found.rsc +4 -4
- package/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/api/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/console-logs/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js +1 -1
- package/app/.next-cli-build/server/app/api/version/route.js +1 -1
- package/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/callback.html +1 -1
- package/app/.next-cli-build/server/app/callback.rsc +4 -4
- package/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/basic-chat.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/cli-tools.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/combos.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/combos.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/endpoint.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/endpoint.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/health.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/health.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/health.segments/!KGRhc2hib2FyZCk/dashboard/health/__PAGE__.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/health.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/health.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mitm.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/mitm.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/playground.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/playground.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/playground.segments/!KGRhc2hib2FyZCk/dashboard/playground/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/playground.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/playground.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/profile.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/profile.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers/new.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers/new.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/pxpipe.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/pxpipe.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/quota.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/quota.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/skills.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/skills.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/token-saver.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/token-saver.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/translator.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/translator.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/usage.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/usage.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard.html +1 -1
- package/app/.next-cli-build/server/app/dashboard.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/index.html +1 -1
- package/app/.next-cli-build/server/app/index.rsc +4 -4
- package/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/landing.html +1 -1
- package/app/.next-cli-build/server/app/landing.rsc +4 -4
- package/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/login.html +1 -1
- package/app/.next-cli-build/server/app/login.rsc +5 -5
- package/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/manifest.webmanifest/route.js +1 -1
- package/app/.next-cli-build/server/app/manifest.webmanifest.body +1 -1
- package/app/.next-cli-build/server/app/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app-paths-manifest.json +13 -13
- package/app/.next-cli-build/server/chunks/436.js +1 -1
- package/app/.next-cli-build/server/chunks/455.js +1 -1
- package/app/.next-cli-build/server/chunks/4746.js +1 -1
- package/app/.next-cli-build/server/chunks/4827.js +1 -1
- package/app/.next-cli-build/server/chunks/8126.js +1 -1
- package/app/.next-cli-build/server/chunks/8306.js +1 -1
- package/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
- package/app/.next-cli-build/server/pages/404.html +1 -1
- package/app/.next-cli-build/server/pages/500.html +1 -1
- package/app/.next-cli-build/static/chunks/{1321-e5a456e7ba2447da.js → 1321-3c971fb492222955.js} +1 -1
- package/app/package.json +1 -1
- package/package.json +1 -1
- /package/app/.next-cli-build/static/{HtObZTtODFj1Lp9h6IeqY → oR8OFCXf8t5fTOWrh72mj}/_buildManifest.js +0 -0
- /package/app/.next-cli-build/static/{HtObZTtODFj1Lp9h6IeqY → oR8OFCXf8t5fTOWrh72mj}/_ssgManifest.js +0 -0
package/README.md
CHANGED
|
@@ -1,215 +1,186 @@
|
|
|
1
|
-
# JRouter
|
|
1
|
+
# JRouter — AI Router & Token Saver
|
|
2
2
|
|
|
3
|
-
**
|
|
3
|
+
**One endpoint for every model. Automatic failover, fewer tokens, full control.**
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
JRouter is a self-hosted AI gateway with a dashboard. It exposes a single OpenAI/Claude-compatible
|
|
6
|
+
endpoint at `http://localhost:20128/v1` and routes each request across 140+ providers, translating
|
|
7
|
+
between wire formats and keeping the request alive when a provider is slow, rate-limited or out of quota.
|
|
6
8
|
|
|
7
9
|
[](https://www.npmjs.com/package/@synthever/jrouter)
|
|
8
10
|
[](https://www.npmjs.com/package/@synthever/jrouter)
|
|
9
|
-
[](https://github.com/decolua/9router/blob/main/LICENSE)
|
|
12
|
-
|
|
13
|
-
<a href="https://trendshift.io/repositories/22628" target="_blank"><img src="https://trendshift.io/api/badge/repositories/22628" alt="decolua%2F9router | Trendshift" style="width: 250px; height: 55px;" width="250" height="55"/></a>
|
|
14
|
-
|
|
15
|
-
[🌐 Website](https://9router.com) • [📖 Full Docs](https://github.com/decolua/9router)
|
|
16
|
-
|
|
17
|
-
---
|
|
18
|
-
|
|
19
|
-
## 🤔 Why 9Router?
|
|
20
|
-
|
|
21
|
-
**Stop wasting money, tokens and hitting limits:**
|
|
22
|
-
|
|
23
|
-
- ❌ Subscription quota expires unused every month
|
|
24
|
-
- ❌ Rate limits stop you mid-coding
|
|
25
|
-
- ❌ Tool outputs (git diff, grep, ls...) burn tokens fast
|
|
26
|
-
- ❌ Expensive APIs ($20-50/month per provider)
|
|
27
|
-
|
|
28
|
-
**9Router solves this:**
|
|
29
|
-
|
|
30
|
-
- ✅ **RTK Token Saver** - Auto-compress tool_result, save 20-40% tokens
|
|
31
|
-
- ✅ **Maximize subscriptions** - Track quota, use every bit before reset
|
|
32
|
-
- ✅ **Auto fallback** - Subscription → Cheap → Free, zero downtime
|
|
33
|
-
- ✅ **Multi-account** - Round-robin between accounts per provider
|
|
34
|
-
- ✅ **Universal** - Works with any OpenAI/Claude-compatible CLI
|
|
11
|
+
[](https://github.com/Synthever/JRouter/blob/master/LICENSE)
|
|
12
|
+
[](https://www.npmjs.com/package/@synthever/jrouter)
|
|
35
13
|
|
|
36
14
|
---
|
|
37
15
|
|
|
38
|
-
##
|
|
39
|
-
|
|
40
|
-
**Option 1 — npm (recommended for desktop):**
|
|
41
|
-
|
|
42
|
-
```bash
|
|
43
|
-
npm install -g 9router
|
|
44
|
-
9router
|
|
45
|
-
|
|
46
|
-
# Or run directly with npx
|
|
47
|
-
npx @synthever/jrouter
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
**Option 2 — Docker (server/VPS):**
|
|
16
|
+
## Quick start
|
|
51
17
|
|
|
52
18
|
```bash
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
decolua/9router:latest
|
|
19
|
+
npm install -g @synthever/jrouter
|
|
20
|
+
jrouter
|
|
56
21
|
```
|
|
57
22
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
**2. Connect a FREE provider (no signup needed):**
|
|
63
|
-
|
|
64
|
-
Dashboard → Providers → Connect **Kiro AI** (free Claude unlimited) or **OpenCode Free** (no auth) → Done!
|
|
23
|
+
- Dashboard: `http://localhost:20128/dashboard`
|
|
24
|
+
- Endpoint: `http://localhost:20128/v1`
|
|
25
|
+
- Data: `~/.jrouter` (`%APPDATA%\jrouter` on Windows)
|
|
65
26
|
|
|
66
|
-
|
|
27
|
+
Then point any OpenAI/Claude-compatible tool at it:
|
|
67
28
|
|
|
68
29
|
```
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
Model: kr/claude-sonnet-4.5
|
|
30
|
+
Base URL: http://localhost:20128/v1
|
|
31
|
+
API key: [create one in the dashboard]
|
|
32
|
+
Model: <provider>/<model>
|
|
73
33
|
```
|
|
74
34
|
|
|
75
|
-
That's it
|
|
35
|
+
That's it — providers, keys and routing are all managed from the dashboard.
|
|
76
36
|
|
|
77
37
|
---
|
|
78
38
|
|
|
79
|
-
##
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
39
|
+
## Why JRouter
|
|
40
|
+
|
|
41
|
+
### Routing that doesn't stop mid-task
|
|
42
|
+
|
|
43
|
+
- **Move-on-error key demotion.** A failing key is flagged and sorted behind every healthy key for
|
|
44
|
+
that provider until its next successful call clears the flag. Your curated priority order is never
|
|
45
|
+
rewritten — it's a runtime overlay, so a recovered key returns to its original slot. Per-provider
|
|
46
|
+
toggle, on by default. Payload-caused 4xx errors (400, 404, 413, 422, …) never demote: the
|
|
47
|
+
credential isn't the problem.
|
|
48
|
+
- **Sequential pool round-robin.** Strict `1 → 2 → 3 → 1` rotation over a configurable pool window,
|
|
49
|
+
demotion-aware: a demoted key sinks out of the window and a recovered key re-enters at its curated
|
|
50
|
+
position. The cursor is identity-based, so changing pool membership re-anchors instead of skipping a key.
|
|
51
|
+
- **Three combo strategies.** `fallback` (chain), `round-robin` (rotate members), and `fusion` —
|
|
52
|
+
every panel model answers in parallel and a judge model synthesizes the final answer, with a
|
|
53
|
+
quorum grace window so one slow panelist can't stall the request.
|
|
54
|
+
- **Capacity-aware routing.** Requests that need image/audio/video input only land on models that
|
|
55
|
+
actually accept those modalities, instead of failing upstream.
|
|
56
|
+
- **Model Health dashboard.** Per-model availability timeline, rolling success data, single and
|
|
57
|
+
batch probes, and a drill-down with the last failure detail — so you see *which* model is degraded
|
|
58
|
+
before your tools do.
|
|
59
|
+
|
|
60
|
+
### Token economy
|
|
61
|
+
|
|
62
|
+
- **RTK token saver.** Compresses `tool_result` payloads (git diffs, grep/ls output, file dumps)
|
|
63
|
+
in place before translation — agent traffic stops paying full price for noise it never reads.
|
|
64
|
+
Fail-open by design: on any error the body is left untouched, and error traces are never compressed.
|
|
65
|
+
- **Quota tracking.** See remaining subscription quota per account and use it before it resets.
|
|
66
|
+
- **Throughput and latency KPIs.** Requests/min, tokens/min and latency percentiles persisted into
|
|
67
|
+
daily summaries, so history survives restarts instead of resetting with the process.
|
|
68
|
+
|
|
69
|
+
### Control and operations
|
|
70
|
+
|
|
71
|
+
- **Per-API-key policy.** Token and cost quotas with hourly/daily/weekly/monthly/lifetime reset
|
|
72
|
+
windows, RPM/TPM limits, expiry, billing multiplier, model allow/block lists and endpoint-family
|
|
73
|
+
permissions (chat, embeddings, images, audio, video, web). Requests are admitted against a SQLite
|
|
74
|
+
reservation ledger, so concurrent in-flight calls can't overshoot a budget.
|
|
75
|
+
- **Proxy pools.** Named pools with per-connection assignment, no-proxy lists, strict mode, bulk
|
|
76
|
+
import and relay presets for Vercel / Cloudflare / Deno / Netlify.
|
|
77
|
+
- **Key operations at scale.** Extract all keys of a provider as JSON, bulk-import them on any other
|
|
78
|
+
provider, and test connections one by one from the provider header.
|
|
79
|
+
- **Usage analytics.** Requests, tokens (input/cached/output) and cost per provider over time,
|
|
80
|
+
with a playground to try any connected model instantly.
|
|
81
|
+
- **Custom providers.** Any OpenAI-compatible endpoint can be registered as its own node, with a
|
|
82
|
+
pinned context window and max output per model, plus persistence of per-provider disabled models
|
|
83
|
+
across backup/restore.
|
|
84
|
+
|
|
85
|
+
### Built to be operated
|
|
86
|
+
|
|
87
|
+
- **Format translation, not just proxying.** OpenAI Chat/Responses, Claude Messages, Gemini, Vertex,
|
|
88
|
+
Codex, Antigravity, Kiro, Cursor, Ollama and CommandCode shapes are translated natively, with
|
|
89
|
+
direct routes for fragile pairs (thinking blocks, tool ids, non-base64 images) that would be lossy
|
|
90
|
+
through an OpenAI pivot.
|
|
91
|
+
- **Crash-safe state.** SQLite with an adapter fallback chain (`bun:sqlite` → `better-sqlite3` →
|
|
92
|
+
`node:sqlite` → `sql.js`), so there is always a working driver with no native build step.
|
|
93
|
+
- **Real client IPs behind a proxy.** The bundled server derives the socket IP and strips spoofed
|
|
94
|
+
`X-Forwarded-For`, trusting forwarding headers only from a loopback reverse proxy.
|
|
90
95
|
|
|
91
96
|
---
|
|
92
97
|
|
|
93
|
-
##
|
|
94
|
-
|
|
95
|
-
Already running 9Router on another machine (e.g. a team server on your LAN)? Point this machine's CLI tools at it — no local server is started:
|
|
98
|
+
## CLI
|
|
96
99
|
|
|
97
100
|
```bash
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
+
jrouter # start (default port 20128, opens the browser)
|
|
102
|
+
jrouter --port 8080 # custom port
|
|
103
|
+
jrouter --host 127.0.0.1 # bind local-only
|
|
104
|
+
jrouter --no-browser # don't open the browser
|
|
105
|
+
jrouter --log # stream server logs
|
|
106
|
+
jrouter --tray # run in the system tray
|
|
107
|
+
jrouter --skip-update # skip the update check
|
|
108
|
+
jrouter --help # all options
|
|
101
109
|
```
|
|
102
110
|
|
|
103
|
-
|
|
111
|
+
### Connect a remote server
|
|
104
112
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
### Models
|
|
108
|
-
|
|
109
|
-
Models come from the **server's own CLI-tools configuration**, so a client gets whatever the operator already picked on the dashboard. Nothing is hardcoded.
|
|
110
|
-
|
|
111
|
-
| Tool | Model taken from (first match wins) |
|
|
112
|
-
|---|---|
|
|
113
|
-
| `claude` | tier flag (`--opus` …) → server's Claude tier → *left unset* (Claude Code's own default) |
|
|
114
|
-
| others | `--model` → that tool's own model on the server → server's OpenCode model → *tool skipped* |
|
|
115
|
-
|
|
116
|
-
`kilo` has no readable model on the server, so it always uses `--model` or the OpenCode model. `omp` (Oh My Pi) needs no model: it uses proxy discovery, so every server model appears under `9router` in `/model`. A Claude tier the server doesn't set is removed from your config rather than kept from an earlier run. A skipped tool makes the command exit `1`.
|
|
117
|
-
|
|
118
|
-
### Overriding the server's models
|
|
113
|
+
Point this machine's CLI tools at a JRouter running somewhere else — no local server started:
|
|
119
114
|
|
|
120
115
|
```bash
|
|
121
|
-
|
|
122
|
-
npx @synthever/jrouter connect http://<server-host>:20128 --tools claude
|
|
123
|
-
|
|
124
|
-
# Every Claude tier
|
|
125
|
-
npx @synthever/jrouter connect http://<server-host>:20128 --tools claude \
|
|
126
|
-
--fable cc/claude-fable-5-1 --opus cc/claude-opus-5-5 \
|
|
127
|
-
--sonnet cc/claude-sonnet-5-5 --haiku cc/claude-haiku-4-5-20251001
|
|
128
|
-
|
|
129
|
-
# All non-Claude tools at once
|
|
130
|
-
npx @synthever/jrouter connect http://<server-host>:20128 --tools codex,opencode,kilo --model ocg/deepseek-flash
|
|
131
|
-
|
|
132
|
-
# Claude and other tools in one run
|
|
133
|
-
npx @synthever/jrouter connect http://<server-host>:20128 --tools claude,codex --opus cc/claude-opus-5-5 --model gpt-6
|
|
134
|
-
|
|
135
|
-
# A different model per tool: --model covers every non-Claude tool in a run, so run once per tool
|
|
136
|
-
npx @synthever/jrouter connect http://<server-host>:20128 --tools codex --model gpt-6
|
|
137
|
-
npx @synthever/jrouter connect http://<server-host>:20128 --tools opencode --model ocg/glm-5.3
|
|
116
|
+
npx @synthever/jrouter connect http://<server-host>:20128 # pick tools interactively
|
|
117
|
+
npx @synthever/jrouter connect http://<server-host>:20128 --tools claude,codex # or choose up front
|
|
118
|
+
npx @synthever/jrouter connect --reset --tools claude,codex # undo
|
|
138
119
|
```
|
|
139
120
|
|
|
140
|
-
|
|
121
|
+
It logs in with the dashboard password (hidden prompt), reuses or creates an API key named
|
|
122
|
+
`cli-<hostname>`, and writes each tool's config, backing up the original once as `*.bak-jrouter`.
|
|
141
123
|
|
|
142
|
-
|
|
124
|
+
Supported tools: `claude`, `codex`, `opencode`, `droid`, `crush`, `kilo`, `cline`, `pi`, `omp`, or `all`.
|
|
125
|
+
Models come from the server's own CLI-tools configuration, so a client gets whatever the operator
|
|
126
|
+
already picked — nothing is hardcoded. Override per run with `--opus/--sonnet/--haiku/--fable` for
|
|
127
|
+
Claude and `--model` for the rest.
|
|
143
128
|
|
|
144
|
-
|
|
129
|
+
### Inspect the current setup
|
|
145
130
|
|
|
146
131
|
```bash
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
npx @synthever/jrouter show claude --json # machine-readable (key still masked)
|
|
132
|
+
jrouter show # every supported tool
|
|
133
|
+
jrouter show claude # one tool
|
|
134
|
+
jrouter show claude --json # machine-readable (key still masked)
|
|
151
135
|
```
|
|
152
136
|
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
File: ~/.claude/settings.json
|
|
156
|
-
Base URL: http://<server-host>:20128/v1
|
|
157
|
-
API key: sk-a1b…9f3c
|
|
158
|
-
Models:
|
|
159
|
-
fable cc/claude-fable-5-1
|
|
160
|
-
opus cc/claude-opus-5-5
|
|
161
|
-
sonnet cc/claude-sonnet-5-5
|
|
162
|
-
```
|
|
137
|
+
`show` reads local files only, printing base URL, masked key and models for each tool, and flags a
|
|
138
|
+
tool that still points at another provider.
|
|
163
139
|
|
|
164
|
-
|
|
140
|
+
### Video generation
|
|
165
141
|
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|---|---|
|
|
170
|
-
| `--password <pw>` | Dashboard password (or `NINE_ROUTER_PASSWORD`); prompted if omitted — preferred, keeps it out of shell history |
|
|
171
|
-
| `--save` | After a successful login, save the password for this server to `~/.9router/connect.env` (plain text, mode 600) so later runs skip the prompt. Delete the file to forget it |
|
|
172
|
-
| `--api-key <key>` | Use this key and skip login. The server's models can't be read without a login, so pass model flags |
|
|
173
|
-
| `--key-name <name>` | API key name to reuse/create (default `cli-<hostname>`) |
|
|
174
|
-
| `--print-env` | Also print `OPENAI_BASE_URL` / `OPENAI_API_KEY` for other CLIs |
|
|
175
|
-
| `--reset` | Remove the 9router settings from the selected tools |
|
|
176
|
-
|
|
177
|
-
See `jrouter connect --help` for the full list.
|
|
142
|
+
```bash
|
|
143
|
+
jrouter xai video --prompt "a cat surfing" --output video.mp4
|
|
144
|
+
```
|
|
178
145
|
|
|
179
|
-
|
|
146
|
+
Runs against the already-running gateway using your Grok Imagine credentials.
|
|
180
147
|
|
|
181
148
|
---
|
|
182
149
|
|
|
183
|
-
##
|
|
184
|
-
|
|
185
|
-
Claude-Code • OpenClaw • Codex • OpenCode • Cursor • Antigravity • Cline • Continue • Droid • Roo • Copilot • Kilo Code • Gemini CLI • Qwen Code • iFlow • Crush • Crusher • Aider
|
|
150
|
+
## Providers
|
|
186
151
|
|
|
187
|
-
|
|
152
|
+
140+ integrations out of the box: Anthropic, OpenAI, Gemini/Vertex, AWS Bedrock, Azure, Groq,
|
|
153
|
+
Cerebras, DeepSeek, Mistral, xAI, OpenRouter, Together, Fireworks, NVIDIA, Nebius, SambaNova,
|
|
154
|
+
Cloudflare AI, Hugging Face, Ollama (local), plus subscription and OAuth-based tools
|
|
155
|
+
(Claude Code, Codex, Antigravity, Kiro, Cursor, Copilot, Kilo, WorkBuddy, OpenCode) and free tiers
|
|
156
|
+
such as BeatAPI, OpenCode Free and Kiro.
|
|
188
157
|
|
|
189
|
-
|
|
158
|
+
Beyond chat, the same endpoint families cover embeddings, image generation, video, TTS, STT,
|
|
159
|
+
and web search/fetch.
|
|
190
160
|
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
- **macOS/Linux**: `~/.9router/db/data.sqlite`
|
|
194
|
-
- **Windows**: `%APPDATA%/9router/db/data.sqlite`
|
|
195
|
-
- **Docker**: `/app/data/db/data.sqlite` (mount `$HOME/.9router` to persist)
|
|
161
|
+
Any tool that speaks OpenAI or Claude is supported. Anything else can be added as a custom
|
|
162
|
+
OpenAI-compatible node.
|
|
196
163
|
|
|
197
164
|
---
|
|
198
165
|
|
|
199
|
-
##
|
|
166
|
+
## Development
|
|
200
167
|
|
|
201
|
-
|
|
168
|
+
```bash
|
|
169
|
+
git clone git@github.com:Synthever/JRouter.git && cd JRouter
|
|
170
|
+
npm install
|
|
171
|
+
PORT=20128 npm run dev # dashboard + gateway
|
|
202
172
|
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
- **Website**: https://9router.com
|
|
173
|
+
cd cli && npm install && npm run build # build the CLI bundle into cli/app
|
|
174
|
+
```
|
|
206
175
|
|
|
207
|
-
|
|
176
|
+
The dashboard/gateway and the CLI are versioned independently. See `CHANGELOG.md` in `cli/`.
|
|
208
177
|
|
|
209
|
-
|
|
178
|
+
---
|
|
210
179
|
|
|
211
|
-
|
|
180
|
+
## Credits & license
|
|
212
181
|
|
|
213
|
-
|
|
182
|
+
JRouter builds on the open-source 9Router architecture by [decolua](https://github.com/decolua),
|
|
183
|
+
which in turn credits [CLIProxyAPI](https://github.com/router-for-me/CLIProxyAPI). Those projects
|
|
184
|
+
remain under their original MIT terms; JRouter's own changes are released under the same license.
|
|
214
185
|
|
|
215
|
-
MIT
|
|
186
|
+
MIT — see [LICENSE](https://github.com/Synthever/JRouter/blob/master/LICENSE).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
oR8OFCXf8t5fTOWrh72mj
|
|
@@ -126,18 +126,18 @@
|
|
|
126
126
|
"/api/combos/presets/route": "/api/combos/presets",
|
|
127
127
|
"/api/combos/route": "/api/combos",
|
|
128
128
|
"/api/headroom/extras/route": "/api/headroom/extras",
|
|
129
|
-
"/api/headroom/restart/route": "/api/headroom/restart",
|
|
130
129
|
"/api/headroom/proxy/[...path]/route": "/api/headroom/proxy/[...path]",
|
|
131
|
-
"/api/headroom/
|
|
130
|
+
"/api/headroom/restart/route": "/api/headroom/restart",
|
|
132
131
|
"/api/headroom/status/route": "/api/headroom/status",
|
|
132
|
+
"/api/headroom/start/route": "/api/headroom/start",
|
|
133
133
|
"/api/headroom/stop/route": "/api/headroom/stop",
|
|
134
134
|
"/api/keys/route": "/api/keys",
|
|
135
135
|
"/api/mcp/[plugin]/message/route": "/api/mcp/[plugin]/message",
|
|
136
136
|
"/api/keys/[id]/route": "/api/keys/[id]",
|
|
137
137
|
"/api/mcp/[plugin]/sse/route": "/api/mcp/[plugin]/sse",
|
|
138
138
|
"/api/model-health/check/route": "/api/model-health/check",
|
|
139
|
-
"/api/model-health/config/route": "/api/model-health/config",
|
|
140
139
|
"/api/model-health/check-all/route": "/api/model-health/check-all",
|
|
140
|
+
"/api/model-health/config/route": "/api/model-health/config",
|
|
141
141
|
"/api/model-health/history/route": "/api/model-health/history",
|
|
142
142
|
"/api/model-health/models/route": "/api/model-health/models",
|
|
143
143
|
"/api/model-health/model/route": "/api/model-health/model",
|
|
@@ -148,44 +148,44 @@
|
|
|
148
148
|
"/api/models/custom/route": "/api/models/custom",
|
|
149
149
|
"/api/models/disabled/route": "/api/models/disabled",
|
|
150
150
|
"/api/models/limits/route": "/api/models/limits",
|
|
151
|
-
"/api/oauth/kiro/auto-import/route": "/api/oauth/kiro/auto-import",
|
|
152
151
|
"/api/oauth/kiro/import-cli-proxy/route": "/api/oauth/kiro/import-cli-proxy",
|
|
152
|
+
"/api/oauth/kiro/auto-import/route": "/api/oauth/kiro/auto-import",
|
|
153
153
|
"/api/oauth/xiaomi-mimo/login/status/route": "/api/oauth/xiaomi-mimo/login/status",
|
|
154
154
|
"/api/oauth/xiaomi-mimo/login/start/route": "/api/oauth/xiaomi-mimo/login/start",
|
|
155
|
-
"/api/provider-nodes/route": "/api/provider-nodes",
|
|
156
155
|
"/api/providers/[id]/connections/keys/route": "/api/providers/[id]/connections/keys",
|
|
156
|
+
"/api/provider-nodes/route": "/api/provider-nodes",
|
|
157
157
|
"/api/providers/[id]/overrides/route": "/api/providers/[id]/overrides",
|
|
158
|
-
"/api/oauth/[provider]/[action]/route": "/api/oauth/[provider]/[action]",
|
|
159
158
|
"/api/providers/[id]/route": "/api/providers/[id]",
|
|
160
159
|
"/api/providers/client/route": "/api/providers/client",
|
|
161
160
|
"/api/providers/suggested-models/route": "/api/providers/suggested-models",
|
|
161
|
+
"/api/oauth/[provider]/[action]/route": "/api/oauth/[provider]/[action]",
|
|
162
162
|
"/api/proxy-pools/[id]/test/route": "/api/proxy-pools/[id]/test",
|
|
163
|
-
"/api/proxy-pools/[id]/route": "/api/proxy-pools/[id]",
|
|
164
163
|
"/api/providers/route": "/api/providers",
|
|
164
|
+
"/api/proxy-pools/[id]/route": "/api/proxy-pools/[id]",
|
|
165
165
|
"/api/proxy-pools/cloudflare-deploy/route": "/api/proxy-pools/cloudflare-deploy",
|
|
166
166
|
"/api/proxy-pools/deno-deploy/route": "/api/proxy-pools/deno-deploy",
|
|
167
|
-
"/api/proxy-pools/route": "/api/proxy-pools",
|
|
168
167
|
"/api/proxy-pools/netlify-deploy/route": "/api/proxy-pools/netlify-deploy",
|
|
168
|
+
"/api/proxy-pools/route": "/api/proxy-pools",
|
|
169
169
|
"/api/pxpipe/health/route": "/api/pxpipe/health",
|
|
170
170
|
"/api/pxpipe/install/route": "/api/pxpipe/install",
|
|
171
|
-
"/api/pxpipe/logs/route": "/api/pxpipe/logs",
|
|
172
171
|
"/api/pxpipe/restart/route": "/api/pxpipe/restart",
|
|
172
|
+
"/api/pxpipe/logs/route": "/api/pxpipe/logs",
|
|
173
173
|
"/api/pxpipe/stats/route": "/api/pxpipe/stats",
|
|
174
|
+
"/api/proxy-pools/vercel-deploy/route": "/api/proxy-pools/vercel-deploy",
|
|
174
175
|
"/api/pxpipe/start/route": "/api/pxpipe/start",
|
|
175
176
|
"/api/pxpipe/stop/route": "/api/pxpipe/stop",
|
|
176
177
|
"/api/pxpipe/status/route": "/api/pxpipe/status",
|
|
177
|
-
"/api/proxy-pools/vercel-deploy/route": "/api/proxy-pools/vercel-deploy",
|
|
178
178
|
"/api/settings/proxy-test/route": "/api/settings/proxy-test",
|
|
179
179
|
"/api/settings/database/route": "/api/settings/database",
|
|
180
180
|
"/api/usage/[connectionId]/claude-reset/route": "/api/usage/[connectionId]/claude-reset",
|
|
181
181
|
"/api/translator/console-logs/stream/route": "/api/translator/console-logs/stream",
|
|
182
182
|
"/api/settings/route": "/api/settings",
|
|
183
183
|
"/api/usage/stats/route": "/api/usage/stats",
|
|
184
|
-
"/api/providers/[id]/models/route": "/api/providers/[id]/models",
|
|
185
|
-
"/api/v1/audio/transcriptions/route": "/api/v1/audio/transcriptions",
|
|
186
184
|
"/api/usage/stream/route": "/api/usage/stream",
|
|
187
|
-
"/api/
|
|
185
|
+
"/api/v1/audio/transcriptions/route": "/api/v1/audio/transcriptions",
|
|
188
186
|
"/api/usage/[connectionId]/codex-reset-credits/route": "/api/usage/[connectionId]/codex-reset-credits",
|
|
187
|
+
"/api/providers/[id]/models/route": "/api/providers/[id]/models",
|
|
188
|
+
"/api/usage/[connectionId]/route": "/api/usage/[connectionId]",
|
|
189
189
|
"/api/v1beta/models/[...path]/route": "/api/v1beta/models/[...path]",
|
|
190
190
|
"/callback/page": "/callback",
|
|
191
191
|
"/dashboard/settings/pricing/page": "/dashboard/settings/pricing",
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
],
|
|
5
5
|
"devFiles": [],
|
|
6
6
|
"lowPriorityFiles": [
|
|
7
|
-
"static/
|
|
8
|
-
"static/
|
|
7
|
+
"static/oR8OFCXf8t5fTOWrh72mj/_buildManifest.js",
|
|
8
|
+
"static/oR8OFCXf8t5fTOWrh72mj/_ssgManifest.js"
|
|
9
9
|
],
|
|
10
10
|
"rootMainFiles": [
|
|
11
11
|
"static/chunks/webpack-6a79f0ded38135ba.js",
|