@yina-npm/openrouterx 0.4.38 → 0.4.52

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.
Files changed (856) hide show
  1. package/README.md +1145 -300
  2. package/app/.next/BUILD_ID +1 -1
  3. package/app/.next/app-path-routes-manifest.json +6 -6
  4. package/app/.next/build-manifest.json +2 -2
  5. package/app/.next/required-server-files.json +16 -3
  6. package/app/.next/routes-manifest.json +26 -24
  7. package/app/.next/server/app/(dashboard)/dashboard/admin/keys/page.js +2 -2
  8. package/app/.next/server/app/(dashboard)/dashboard/admin/keys/page.js.nft.json +1 -1
  9. package/app/.next/server/app/(dashboard)/dashboard/admin/keys/page_client-reference-manifest.js +1 -1
  10. package/app/.next/server/app/(dashboard)/dashboard/admin/users/page.js +2 -2
  11. package/app/.next/server/app/(dashboard)/dashboard/admin/users/page.js.nft.json +1 -1
  12. package/app/.next/server/app/(dashboard)/dashboard/admin/users/page_client-reference-manifest.js +1 -1
  13. package/app/.next/server/app/(dashboard)/dashboard/basic-chat/page.js +2 -2
  14. package/app/.next/server/app/(dashboard)/dashboard/basic-chat/page.js.nft.json +1 -1
  15. package/app/.next/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
  16. package/app/.next/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js +24 -0
  17. package/app/.next/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js.nft.json +1 -0
  18. package/app/.next/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -0
  19. package/app/.next/server/app/(dashboard)/dashboard/cli-tools/page.js +2 -2
  20. package/app/.next/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
  21. package/app/.next/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
  22. package/app/.next/server/app/(dashboard)/dashboard/combos/page.js +2 -2
  23. package/app/.next/server/app/(dashboard)/dashboard/combos/page.js.nft.json +1 -1
  24. package/app/.next/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
  25. package/app/.next/server/app/(dashboard)/dashboard/console-log/page.js +2 -2
  26. package/app/.next/server/app/(dashboard)/dashboard/console-log/page.js.nft.json +1 -1
  27. package/app/.next/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
  28. package/app/.next/server/app/(dashboard)/dashboard/endpoint/page.js +2 -2
  29. package/app/.next/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
  30. package/app/.next/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
  31. package/app/.next/server/app/(dashboard)/dashboard/focus-ui/page.js +2 -2
  32. package/app/.next/server/app/(dashboard)/dashboard/focus-ui/page.js.nft.json +1 -1
  33. package/app/.next/server/app/(dashboard)/dashboard/focus-ui/page_client-reference-manifest.js +1 -1
  34. package/app/.next/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +10 -10
  35. package/app/.next/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +1 -1
  36. package/app/.next/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
  37. package/app/.next/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js +2 -2
  38. package/app/.next/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -1
  39. package/app/.next/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
  40. package/app/.next/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js +3 -3
  41. package/app/.next/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -1
  42. package/app/.next/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
  43. package/app/.next/server/app/(dashboard)/dashboard/media-providers/web/page.js +2 -2
  44. package/app/.next/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +1 -1
  45. package/app/.next/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
  46. package/app/.next/server/app/(dashboard)/dashboard/mitm/page.js +2 -2
  47. package/app/.next/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
  48. package/app/.next/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
  49. package/app/.next/server/app/(dashboard)/dashboard/network-analysis/page.js +2 -2
  50. package/app/.next/server/app/(dashboard)/dashboard/network-analysis/page.js.nft.json +1 -1
  51. package/app/.next/server/app/(dashboard)/dashboard/network-analysis/page_client-reference-manifest.js +1 -1
  52. package/app/.next/server/app/(dashboard)/dashboard/page.js +2 -2
  53. package/app/.next/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
  54. package/app/.next/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
  55. package/app/.next/server/app/(dashboard)/dashboard/profile/page.js +2 -2
  56. package/app/.next/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
  57. package/app/.next/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
  58. package/app/.next/server/app/(dashboard)/dashboard/providers/[id]/page.js +3 -3
  59. package/app/.next/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
  60. package/app/.next/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
  61. package/app/.next/server/app/(dashboard)/dashboard/providers/new/page.js +2 -2
  62. package/app/.next/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
  63. package/app/.next/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
  64. package/app/.next/server/app/(dashboard)/dashboard/providers/page.js +2 -2
  65. package/app/.next/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
  66. package/app/.next/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
  67. package/app/.next/server/app/(dashboard)/dashboard/proxy-pools/page.js +4 -4
  68. package/app/.next/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +1 -1
  69. package/app/.next/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
  70. package/app/.next/server/app/(dashboard)/dashboard/quota/page.js +2 -2
  71. package/app/.next/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
  72. package/app/.next/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
  73. package/app/.next/server/app/(dashboard)/dashboard/skills/page.js +2 -2
  74. package/app/.next/server/app/(dashboard)/dashboard/skills/page.js.nft.json +1 -1
  75. package/app/.next/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
  76. package/app/.next/server/app/(dashboard)/dashboard/translator/page.js +2 -2
  77. package/app/.next/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
  78. package/app/.next/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
  79. package/app/.next/server/app/(dashboard)/dashboard/usage/page.js +2 -2
  80. package/app/.next/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
  81. package/app/.next/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
  82. package/app/.next/server/app/(dashboard)/dashboard/user/page.js +3 -3
  83. package/app/.next/server/app/(dashboard)/dashboard/user/page.js.nft.json +1 -1
  84. package/app/.next/server/app/(dashboard)/dashboard/user/page_client-reference-manifest.js +1 -1
  85. package/app/.next/server/app/_global-error/page.js +2 -2
  86. package/app/.next/server/app/_global-error/page.js.nft.json +1 -1
  87. package/app/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
  88. package/app/.next/server/app/_global-error.html +1 -1
  89. package/app/.next/server/app/_global-error.rsc +1 -1
  90. package/app/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  91. package/app/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  92. package/app/.next/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
  93. package/app/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  94. package/app/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  95. package/app/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  96. package/app/.next/server/app/_not-found/page.js +2 -2
  97. package/app/.next/server/app/_not-found/page.js.nft.json +1 -1
  98. package/app/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  99. package/app/.next/server/app/_not-found.html +1 -1
  100. package/app/.next/server/app/_not-found.rsc +4 -4
  101. package/app/.next/server/app/_not-found.segments/_full.segment.rsc +4 -4
  102. package/app/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  103. package/app/.next/server/app/_not-found.segments/_index.segment.rsc +4 -4
  104. package/app/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  105. package/app/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  106. package/app/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  107. package/app/.next/server/app/api/auth/login/route.js +1 -1
  108. package/app/.next/server/app/api/auth/login/route.js.nft.json +1 -1
  109. package/app/.next/server/app/api/auth/logout/route.js +1 -1
  110. package/app/.next/server/app/api/auth/logout/route.js.nft.json +1 -1
  111. package/app/.next/server/app/api/auth/me/route.js +1 -1
  112. package/app/.next/server/app/api/auth/me/route.js.nft.json +1 -1
  113. package/app/.next/server/app/api/auth/oidc/callback/route.js +1 -1
  114. package/app/.next/server/app/api/auth/oidc/callback/route.js.nft.json +1 -1
  115. package/app/.next/server/app/api/auth/oidc/start/route.js +1 -1
  116. package/app/.next/server/app/api/auth/oidc/start/route.js.nft.json +1 -1
  117. package/app/.next/server/app/api/auth/oidc/test/route.js +1 -1
  118. package/app/.next/server/app/api/auth/oidc/test/route.js.nft.json +1 -1
  119. package/app/.next/server/app/api/auth/status/route.js +1 -1
  120. package/app/.next/server/app/api/auth/status/route.js.nft.json +1 -1
  121. package/app/.next/server/app/api/cli-tools/all-statuses/route.js +10 -2
  122. package/app/.next/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -1
  123. package/app/.next/server/app/api/cli-tools/antigravity-mitm/alias/route.js +2 -2
  124. package/app/.next/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
  125. package/app/.next/server/app/api/cli-tools/antigravity-mitm/inject-auth/route.js +1 -1
  126. package/app/.next/server/app/api/cli-tools/antigravity-mitm/inject-auth/route.js.nft.json +1 -1
  127. package/app/.next/server/app/api/cli-tools/antigravity-mitm/restart/route.js +1 -1
  128. package/app/.next/server/app/api/cli-tools/antigravity-mitm/restart/route.js.nft.json +1 -1
  129. package/app/.next/server/app/api/cli-tools/antigravity-mitm/route.js +1 -1
  130. package/app/.next/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
  131. package/app/.next/server/app/api/cli-tools/antigravity-mitm/test/route.js +1 -1
  132. package/app/.next/server/app/api/cli-tools/antigravity-mitm/test/route.js.nft.json +1 -1
  133. package/app/.next/server/app/api/cli-tools/claude-settings/route.js +2 -2
  134. package/app/.next/server/app/api/cli-tools/claude-settings/route.js.nft.json +1 -1
  135. package/app/.next/server/app/api/cli-tools/cline-settings/route.js +1 -1
  136. package/app/.next/server/app/api/cli-tools/cline-settings/route.js.nft.json +1 -1
  137. package/app/.next/server/app/api/cli-tools/codex-settings/activate-account/route.js +2 -2
  138. package/app/.next/server/app/api/cli-tools/codex-settings/activate-account/route.js.nft.json +1 -1
  139. package/app/.next/server/app/api/cli-tools/codex-settings/route.js +1 -1
  140. package/app/.next/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -1
  141. package/app/.next/server/app/api/cli-tools/copilot-settings/route.js +2 -2
  142. package/app/.next/server/app/api/cli-tools/copilot-settings/route.js.nft.json +1 -1
  143. package/app/.next/server/app/api/cli-tools/cowork-mcp-registry/route.js +1 -1
  144. package/app/.next/server/app/api/cli-tools/cowork-mcp-registry/route.js.nft.json +1 -1
  145. package/app/.next/server/app/api/cli-tools/cowork-mcp-tools/route.js +1 -1
  146. package/app/.next/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +1 -1
  147. package/app/.next/server/app/api/cli-tools/cowork-settings/route.js +1 -1
  148. package/app/.next/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
  149. package/app/.next/server/app/api/cli-tools/deepseek-tui-settings/route.js +9 -0
  150. package/app/.next/server/app/api/{cloud/auth → cli-tools/deepseek-tui-settings}/route.js.nft.json +1 -1
  151. package/app/.next/server/app/api/cli-tools/deepseek-tui-settings/route_client-reference-manifest.js +1 -0
  152. package/app/.next/server/app/api/cli-tools/droid-settings/route.js +1 -1
  153. package/app/.next/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -1
  154. package/app/.next/server/app/api/cli-tools/hermes-settings/route.js +2 -2
  155. package/app/.next/server/app/api/cli-tools/hermes-settings/route.js.nft.json +1 -1
  156. package/app/.next/server/app/api/cli-tools/jcode-settings/route.js +3 -0
  157. package/app/.next/server/app/api/cli-tools/jcode-settings/route.js.nft.json +1 -0
  158. package/app/.next/server/app/api/cli-tools/jcode-settings/route_client-reference-manifest.js +1 -0
  159. package/app/.next/server/app/api/cli-tools/kilo-settings/route.js +1 -1
  160. package/app/.next/server/app/api/cli-tools/kilo-settings/route.js.nft.json +1 -1
  161. package/app/.next/server/app/api/cli-tools/openclaw-settings/route.js +2 -2
  162. package/app/.next/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +1 -1
  163. package/app/.next/server/app/api/cli-tools/opencode-settings/route.js +2 -2
  164. package/app/.next/server/app/api/cli-tools/opencode-settings/route.js.nft.json +1 -1
  165. package/app/.next/server/app/api/combos/[id]/route.js +1 -1
  166. package/app/.next/server/app/api/combos/[id]/route.js.nft.json +1 -1
  167. package/app/.next/server/app/api/combos/route.js +1 -1
  168. package/app/.next/server/app/api/combos/route.js.nft.json +1 -1
  169. package/app/.next/server/app/api/health/route.js +1 -1
  170. package/app/.next/server/app/api/health/route.js.nft.json +1 -1
  171. package/app/.next/server/app/api/init/route.js +1 -1
  172. package/app/.next/server/app/api/init/route.js.nft.json +1 -1
  173. package/app/.next/server/app/api/keys/[id]/route.js +1 -1
  174. package/app/.next/server/app/api/keys/[id]/route.js.nft.json +1 -1
  175. package/app/.next/server/app/api/keys/route.js +1 -1
  176. package/app/.next/server/app/api/keys/route.js.nft.json +1 -1
  177. package/app/.next/server/app/api/locale/route.js +1 -1
  178. package/app/.next/server/app/api/locale/route.js.nft.json +1 -1
  179. package/app/.next/server/app/api/mcp/[plugin]/message/route.js +3 -3
  180. package/app/.next/server/app/api/mcp/[plugin]/message/route.js.nft.json +1 -1
  181. package/app/.next/server/app/api/mcp/[plugin]/sse/route.js +4 -4
  182. package/app/.next/server/app/api/mcp/[plugin]/sse/route.js.nft.json +1 -1
  183. package/app/.next/server/app/api/media-providers/tts/deepgram/voices/route.js +1 -1
  184. package/app/.next/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -1
  185. package/app/.next/server/app/api/media-providers/tts/elevenlabs/voices/route.js +1 -1
  186. package/app/.next/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
  187. package/app/.next/server/app/api/media-providers/tts/inworld/voices/route.js +1 -1
  188. package/app/.next/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +1 -1
  189. package/app/.next/server/app/api/media-providers/tts/minimax/voices/route.js +1 -0
  190. package/app/.next/server/app/api/media-providers/tts/minimax/voices/route.js.nft.json +1 -0
  191. package/app/.next/server/app/api/media-providers/tts/minimax/voices/route_client-reference-manifest.js +1 -0
  192. package/app/.next/server/app/api/media-providers/tts/voices/route.js +1 -1
  193. package/app/.next/server/app/api/media-providers/tts/voices/route.js.nft.json +1 -1
  194. package/app/.next/server/app/api/models/alias/route.js +1 -1
  195. package/app/.next/server/app/api/models/alias/route.js.nft.json +1 -1
  196. package/app/.next/server/app/api/models/availability/route.js +1 -1
  197. package/app/.next/server/app/api/models/availability/route.js.nft.json +1 -1
  198. package/app/.next/server/app/api/models/custom/route.js +1 -1
  199. package/app/.next/server/app/api/models/custom/route.js.nft.json +1 -1
  200. package/app/.next/server/app/api/models/disabled/route.js +1 -1
  201. package/app/.next/server/app/api/models/disabled/route.js.nft.json +1 -1
  202. package/app/.next/server/app/api/models/route.js +1 -1
  203. package/app/.next/server/app/api/models/route.js.nft.json +1 -1
  204. package/app/.next/server/app/api/models/test/route.js +1 -1
  205. package/app/.next/server/app/api/models/test/route.js.nft.json +1 -1
  206. package/app/.next/server/app/api/network-analysis/route.js +2 -2
  207. package/app/.next/server/app/api/network-analysis/route.js.nft.json +1 -1
  208. package/app/.next/server/app/api/oauth/[provider]/[action]/route.js +2 -2
  209. package/app/.next/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
  210. package/app/.next/server/app/api/oauth/cursor/auto-import/route.js +2 -2
  211. package/app/.next/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -1
  212. package/app/.next/server/app/api/oauth/cursor/import/route.js +1 -1
  213. package/app/.next/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
  214. package/app/.next/server/app/api/oauth/gitlab/pat/route.js +1 -1
  215. package/app/.next/server/app/api/oauth/gitlab/pat/route.js.nft.json +1 -1
  216. package/app/.next/server/app/api/oauth/iflow/cookie/route.js +1 -1
  217. package/app/.next/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
  218. package/app/.next/server/app/api/oauth/kiro/auto-import/route.js +1 -1
  219. package/app/.next/server/app/api/oauth/kiro/auto-import/route.js.nft.json +1 -1
  220. package/app/.next/server/app/api/oauth/kiro/import/route.js +1 -1
  221. package/app/.next/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
  222. package/app/.next/server/app/api/oauth/kiro/social-authorize/route.js +1 -1
  223. package/app/.next/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +1 -1
  224. package/app/.next/server/app/api/oauth/kiro/social-exchange/route.js +1 -1
  225. package/app/.next/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
  226. package/app/.next/server/app/api/pricing/route.js +1 -1
  227. package/app/.next/server/app/api/pricing/route.js.nft.json +1 -1
  228. package/app/.next/server/app/api/provider-nodes/[id]/route.js +1 -1
  229. package/app/.next/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
  230. package/app/.next/server/app/api/provider-nodes/route.js +1 -1
  231. package/app/.next/server/app/api/provider-nodes/route.js.nft.json +1 -1
  232. package/app/.next/server/app/api/provider-nodes/validate/route.js +1 -1
  233. package/app/.next/server/app/api/provider-nodes/validate/route.js.nft.json +1 -1
  234. package/app/.next/server/app/api/providers/[id]/models/route.js +1 -1
  235. package/app/.next/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
  236. package/app/.next/server/app/api/providers/[id]/route.js +1 -1
  237. package/app/.next/server/app/api/providers/[id]/route.js.nft.json +1 -1
  238. package/app/.next/server/app/api/providers/[id]/test/route.js +1 -1
  239. package/app/.next/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
  240. package/app/.next/server/app/api/providers/[id]/test-models/route.js +1 -1
  241. package/app/.next/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
  242. package/app/.next/server/app/api/providers/client/route.js +1 -1
  243. package/app/.next/server/app/api/providers/client/route.js.nft.json +1 -1
  244. package/app/.next/server/app/api/providers/kilo/free-models/route.js +1 -1
  245. package/app/.next/server/app/api/providers/kilo/free-models/route.js.nft.json +1 -1
  246. package/app/.next/server/app/api/providers/route.js +1 -1
  247. package/app/.next/server/app/api/providers/route.js.nft.json +1 -1
  248. package/app/.next/server/app/api/providers/suggested-models/route.js +1 -1
  249. package/app/.next/server/app/api/providers/suggested-models/route.js.nft.json +1 -1
  250. package/app/.next/server/app/api/providers/test-batch/route.js +1 -1
  251. package/app/.next/server/app/api/providers/test-batch/route.js.nft.json +1 -1
  252. package/app/.next/server/app/api/providers/validate/route.js +1 -1
  253. package/app/.next/server/app/api/providers/validate/route.js.nft.json +1 -1
  254. package/app/.next/server/app/api/proxy-pools/[id]/route.js +1 -1
  255. package/app/.next/server/app/api/proxy-pools/[id]/route.js.nft.json +1 -1
  256. package/app/.next/server/app/api/proxy-pools/[id]/test/route.js +1 -1
  257. package/app/.next/server/app/api/proxy-pools/[id]/test/route.js.nft.json +1 -1
  258. package/app/.next/server/app/api/proxy-pools/route.js +1 -1
  259. package/app/.next/server/app/api/proxy-pools/route.js.nft.json +1 -1
  260. package/app/.next/server/app/api/proxy-pools/vercel-deploy/route.js +2 -2
  261. package/app/.next/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +1 -1
  262. package/app/.next/server/app/api/settings/database/route.js +1 -1
  263. package/app/.next/server/app/api/settings/database/route.js.nft.json +1 -1
  264. package/app/.next/server/app/api/settings/proxy-test/route.js +1 -1
  265. package/app/.next/server/app/api/settings/proxy-test/route.js.nft.json +1 -1
  266. package/app/.next/server/app/api/settings/require-login/route.js +1 -1
  267. package/app/.next/server/app/api/settings/require-login/route.js.nft.json +1 -1
  268. package/app/.next/server/app/api/settings/route.js +1 -1
  269. package/app/.next/server/app/api/settings/route.js.nft.json +1 -1
  270. package/app/.next/server/app/api/shutdown/route.js +1 -1
  271. package/app/.next/server/app/api/shutdown/route.js.nft.json +1 -1
  272. package/app/.next/server/app/api/startup-notices/route.js +2 -2
  273. package/app/.next/server/app/api/startup-notices/route.js.nft.json +1 -1
  274. package/app/.next/server/app/api/tags/route.js +1 -1
  275. package/app/.next/server/app/api/tags/route.js.nft.json +1 -1
  276. package/app/.next/server/app/api/translator/console-logs/route.js +1 -1
  277. package/app/.next/server/app/api/translator/console-logs/route.js.nft.json +1 -1
  278. package/app/.next/server/app/api/translator/console-logs/stream/route.js +2 -2
  279. package/app/.next/server/app/api/translator/console-logs/stream/route.js.nft.json +1 -1
  280. package/app/.next/server/app/api/translator/load/route.js +1 -1
  281. package/app/.next/server/app/api/translator/load/route.js.nft.json +1 -1
  282. package/app/.next/server/app/api/translator/save/route.js +1 -1
  283. package/app/.next/server/app/api/translator/save/route.js.nft.json +1 -1
  284. package/app/.next/server/app/api/translator/send/route.js +1 -1
  285. package/app/.next/server/app/api/translator/send/route.js.nft.json +1 -1
  286. package/app/.next/server/app/api/translator/translate/route.js +1 -1
  287. package/app/.next/server/app/api/translator/translate/route.js.nft.json +1 -1
  288. package/app/.next/server/app/api/tunnel/disable/route.js +1 -1
  289. package/app/.next/server/app/api/tunnel/disable/route.js.nft.json +1 -1
  290. package/app/.next/server/app/api/tunnel/enable/route.js +1 -1
  291. package/app/.next/server/app/api/tunnel/enable/route.js.nft.json +1 -1
  292. package/app/.next/server/app/api/tunnel/status/route.js +1 -1
  293. package/app/.next/server/app/api/tunnel/status/route.js.nft.json +1 -1
  294. package/app/.next/server/app/api/tunnel/tailscale-check/route.js +1 -1
  295. package/app/.next/server/app/api/tunnel/tailscale-check/route.js.nft.json +1 -1
  296. package/app/.next/server/app/api/tunnel/tailscale-disable/route.js +1 -1
  297. package/app/.next/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
  298. package/app/.next/server/app/api/tunnel/tailscale-enable/route.js +1 -1
  299. package/app/.next/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
  300. package/app/.next/server/app/api/tunnel/tailscale-install/route.js +4 -4
  301. package/app/.next/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
  302. package/app/.next/server/app/api/tunnel/tailscale-login/route.js +1 -1
  303. package/app/.next/server/app/api/tunnel/tailscale-login/route.js.nft.json +1 -1
  304. package/app/.next/server/app/api/tunnel/tailscale-start-daemon/route.js +2 -2
  305. package/app/.next/server/app/api/tunnel/tailscale-start-daemon/route.js.nft.json +1 -1
  306. package/app/.next/server/app/api/usage/[connectionId]/route.js +1 -1
  307. package/app/.next/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
  308. package/app/.next/server/app/api/usage/api-keys/route.js +1 -1
  309. package/app/.next/server/app/api/usage/api-keys/route.js.nft.json +1 -1
  310. package/app/.next/server/app/api/usage/chart/route.js +1 -1
  311. package/app/.next/server/app/api/usage/chart/route.js.nft.json +1 -1
  312. package/app/.next/server/app/api/usage/history/route.js +1 -1
  313. package/app/.next/server/app/api/usage/history/route.js.nft.json +1 -1
  314. package/app/.next/server/app/api/usage/logs/route.js +1 -1
  315. package/app/.next/server/app/api/usage/logs/route.js.nft.json +1 -1
  316. package/app/.next/server/app/api/usage/providers/route.js +1 -1
  317. package/app/.next/server/app/api/usage/providers/route.js.nft.json +1 -1
  318. package/app/.next/server/app/api/usage/request-details/route.js +1 -1
  319. package/app/.next/server/app/api/usage/request-details/route.js.nft.json +1 -1
  320. package/app/.next/server/app/api/usage/request-logs/route.js +1 -1
  321. package/app/.next/server/app/api/usage/request-logs/route.js.nft.json +1 -1
  322. package/app/.next/server/app/api/usage/stats/route.js +1 -1
  323. package/app/.next/server/app/api/usage/stats/route.js.nft.json +1 -1
  324. package/app/.next/server/app/api/usage/stream/route.js +2 -2
  325. package/app/.next/server/app/api/usage/stream/route.js.nft.json +1 -1
  326. package/app/.next/server/app/api/users/[id]/route.js +1 -1
  327. package/app/.next/server/app/api/users/[id]/route.js.nft.json +1 -1
  328. package/app/.next/server/app/api/users/route.js +1 -1
  329. package/app/.next/server/app/api/users/route.js.nft.json +1 -1
  330. package/app/.next/server/app/api/v1/api/chat/route.js +1 -1
  331. package/app/.next/server/app/api/v1/api/chat/route.js.nft.json +1 -1
  332. package/app/.next/server/app/api/v1/audio/speech/route.js +1 -1
  333. package/app/.next/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
  334. package/app/.next/server/app/api/v1/audio/transcriptions/route.js +1 -1
  335. package/app/.next/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
  336. package/app/.next/server/app/api/v1/audio/voices/route.js +1 -1
  337. package/app/.next/server/app/api/v1/audio/voices/route.js.nft.json +1 -1
  338. package/app/.next/server/app/api/v1/chat/completions/route.js +1 -1
  339. package/app/.next/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
  340. package/app/.next/server/app/api/v1/embeddings/route.js +1 -1
  341. package/app/.next/server/app/api/v1/embeddings/route.js.nft.json +1 -1
  342. package/app/.next/server/app/api/v1/images/generations/route.js +1 -1
  343. package/app/.next/server/app/api/v1/images/generations/route.js.nft.json +1 -1
  344. package/app/.next/server/app/api/v1/messages/count_tokens/route.js +1 -1
  345. package/app/.next/server/app/api/v1/messages/count_tokens/route.js.nft.json +1 -1
  346. package/app/.next/server/app/api/v1/messages/route.js +1 -1
  347. package/app/.next/server/app/api/v1/messages/route.js.nft.json +1 -1
  348. package/app/.next/server/app/api/v1/models/[kind]/route.js +1 -1
  349. package/app/.next/server/app/api/v1/models/[kind]/route.js.nft.json +1 -1
  350. package/app/.next/server/app/api/v1/models/info/route.js +1 -1
  351. package/app/.next/server/app/api/v1/models/info/route.js.nft.json +1 -1
  352. package/app/.next/server/app/api/v1/models/route.js +1 -1
  353. package/app/.next/server/app/api/v1/models/route.js.nft.json +1 -1
  354. package/app/.next/server/app/api/v1/responses/compact/route.js +1 -1
  355. package/app/.next/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
  356. package/app/.next/server/app/api/v1/responses/route.js +1 -1
  357. package/app/.next/server/app/api/v1/responses/route.js.nft.json +1 -1
  358. package/app/.next/server/app/api/v1/route.js +1 -1
  359. package/app/.next/server/app/api/v1/route.js.nft.json +1 -1
  360. package/app/.next/server/app/api/v1/search/route.js +1 -1
  361. package/app/.next/server/app/api/v1/search/route.js.nft.json +1 -1
  362. package/app/.next/server/app/api/v1/web/fetch/route.js +1 -1
  363. package/app/.next/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
  364. package/app/.next/server/app/api/v1beta/models/[...path]/route.js +1 -1
  365. package/app/.next/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
  366. package/app/.next/server/app/api/v1beta/models/route.js +1 -1
  367. package/app/.next/server/app/api/v1beta/models/route.js.nft.json +1 -1
  368. package/app/.next/server/app/api/version/route.js +1 -1
  369. package/app/.next/server/app/api/version/route.js.nft.json +1 -1
  370. package/app/.next/server/app/api/version/shutdown/route.js +1 -1
  371. package/app/.next/server/app/api/version/shutdown/route.js.nft.json +1 -1
  372. package/app/.next/server/app/api/version/update/route.js +1 -1
  373. package/app/.next/server/app/api/version/update/route.js.nft.json +1 -1
  374. package/app/.next/server/app/callback/page.js +2 -2
  375. package/app/.next/server/app/callback/page.js.nft.json +1 -1
  376. package/app/.next/server/app/callback/page_client-reference-manifest.js +1 -1
  377. package/app/.next/server/app/callback.html +1 -1
  378. package/app/.next/server/app/callback.rsc +4 -4
  379. package/app/.next/server/app/callback.segments/_full.segment.rsc +4 -4
  380. package/app/.next/server/app/callback.segments/_head.segment.rsc +1 -1
  381. package/app/.next/server/app/callback.segments/_index.segment.rsc +4 -4
  382. package/app/.next/server/app/callback.segments/_tree.segment.rsc +2 -2
  383. package/app/.next/server/app/callback.segments/callback/__PAGE__.segment.rsc +1 -1
  384. package/app/.next/server/app/callback.segments/callback.segment.rsc +1 -1
  385. package/app/.next/server/app/dashboard/settings/pricing/page.js +2 -2
  386. package/app/.next/server/app/dashboard/settings/pricing/page.js.nft.json +1 -1
  387. package/app/.next/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
  388. package/app/.next/server/app/dashboard/settings/pricing.html +1 -1
  389. package/app/.next/server/app/dashboard/settings/pricing.rsc +4 -4
  390. package/app/.next/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +4 -4
  391. package/app/.next/server/app/dashboard/settings/pricing.segments/_head.segment.rsc +1 -1
  392. package/app/.next/server/app/dashboard/settings/pricing.segments/_index.segment.rsc +4 -4
  393. package/app/.next/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +2 -2
  394. package/app/.next/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +1 -1
  395. package/app/.next/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing.segment.rsc +1 -1
  396. package/app/.next/server/app/dashboard/settings/pricing.segments/dashboard/settings.segment.rsc +1 -1
  397. package/app/.next/server/app/dashboard/settings/pricing.segments/dashboard.segment.rsc +1 -1
  398. package/app/.next/server/app/favicon.ico/route.js +1 -1
  399. package/app/.next/server/app/favicon.ico/route.js.nft.json +1 -1
  400. package/app/.next/server/app/index.html +1 -1
  401. package/app/.next/server/app/index.rsc +4 -4
  402. package/app/.next/server/app/index.segments/__PAGE__.segment.rsc +1 -1
  403. package/app/.next/server/app/index.segments/_full.segment.rsc +4 -4
  404. package/app/.next/server/app/index.segments/_head.segment.rsc +1 -1
  405. package/app/.next/server/app/index.segments/_index.segment.rsc +4 -4
  406. package/app/.next/server/app/index.segments/_tree.segment.rsc +2 -2
  407. package/app/.next/server/app/landing/page.js +2 -2
  408. package/app/.next/server/app/landing/page.js.nft.json +1 -1
  409. package/app/.next/server/app/landing/page_client-reference-manifest.js +1 -1
  410. package/app/.next/server/app/landing.html +1 -1
  411. package/app/.next/server/app/landing.rsc +4 -4
  412. package/app/.next/server/app/landing.segments/_full.segment.rsc +4 -4
  413. package/app/.next/server/app/landing.segments/_head.segment.rsc +1 -1
  414. package/app/.next/server/app/landing.segments/_index.segment.rsc +4 -4
  415. package/app/.next/server/app/landing.segments/_tree.segment.rsc +2 -2
  416. package/app/.next/server/app/landing.segments/landing/__PAGE__.segment.rsc +1 -1
  417. package/app/.next/server/app/landing.segments/landing.segment.rsc +1 -1
  418. package/app/.next/server/app/login/page.js +2 -2
  419. package/app/.next/server/app/login/page.js.nft.json +1 -1
  420. package/app/.next/server/app/login/page_client-reference-manifest.js +1 -1
  421. package/app/.next/server/app/login.html +1 -1
  422. package/app/.next/server/app/login.rsc +5 -5
  423. package/app/.next/server/app/login.segments/_full.segment.rsc +5 -5
  424. package/app/.next/server/app/login.segments/_head.segment.rsc +1 -1
  425. package/app/.next/server/app/login.segments/_index.segment.rsc +4 -4
  426. package/app/.next/server/app/login.segments/_tree.segment.rsc +2 -2
  427. package/app/.next/server/app/login.segments/login/__PAGE__.segment.rsc +2 -2
  428. package/app/.next/server/app/login.segments/login.segment.rsc +1 -1
  429. package/app/.next/server/app/manifest.webmanifest/route.js +2 -2
  430. package/app/.next/server/app/manifest.webmanifest/route.js.nft.json +1 -1
  431. package/app/.next/server/app/page.js +2 -2
  432. package/app/.next/server/app/page.js.nft.json +1 -1
  433. package/app/.next/server/app/page_client-reference-manifest.js +1 -1
  434. package/app/.next/server/app-paths-manifest.json +6 -6
  435. package/app/.next/server/chunks/1350.js +4 -4
  436. package/app/.next/server/chunks/1476.js +1 -0
  437. package/app/.next/server/chunks/2415.js +17 -0
  438. package/app/.next/server/chunks/2506.js +4 -4
  439. package/app/.next/server/chunks/2560.js +1 -1
  440. package/app/.next/server/chunks/2574.js +1 -0
  441. package/app/.next/server/chunks/2722.js +58 -0
  442. package/app/.next/server/chunks/3110.js +56 -5
  443. package/app/.next/server/chunks/3493.js +2 -2
  444. package/app/.next/server/chunks/3593.js +2 -2
  445. package/app/.next/server/chunks/412.js +5 -5
  446. package/app/.next/server/chunks/{9641.js → 4565.js} +2 -2
  447. package/app/.next/server/chunks/4664.js +1 -1
  448. package/app/.next/server/chunks/5217.js +1 -1
  449. package/app/.next/server/chunks/5330.js +7 -5
  450. package/app/.next/server/chunks/5681.js +1 -1
  451. package/app/.next/server/chunks/6001.js +1 -1
  452. package/app/.next/server/chunks/6393.js +1 -1
  453. package/app/.next/server/chunks/7177.js +1 -0
  454. package/app/.next/server/chunks/7595.js +1 -1
  455. package/app/.next/server/chunks/7828.js +1 -1
  456. package/app/.next/server/chunks/7930.js +3 -0
  457. package/app/.next/server/chunks/8574.js +1 -0
  458. package/app/.next/server/chunks/8651.js +9 -0
  459. package/app/.next/server/chunks/8750.js +1 -0
  460. package/app/.next/server/chunks/8760.js +1 -1
  461. package/app/.next/server/chunks/8895.js +25 -16
  462. package/app/.next/server/chunks/9095.js +1 -0
  463. package/app/.next/server/chunks/9718.js +1 -1
  464. package/app/.next/server/chunks/9856.js +1 -1
  465. package/app/.next/server/functions-config-manifest.json +2 -30
  466. package/app/.next/server/middleware-build-manifest.js +1 -1
  467. package/app/.next/server/middleware.js +2 -2
  468. package/app/.next/server/pages/404.html +1 -1
  469. package/app/.next/server/pages/500.html +1 -1
  470. package/app/.next/server/server-reference-manifest.js +1 -1
  471. package/app/.next/server/server-reference-manifest.json +1 -1
  472. package/app/.next/static/Q5oB2dEL7XeWBhjwqT_vo/_buildManifest.js +1 -0
  473. package/app/.next/static/chunks/1321-621ed3470478397e.js +1 -0
  474. package/app/.next/static/chunks/4072-cc92fb1222a2752b.js +3 -0
  475. package/app/.next/static/chunks/{5095-42d435b0583b2f98.js → 5095-c2bb7e2fc99ab8c3.js} +2 -2
  476. package/app/.next/static/chunks/5497-bebd4378b1048022.js +7 -0
  477. package/app/.next/static/chunks/6069-7c51e16aef293430.js +58 -0
  478. package/app/.next/static/chunks/7055-e60e20f43bfbe5f8.js +1 -0
  479. package/app/.next/static/chunks/app/(dashboard)/dashboard/cli-tools/[toolId]/page-efbd0b93d35d25cc.js +1 -0
  480. package/app/.next/static/chunks/app/(dashboard)/dashboard/cli-tools/page-acbac7a67319955a.js +1 -0
  481. package/app/.next/static/chunks/app/(dashboard)/dashboard/combos/page-7fabe6d07b1f8823.js +1 -0
  482. package/app/.next/static/chunks/app/(dashboard)/dashboard/focus-ui/{page-fb59dea0e48968bf.js → page-329b3a170ddd28c6.js} +1 -1
  483. package/app/.next/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page-e43ee64cc1f1547c.js +59 -0
  484. package/app/.next/static/chunks/app/(dashboard)/dashboard/mitm/page-e0f570e37fcc4d53.js +1 -0
  485. package/app/.next/static/chunks/app/(dashboard)/dashboard/providers/[id]/{page-31a6e1cb19ebc4d8.js → page-c3234f9c82b1a78e.js} +2 -2
  486. package/app/.next/static/chunks/app/(dashboard)/dashboard/providers/page-979e3e3663264d2b.js +1 -0
  487. package/app/.next/static/chunks/app/(dashboard)/dashboard/proxy-pools/page-5040868a50d977bf.js +4 -0
  488. package/app/.next/static/chunks/app/(dashboard)/dashboard/translator/page-814b95c8fc310a6a.js +1 -0
  489. package/app/.next/static/chunks/app/(dashboard)/dashboard/usage/page-18d6399108c458a6.js +1 -0
  490. package/app/.next/static/chunks/app/_global-error/page-814b95c8fc310a6a.js +1 -0
  491. package/app/.next/static/chunks/app/api/auth/login/route-814b95c8fc310a6a.js +1 -0
  492. package/app/.next/static/chunks/app/api/auth/logout/route-814b95c8fc310a6a.js +1 -0
  493. package/app/.next/static/chunks/app/api/auth/me/route-814b95c8fc310a6a.js +1 -0
  494. package/app/.next/static/chunks/app/api/auth/oidc/callback/route-814b95c8fc310a6a.js +1 -0
  495. package/app/.next/static/chunks/app/api/auth/oidc/start/route-814b95c8fc310a6a.js +1 -0
  496. package/app/.next/static/chunks/app/api/auth/oidc/test/route-814b95c8fc310a6a.js +1 -0
  497. package/app/.next/static/chunks/app/api/auth/status/route-814b95c8fc310a6a.js +1 -0
  498. package/app/.next/static/chunks/app/api/cli-tools/all-statuses/route-814b95c8fc310a6a.js +1 -0
  499. package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-814b95c8fc310a6a.js +1 -0
  500. package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/inject-auth/route-814b95c8fc310a6a.js +1 -0
  501. package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/restart/route-814b95c8fc310a6a.js +1 -0
  502. package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/route-814b95c8fc310a6a.js +1 -0
  503. package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/test/route-814b95c8fc310a6a.js +1 -0
  504. package/app/.next/static/chunks/app/api/cli-tools/claude-settings/route-814b95c8fc310a6a.js +1 -0
  505. package/app/.next/static/chunks/app/api/cli-tools/cline-settings/route-814b95c8fc310a6a.js +1 -0
  506. package/app/.next/static/chunks/app/api/cli-tools/codex-settings/activate-account/route-814b95c8fc310a6a.js +1 -0
  507. package/app/.next/static/chunks/app/api/cli-tools/codex-settings/route-814b95c8fc310a6a.js +1 -0
  508. package/app/.next/static/chunks/app/api/cli-tools/copilot-settings/route-814b95c8fc310a6a.js +1 -0
  509. package/app/.next/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-814b95c8fc310a6a.js +1 -0
  510. package/app/.next/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-814b95c8fc310a6a.js +1 -0
  511. package/app/.next/static/chunks/app/api/cli-tools/cowork-settings/route-814b95c8fc310a6a.js +1 -0
  512. package/app/.next/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-814b95c8fc310a6a.js +1 -0
  513. package/app/.next/static/chunks/app/api/cli-tools/droid-settings/route-814b95c8fc310a6a.js +1 -0
  514. package/app/.next/static/chunks/app/api/cli-tools/hermes-settings/route-814b95c8fc310a6a.js +1 -0
  515. package/app/.next/static/chunks/app/api/cli-tools/jcode-settings/route-814b95c8fc310a6a.js +1 -0
  516. package/app/.next/static/chunks/app/api/cli-tools/kilo-settings/route-814b95c8fc310a6a.js +1 -0
  517. package/app/.next/static/chunks/app/api/cli-tools/openclaw-settings/route-814b95c8fc310a6a.js +1 -0
  518. package/app/.next/static/chunks/app/api/cli-tools/opencode-settings/route-814b95c8fc310a6a.js +1 -0
  519. package/app/.next/static/chunks/app/api/combos/[id]/route-814b95c8fc310a6a.js +1 -0
  520. package/app/.next/static/chunks/app/api/combos/route-814b95c8fc310a6a.js +1 -0
  521. package/app/.next/static/chunks/app/api/health/route-814b95c8fc310a6a.js +1 -0
  522. package/app/.next/static/chunks/app/api/init/route-814b95c8fc310a6a.js +1 -0
  523. package/app/.next/static/chunks/app/api/keys/[id]/route-814b95c8fc310a6a.js +1 -0
  524. package/app/.next/static/chunks/app/api/keys/route-814b95c8fc310a6a.js +1 -0
  525. package/app/.next/static/chunks/app/api/locale/route-814b95c8fc310a6a.js +1 -0
  526. package/app/.next/static/chunks/app/api/mcp/[plugin]/message/route-814b95c8fc310a6a.js +1 -0
  527. package/app/.next/static/chunks/app/api/mcp/[plugin]/sse/route-814b95c8fc310a6a.js +1 -0
  528. package/app/.next/static/chunks/app/api/media-providers/tts/deepgram/voices/route-814b95c8fc310a6a.js +1 -0
  529. package/app/.next/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-814b95c8fc310a6a.js +1 -0
  530. package/app/.next/static/chunks/app/api/media-providers/tts/inworld/voices/route-814b95c8fc310a6a.js +1 -0
  531. package/app/.next/static/chunks/app/api/media-providers/tts/minimax/voices/route-814b95c8fc310a6a.js +1 -0
  532. package/app/.next/static/chunks/app/api/media-providers/tts/voices/route-814b95c8fc310a6a.js +1 -0
  533. package/app/.next/static/chunks/app/api/models/alias/route-814b95c8fc310a6a.js +1 -0
  534. package/app/.next/static/chunks/app/api/models/availability/route-814b95c8fc310a6a.js +1 -0
  535. package/app/.next/static/chunks/app/api/models/custom/route-814b95c8fc310a6a.js +1 -0
  536. package/app/.next/static/chunks/app/api/models/disabled/route-814b95c8fc310a6a.js +1 -0
  537. package/app/.next/static/chunks/app/api/models/route-814b95c8fc310a6a.js +1 -0
  538. package/app/.next/static/chunks/app/api/models/test/route-814b95c8fc310a6a.js +1 -0
  539. package/app/.next/static/chunks/app/api/network-analysis/route-814b95c8fc310a6a.js +1 -0
  540. package/app/.next/static/chunks/app/api/oauth/[provider]/[action]/route-814b95c8fc310a6a.js +1 -0
  541. package/app/.next/static/chunks/app/api/oauth/cursor/auto-import/route-814b95c8fc310a6a.js +1 -0
  542. package/app/.next/static/chunks/app/api/oauth/cursor/import/route-814b95c8fc310a6a.js +1 -0
  543. package/app/.next/static/chunks/app/api/oauth/gitlab/pat/route-814b95c8fc310a6a.js +1 -0
  544. package/app/.next/static/chunks/app/api/oauth/iflow/cookie/route-814b95c8fc310a6a.js +1 -0
  545. package/app/.next/static/chunks/app/api/oauth/kiro/auto-import/route-814b95c8fc310a6a.js +1 -0
  546. package/app/.next/static/chunks/app/api/oauth/kiro/import/route-814b95c8fc310a6a.js +1 -0
  547. package/app/.next/static/chunks/app/api/oauth/kiro/social-authorize/route-814b95c8fc310a6a.js +1 -0
  548. package/app/.next/static/chunks/app/api/oauth/kiro/social-exchange/route-814b95c8fc310a6a.js +1 -0
  549. package/app/.next/static/chunks/app/api/pricing/route-814b95c8fc310a6a.js +1 -0
  550. package/app/.next/static/chunks/app/api/provider-nodes/[id]/route-814b95c8fc310a6a.js +1 -0
  551. package/app/.next/static/chunks/app/api/provider-nodes/route-814b95c8fc310a6a.js +1 -0
  552. package/app/.next/static/chunks/app/api/provider-nodes/validate/route-814b95c8fc310a6a.js +1 -0
  553. package/app/.next/static/chunks/app/api/providers/[id]/models/route-814b95c8fc310a6a.js +1 -0
  554. package/app/.next/static/chunks/app/api/providers/[id]/route-814b95c8fc310a6a.js +1 -0
  555. package/app/.next/static/chunks/app/api/providers/[id]/test/route-814b95c8fc310a6a.js +1 -0
  556. package/app/.next/static/chunks/app/api/providers/[id]/test-models/route-814b95c8fc310a6a.js +1 -0
  557. package/app/.next/static/chunks/app/api/providers/client/route-814b95c8fc310a6a.js +1 -0
  558. package/app/.next/static/chunks/app/api/providers/kilo/free-models/route-814b95c8fc310a6a.js +1 -0
  559. package/app/.next/static/chunks/app/api/providers/route-814b95c8fc310a6a.js +1 -0
  560. package/app/.next/static/chunks/app/api/providers/suggested-models/route-814b95c8fc310a6a.js +1 -0
  561. package/app/.next/static/chunks/app/api/providers/test-batch/route-814b95c8fc310a6a.js +1 -0
  562. package/app/.next/static/chunks/app/api/providers/validate/route-814b95c8fc310a6a.js +1 -0
  563. package/app/.next/static/chunks/app/api/proxy-pools/[id]/route-814b95c8fc310a6a.js +1 -0
  564. package/app/.next/static/chunks/app/api/proxy-pools/[id]/test/route-814b95c8fc310a6a.js +1 -0
  565. package/app/.next/static/chunks/app/api/proxy-pools/route-814b95c8fc310a6a.js +1 -0
  566. package/app/.next/static/chunks/app/api/proxy-pools/vercel-deploy/route-814b95c8fc310a6a.js +1 -0
  567. package/app/.next/static/chunks/app/api/settings/database/route-814b95c8fc310a6a.js +1 -0
  568. package/app/.next/static/chunks/app/api/settings/proxy-test/route-814b95c8fc310a6a.js +1 -0
  569. package/app/.next/static/chunks/app/api/settings/require-login/route-814b95c8fc310a6a.js +1 -0
  570. package/app/.next/static/chunks/app/api/settings/route-814b95c8fc310a6a.js +1 -0
  571. package/app/.next/static/chunks/app/api/shutdown/route-814b95c8fc310a6a.js +1 -0
  572. package/app/.next/static/chunks/app/api/startup-notices/route-814b95c8fc310a6a.js +1 -0
  573. package/app/.next/static/chunks/app/api/tags/route-814b95c8fc310a6a.js +1 -0
  574. package/app/.next/static/chunks/app/api/translator/console-logs/route-814b95c8fc310a6a.js +1 -0
  575. package/app/.next/static/chunks/app/api/translator/console-logs/stream/route-814b95c8fc310a6a.js +1 -0
  576. package/app/.next/static/chunks/app/api/translator/load/route-814b95c8fc310a6a.js +1 -0
  577. package/app/.next/static/chunks/app/api/translator/save/route-814b95c8fc310a6a.js +1 -0
  578. package/app/.next/static/chunks/app/api/translator/send/route-814b95c8fc310a6a.js +1 -0
  579. package/app/.next/static/chunks/app/api/translator/translate/route-814b95c8fc310a6a.js +1 -0
  580. package/app/.next/static/chunks/app/api/tunnel/disable/route-814b95c8fc310a6a.js +1 -0
  581. package/app/.next/static/chunks/app/api/tunnel/enable/route-814b95c8fc310a6a.js +1 -0
  582. package/app/.next/static/chunks/app/api/tunnel/status/route-814b95c8fc310a6a.js +1 -0
  583. package/app/.next/static/chunks/app/api/tunnel/tailscale-check/route-814b95c8fc310a6a.js +1 -0
  584. package/app/.next/static/chunks/app/api/tunnel/tailscale-disable/route-814b95c8fc310a6a.js +1 -0
  585. package/app/.next/static/chunks/app/api/tunnel/tailscale-enable/route-814b95c8fc310a6a.js +1 -0
  586. package/app/.next/static/chunks/app/api/tunnel/tailscale-install/route-814b95c8fc310a6a.js +1 -0
  587. package/app/.next/static/chunks/app/api/tunnel/tailscale-login/route-814b95c8fc310a6a.js +1 -0
  588. package/app/.next/static/chunks/app/api/tunnel/tailscale-start-daemon/route-814b95c8fc310a6a.js +1 -0
  589. package/app/.next/static/chunks/app/api/usage/[connectionId]/route-814b95c8fc310a6a.js +1 -0
  590. package/app/.next/static/chunks/app/api/usage/api-keys/route-814b95c8fc310a6a.js +1 -0
  591. package/app/.next/static/chunks/app/api/usage/chart/route-814b95c8fc310a6a.js +1 -0
  592. package/app/.next/static/chunks/app/api/usage/history/route-814b95c8fc310a6a.js +1 -0
  593. package/app/.next/static/chunks/app/api/usage/logs/route-814b95c8fc310a6a.js +1 -0
  594. package/app/.next/static/chunks/app/api/usage/providers/route-814b95c8fc310a6a.js +1 -0
  595. package/app/.next/static/chunks/app/api/usage/request-details/route-814b95c8fc310a6a.js +1 -0
  596. package/app/.next/static/chunks/app/api/usage/request-logs/route-814b95c8fc310a6a.js +1 -0
  597. package/app/.next/static/chunks/app/api/usage/stats/route-814b95c8fc310a6a.js +1 -0
  598. package/app/.next/static/chunks/app/api/usage/stream/route-814b95c8fc310a6a.js +1 -0
  599. package/app/.next/static/chunks/app/api/users/[id]/route-814b95c8fc310a6a.js +1 -0
  600. package/app/.next/static/chunks/app/api/users/route-814b95c8fc310a6a.js +1 -0
  601. package/app/.next/static/chunks/app/api/v1/api/chat/route-814b95c8fc310a6a.js +1 -0
  602. package/app/.next/static/chunks/app/api/v1/audio/speech/route-814b95c8fc310a6a.js +1 -0
  603. package/app/.next/static/chunks/app/api/v1/audio/transcriptions/route-814b95c8fc310a6a.js +1 -0
  604. package/app/.next/static/chunks/app/api/v1/audio/voices/route-814b95c8fc310a6a.js +1 -0
  605. package/app/.next/static/chunks/app/api/v1/chat/completions/route-814b95c8fc310a6a.js +1 -0
  606. package/app/.next/static/chunks/app/api/v1/embeddings/route-814b95c8fc310a6a.js +1 -0
  607. package/app/.next/static/chunks/app/api/v1/images/generations/route-814b95c8fc310a6a.js +1 -0
  608. package/app/.next/static/chunks/app/api/v1/messages/count_tokens/route-814b95c8fc310a6a.js +1 -0
  609. package/app/.next/static/chunks/app/api/v1/messages/route-814b95c8fc310a6a.js +1 -0
  610. package/app/.next/static/chunks/app/api/v1/models/[kind]/route-814b95c8fc310a6a.js +1 -0
  611. package/app/.next/static/chunks/app/api/v1/models/info/route-814b95c8fc310a6a.js +1 -0
  612. package/app/.next/static/chunks/app/api/v1/models/route-814b95c8fc310a6a.js +1 -0
  613. package/app/.next/static/chunks/app/api/v1/responses/compact/route-814b95c8fc310a6a.js +1 -0
  614. package/app/.next/static/chunks/app/api/v1/responses/route-814b95c8fc310a6a.js +1 -0
  615. package/app/.next/static/chunks/app/api/v1/route-814b95c8fc310a6a.js +1 -0
  616. package/app/.next/static/chunks/app/api/v1/search/route-814b95c8fc310a6a.js +1 -0
  617. package/app/.next/static/chunks/app/api/v1/web/fetch/route-814b95c8fc310a6a.js +1 -0
  618. package/app/.next/static/chunks/app/api/v1beta/models/[...path]/route-814b95c8fc310a6a.js +1 -0
  619. package/app/.next/static/chunks/app/api/v1beta/models/route-814b95c8fc310a6a.js +1 -0
  620. package/app/.next/static/chunks/app/api/version/route-814b95c8fc310a6a.js +1 -0
  621. package/app/.next/static/chunks/app/api/version/shutdown/route-814b95c8fc310a6a.js +1 -0
  622. package/app/.next/static/chunks/app/api/version/update/route-814b95c8fc310a6a.js +1 -0
  623. package/app/.next/static/chunks/app/manifest.webmanifest/route-814b95c8fc310a6a.js +1 -0
  624. package/app/.next/static/chunks/app/page-814b95c8fc310a6a.js +1 -0
  625. package/app/.next/static/chunks/{main-2237af167d2c1c35.js → main-b8d198db3858ff3e.js} +3 -3
  626. package/app/.next/static/chunks/next/dist/client/components/builtin/app-error-814b95c8fc310a6a.js +1 -0
  627. package/app/.next/static/chunks/next/dist/client/components/builtin/forbidden-814b95c8fc310a6a.js +1 -0
  628. package/app/.next/static/chunks/next/dist/client/components/builtin/not-found-814b95c8fc310a6a.js +1 -0
  629. package/app/.next/static/chunks/next/dist/client/components/builtin/unauthorized-814b95c8fc310a6a.js +1 -0
  630. package/app/.next/static/css/402ee8646e1afa89.css +1 -0
  631. package/app/node_modules/better-sqlite3/build/Release/better_sqlite3.node +0 -0
  632. package/app/node_modules/sql.js/dist/sql-wasm.js +185 -0
  633. package/app/node_modules/sql.js/dist/sql-wasm.wasm +0 -0
  634. package/app/node_modules/sql.js/package.json +58 -0
  635. package/app/package.json +5 -1
  636. package/app/public/i18n/literals/ar.json +176 -173
  637. package/app/public/i18n/literals/bn.json +176 -173
  638. package/app/public/i18n/literals/cs.json +176 -173
  639. package/app/public/i18n/literals/da.json +176 -173
  640. package/app/public/i18n/literals/de.json +176 -173
  641. package/app/public/i18n/literals/el.json +176 -173
  642. package/app/public/i18n/literals/es.json +176 -173
  643. package/app/public/i18n/literals/fi.json +176 -173
  644. package/app/public/i18n/literals/fr.json +176 -173
  645. package/app/public/i18n/literals/he.json +176 -173
  646. package/app/public/i18n/literals/hi.json +176 -173
  647. package/app/public/i18n/literals/hu.json +176 -173
  648. package/app/public/i18n/literals/id.json +176 -173
  649. package/app/public/i18n/literals/it.json +176 -173
  650. package/app/public/i18n/literals/ja.json +176 -173
  651. package/app/public/i18n/literals/ko.json +176 -173
  652. package/app/public/i18n/literals/nl.json +176 -173
  653. package/app/public/i18n/literals/no.json +176 -173
  654. package/app/public/i18n/literals/pl.json +176 -173
  655. package/app/public/i18n/literals/pt-BR.json +176 -173
  656. package/app/public/i18n/literals/pt-PT.json +176 -173
  657. package/app/public/i18n/literals/ro.json +176 -173
  658. package/app/public/i18n/literals/ru.json +176 -173
  659. package/app/public/i18n/literals/sv.json +176 -173
  660. package/app/public/i18n/literals/th.json +176 -173
  661. package/app/public/i18n/literals/tl.json +176 -173
  662. package/app/public/i18n/literals/tr.json +176 -173
  663. package/app/public/i18n/literals/uk.json +176 -173
  664. package/app/public/i18n/literals/ur.json +176 -173
  665. package/app/public/i18n/literals/vi.json +176 -173
  666. package/app/public/i18n/literals/zh-CN.json +356 -359
  667. package/app/public/i18n/literals/zh-TW.json +184 -181
  668. package/app/public/providers/amp.png +0 -0
  669. package/app/public/providers/deepseek-tui.png +0 -0
  670. package/app/public/providers/jcode.png +0 -0
  671. package/app/public/providers/xiaomi-tokenplan.png +0 -0
  672. package/app/server.js +1 -1
  673. package/app/src/lib/db/migrate.js +56 -18
  674. package/app/src/mitm/config.js +16 -1
  675. package/app/src/mitm/handlers/antigravity.js +2 -1
  676. package/app/src/mitm/handlers/base.js +4 -1
  677. package/app/src/mitm/handlers/kiro.js +3 -1
  678. package/app/src/mitm/logger.js +11 -1
  679. package/app/src/mitm/server.js +18 -15
  680. package/package.json +1 -1
  681. package/app/.next/server/app/api/cloud/auth/route.js +0 -1
  682. package/app/.next/server/app/api/cloud/auth/route_client-reference-manifest.js +0 -1
  683. package/app/.next/server/app/api/cloud/credentials/update/route.js +0 -1
  684. package/app/.next/server/app/api/cloud/credentials/update/route.js.nft.json +0 -1
  685. package/app/.next/server/app/api/cloud/credentials/update/route_client-reference-manifest.js +0 -1
  686. package/app/.next/server/app/api/cloud/model/resolve/route.js +0 -1
  687. package/app/.next/server/app/api/cloud/model/resolve/route.js.nft.json +0 -1
  688. package/app/.next/server/app/api/cloud/model/resolve/route_client-reference-manifest.js +0 -1
  689. package/app/.next/server/app/api/cloud/models/alias/route.js +0 -1
  690. package/app/.next/server/app/api/cloud/models/alias/route.js.nft.json +0 -1
  691. package/app/.next/server/app/api/cloud/models/alias/route_client-reference-manifest.js +0 -1
  692. package/app/.next/server/chunks/2343.js +0 -1
  693. package/app/.next/server/chunks/3855.js +0 -1
  694. package/app/.next/server/chunks/4126.js +0 -1
  695. package/app/.next/server/chunks/4922.js +0 -9
  696. package/app/.next/server/chunks/5434.js +0 -1
  697. package/app/.next/server/chunks/5627.js +0 -17
  698. package/app/.next/server/chunks/723.js +0 -44
  699. package/app/.next/server/chunks/8866.js +0 -1
  700. package/app/.next/server/chunks/9300.js +0 -3
  701. package/app/.next/server/chunks/9460.js +0 -1
  702. package/app/.next/static/9qtW6KlzV_D2b828CZp1A/_buildManifest.js +0 -1
  703. package/app/.next/static/chunks/1321-634f2d25db77d618.js +0 -1
  704. package/app/.next/static/chunks/4072-91de6609dc7e6753.js +0 -3
  705. package/app/.next/static/chunks/5497-4a0f0c365aea0ea7.js +0 -7
  706. package/app/.next/static/chunks/5964-08d6048e026d4245.js +0 -44
  707. package/app/.next/static/chunks/app/(dashboard)/dashboard/cli-tools/page-211e322f002d5464.js +0 -1
  708. package/app/.next/static/chunks/app/(dashboard)/dashboard/combos/page-69469b6440aff8d0.js +0 -1
  709. package/app/.next/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page-95d31a6372622fcf.js +0 -59
  710. package/app/.next/static/chunks/app/(dashboard)/dashboard/mitm/page-7ae37df256035f59.js +0 -1
  711. package/app/.next/static/chunks/app/(dashboard)/dashboard/providers/page-9d071b63170b7f71.js +0 -1
  712. package/app/.next/static/chunks/app/(dashboard)/dashboard/proxy-pools/page-7762d83be0982941.js +0 -4
  713. package/app/.next/static/chunks/app/(dashboard)/dashboard/translator/page-1879675a73caf73c.js +0 -1
  714. package/app/.next/static/chunks/app/(dashboard)/dashboard/usage/page-f77dc916ed5a6f99.js +0 -1
  715. package/app/.next/static/chunks/app/_global-error/page-1879675a73caf73c.js +0 -1
  716. package/app/.next/static/chunks/app/api/auth/login/route-1879675a73caf73c.js +0 -1
  717. package/app/.next/static/chunks/app/api/auth/logout/route-1879675a73caf73c.js +0 -1
  718. package/app/.next/static/chunks/app/api/auth/me/route-1879675a73caf73c.js +0 -1
  719. package/app/.next/static/chunks/app/api/auth/oidc/callback/route-1879675a73caf73c.js +0 -1
  720. package/app/.next/static/chunks/app/api/auth/oidc/start/route-1879675a73caf73c.js +0 -1
  721. package/app/.next/static/chunks/app/api/auth/oidc/test/route-1879675a73caf73c.js +0 -1
  722. package/app/.next/static/chunks/app/api/auth/status/route-1879675a73caf73c.js +0 -1
  723. package/app/.next/static/chunks/app/api/cli-tools/all-statuses/route-1879675a73caf73c.js +0 -1
  724. package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-1879675a73caf73c.js +0 -1
  725. package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/inject-auth/route-1879675a73caf73c.js +0 -1
  726. package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/restart/route-1879675a73caf73c.js +0 -1
  727. package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/route-1879675a73caf73c.js +0 -1
  728. package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/test/route-1879675a73caf73c.js +0 -1
  729. package/app/.next/static/chunks/app/api/cli-tools/claude-settings/route-1879675a73caf73c.js +0 -1
  730. package/app/.next/static/chunks/app/api/cli-tools/cline-settings/route-1879675a73caf73c.js +0 -1
  731. package/app/.next/static/chunks/app/api/cli-tools/codex-settings/activate-account/route-1879675a73caf73c.js +0 -1
  732. package/app/.next/static/chunks/app/api/cli-tools/codex-settings/route-1879675a73caf73c.js +0 -1
  733. package/app/.next/static/chunks/app/api/cli-tools/copilot-settings/route-1879675a73caf73c.js +0 -1
  734. package/app/.next/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-1879675a73caf73c.js +0 -1
  735. package/app/.next/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-1879675a73caf73c.js +0 -1
  736. package/app/.next/static/chunks/app/api/cli-tools/cowork-settings/route-1879675a73caf73c.js +0 -1
  737. package/app/.next/static/chunks/app/api/cli-tools/droid-settings/route-1879675a73caf73c.js +0 -1
  738. package/app/.next/static/chunks/app/api/cli-tools/hermes-settings/route-1879675a73caf73c.js +0 -1
  739. package/app/.next/static/chunks/app/api/cli-tools/kilo-settings/route-1879675a73caf73c.js +0 -1
  740. package/app/.next/static/chunks/app/api/cli-tools/openclaw-settings/route-1879675a73caf73c.js +0 -1
  741. package/app/.next/static/chunks/app/api/cli-tools/opencode-settings/route-1879675a73caf73c.js +0 -1
  742. package/app/.next/static/chunks/app/api/cloud/auth/route-1879675a73caf73c.js +0 -1
  743. package/app/.next/static/chunks/app/api/cloud/credentials/update/route-1879675a73caf73c.js +0 -1
  744. package/app/.next/static/chunks/app/api/cloud/model/resolve/route-1879675a73caf73c.js +0 -1
  745. package/app/.next/static/chunks/app/api/cloud/models/alias/route-1879675a73caf73c.js +0 -1
  746. package/app/.next/static/chunks/app/api/combos/[id]/route-1879675a73caf73c.js +0 -1
  747. package/app/.next/static/chunks/app/api/combos/route-1879675a73caf73c.js +0 -1
  748. package/app/.next/static/chunks/app/api/health/route-1879675a73caf73c.js +0 -1
  749. package/app/.next/static/chunks/app/api/init/route-1879675a73caf73c.js +0 -1
  750. package/app/.next/static/chunks/app/api/keys/[id]/route-1879675a73caf73c.js +0 -1
  751. package/app/.next/static/chunks/app/api/keys/route-1879675a73caf73c.js +0 -1
  752. package/app/.next/static/chunks/app/api/locale/route-1879675a73caf73c.js +0 -1
  753. package/app/.next/static/chunks/app/api/mcp/[plugin]/message/route-1879675a73caf73c.js +0 -1
  754. package/app/.next/static/chunks/app/api/mcp/[plugin]/sse/route-1879675a73caf73c.js +0 -1
  755. package/app/.next/static/chunks/app/api/media-providers/tts/deepgram/voices/route-1879675a73caf73c.js +0 -1
  756. package/app/.next/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-1879675a73caf73c.js +0 -1
  757. package/app/.next/static/chunks/app/api/media-providers/tts/inworld/voices/route-1879675a73caf73c.js +0 -1
  758. package/app/.next/static/chunks/app/api/media-providers/tts/voices/route-1879675a73caf73c.js +0 -1
  759. package/app/.next/static/chunks/app/api/models/alias/route-1879675a73caf73c.js +0 -1
  760. package/app/.next/static/chunks/app/api/models/availability/route-1879675a73caf73c.js +0 -1
  761. package/app/.next/static/chunks/app/api/models/custom/route-1879675a73caf73c.js +0 -1
  762. package/app/.next/static/chunks/app/api/models/disabled/route-1879675a73caf73c.js +0 -1
  763. package/app/.next/static/chunks/app/api/models/route-1879675a73caf73c.js +0 -1
  764. package/app/.next/static/chunks/app/api/models/test/route-1879675a73caf73c.js +0 -1
  765. package/app/.next/static/chunks/app/api/network-analysis/route-1879675a73caf73c.js +0 -1
  766. package/app/.next/static/chunks/app/api/oauth/[provider]/[action]/route-1879675a73caf73c.js +0 -1
  767. package/app/.next/static/chunks/app/api/oauth/cursor/auto-import/route-1879675a73caf73c.js +0 -1
  768. package/app/.next/static/chunks/app/api/oauth/cursor/import/route-1879675a73caf73c.js +0 -1
  769. package/app/.next/static/chunks/app/api/oauth/gitlab/pat/route-1879675a73caf73c.js +0 -1
  770. package/app/.next/static/chunks/app/api/oauth/iflow/cookie/route-1879675a73caf73c.js +0 -1
  771. package/app/.next/static/chunks/app/api/oauth/kiro/auto-import/route-1879675a73caf73c.js +0 -1
  772. package/app/.next/static/chunks/app/api/oauth/kiro/import/route-1879675a73caf73c.js +0 -1
  773. package/app/.next/static/chunks/app/api/oauth/kiro/social-authorize/route-1879675a73caf73c.js +0 -1
  774. package/app/.next/static/chunks/app/api/oauth/kiro/social-exchange/route-1879675a73caf73c.js +0 -1
  775. package/app/.next/static/chunks/app/api/pricing/route-1879675a73caf73c.js +0 -1
  776. package/app/.next/static/chunks/app/api/provider-nodes/[id]/route-1879675a73caf73c.js +0 -1
  777. package/app/.next/static/chunks/app/api/provider-nodes/route-1879675a73caf73c.js +0 -1
  778. package/app/.next/static/chunks/app/api/provider-nodes/validate/route-1879675a73caf73c.js +0 -1
  779. package/app/.next/static/chunks/app/api/providers/[id]/models/route-1879675a73caf73c.js +0 -1
  780. package/app/.next/static/chunks/app/api/providers/[id]/route-1879675a73caf73c.js +0 -1
  781. package/app/.next/static/chunks/app/api/providers/[id]/test/route-1879675a73caf73c.js +0 -1
  782. package/app/.next/static/chunks/app/api/providers/[id]/test-models/route-1879675a73caf73c.js +0 -1
  783. package/app/.next/static/chunks/app/api/providers/client/route-1879675a73caf73c.js +0 -1
  784. package/app/.next/static/chunks/app/api/providers/kilo/free-models/route-1879675a73caf73c.js +0 -1
  785. package/app/.next/static/chunks/app/api/providers/route-1879675a73caf73c.js +0 -1
  786. package/app/.next/static/chunks/app/api/providers/suggested-models/route-1879675a73caf73c.js +0 -1
  787. package/app/.next/static/chunks/app/api/providers/test-batch/route-1879675a73caf73c.js +0 -1
  788. package/app/.next/static/chunks/app/api/providers/validate/route-1879675a73caf73c.js +0 -1
  789. package/app/.next/static/chunks/app/api/proxy-pools/[id]/route-1879675a73caf73c.js +0 -1
  790. package/app/.next/static/chunks/app/api/proxy-pools/[id]/test/route-1879675a73caf73c.js +0 -1
  791. package/app/.next/static/chunks/app/api/proxy-pools/route-1879675a73caf73c.js +0 -1
  792. package/app/.next/static/chunks/app/api/proxy-pools/vercel-deploy/route-1879675a73caf73c.js +0 -1
  793. package/app/.next/static/chunks/app/api/settings/database/route-1879675a73caf73c.js +0 -1
  794. package/app/.next/static/chunks/app/api/settings/proxy-test/route-1879675a73caf73c.js +0 -1
  795. package/app/.next/static/chunks/app/api/settings/require-login/route-1879675a73caf73c.js +0 -1
  796. package/app/.next/static/chunks/app/api/settings/route-1879675a73caf73c.js +0 -1
  797. package/app/.next/static/chunks/app/api/shutdown/route-1879675a73caf73c.js +0 -1
  798. package/app/.next/static/chunks/app/api/startup-notices/route-1879675a73caf73c.js +0 -1
  799. package/app/.next/static/chunks/app/api/tags/route-1879675a73caf73c.js +0 -1
  800. package/app/.next/static/chunks/app/api/translator/console-logs/route-1879675a73caf73c.js +0 -1
  801. package/app/.next/static/chunks/app/api/translator/console-logs/stream/route-1879675a73caf73c.js +0 -1
  802. package/app/.next/static/chunks/app/api/translator/load/route-1879675a73caf73c.js +0 -1
  803. package/app/.next/static/chunks/app/api/translator/save/route-1879675a73caf73c.js +0 -1
  804. package/app/.next/static/chunks/app/api/translator/send/route-1879675a73caf73c.js +0 -1
  805. package/app/.next/static/chunks/app/api/translator/translate/route-1879675a73caf73c.js +0 -1
  806. package/app/.next/static/chunks/app/api/tunnel/disable/route-1879675a73caf73c.js +0 -1
  807. package/app/.next/static/chunks/app/api/tunnel/enable/route-1879675a73caf73c.js +0 -1
  808. package/app/.next/static/chunks/app/api/tunnel/status/route-1879675a73caf73c.js +0 -1
  809. package/app/.next/static/chunks/app/api/tunnel/tailscale-check/route-1879675a73caf73c.js +0 -1
  810. package/app/.next/static/chunks/app/api/tunnel/tailscale-disable/route-1879675a73caf73c.js +0 -1
  811. package/app/.next/static/chunks/app/api/tunnel/tailscale-enable/route-1879675a73caf73c.js +0 -1
  812. package/app/.next/static/chunks/app/api/tunnel/tailscale-install/route-1879675a73caf73c.js +0 -1
  813. package/app/.next/static/chunks/app/api/tunnel/tailscale-login/route-1879675a73caf73c.js +0 -1
  814. package/app/.next/static/chunks/app/api/tunnel/tailscale-start-daemon/route-1879675a73caf73c.js +0 -1
  815. package/app/.next/static/chunks/app/api/usage/[connectionId]/route-1879675a73caf73c.js +0 -1
  816. package/app/.next/static/chunks/app/api/usage/api-keys/route-1879675a73caf73c.js +0 -1
  817. package/app/.next/static/chunks/app/api/usage/chart/route-1879675a73caf73c.js +0 -1
  818. package/app/.next/static/chunks/app/api/usage/history/route-1879675a73caf73c.js +0 -1
  819. package/app/.next/static/chunks/app/api/usage/logs/route-1879675a73caf73c.js +0 -1
  820. package/app/.next/static/chunks/app/api/usage/providers/route-1879675a73caf73c.js +0 -1
  821. package/app/.next/static/chunks/app/api/usage/request-details/route-1879675a73caf73c.js +0 -1
  822. package/app/.next/static/chunks/app/api/usage/request-logs/route-1879675a73caf73c.js +0 -1
  823. package/app/.next/static/chunks/app/api/usage/stats/route-1879675a73caf73c.js +0 -1
  824. package/app/.next/static/chunks/app/api/usage/stream/route-1879675a73caf73c.js +0 -1
  825. package/app/.next/static/chunks/app/api/users/[id]/route-1879675a73caf73c.js +0 -1
  826. package/app/.next/static/chunks/app/api/users/route-1879675a73caf73c.js +0 -1
  827. package/app/.next/static/chunks/app/api/v1/api/chat/route-1879675a73caf73c.js +0 -1
  828. package/app/.next/static/chunks/app/api/v1/audio/speech/route-1879675a73caf73c.js +0 -1
  829. package/app/.next/static/chunks/app/api/v1/audio/transcriptions/route-1879675a73caf73c.js +0 -1
  830. package/app/.next/static/chunks/app/api/v1/audio/voices/route-1879675a73caf73c.js +0 -1
  831. package/app/.next/static/chunks/app/api/v1/chat/completions/route-1879675a73caf73c.js +0 -1
  832. package/app/.next/static/chunks/app/api/v1/embeddings/route-1879675a73caf73c.js +0 -1
  833. package/app/.next/static/chunks/app/api/v1/images/generations/route-1879675a73caf73c.js +0 -1
  834. package/app/.next/static/chunks/app/api/v1/messages/count_tokens/route-1879675a73caf73c.js +0 -1
  835. package/app/.next/static/chunks/app/api/v1/messages/route-1879675a73caf73c.js +0 -1
  836. package/app/.next/static/chunks/app/api/v1/models/[kind]/route-1879675a73caf73c.js +0 -1
  837. package/app/.next/static/chunks/app/api/v1/models/info/route-1879675a73caf73c.js +0 -1
  838. package/app/.next/static/chunks/app/api/v1/models/route-1879675a73caf73c.js +0 -1
  839. package/app/.next/static/chunks/app/api/v1/responses/compact/route-1879675a73caf73c.js +0 -1
  840. package/app/.next/static/chunks/app/api/v1/responses/route-1879675a73caf73c.js +0 -1
  841. package/app/.next/static/chunks/app/api/v1/route-1879675a73caf73c.js +0 -1
  842. package/app/.next/static/chunks/app/api/v1/search/route-1879675a73caf73c.js +0 -1
  843. package/app/.next/static/chunks/app/api/v1/web/fetch/route-1879675a73caf73c.js +0 -1
  844. package/app/.next/static/chunks/app/api/v1beta/models/[...path]/route-1879675a73caf73c.js +0 -1
  845. package/app/.next/static/chunks/app/api/v1beta/models/route-1879675a73caf73c.js +0 -1
  846. package/app/.next/static/chunks/app/api/version/route-1879675a73caf73c.js +0 -1
  847. package/app/.next/static/chunks/app/api/version/shutdown/route-1879675a73caf73c.js +0 -1
  848. package/app/.next/static/chunks/app/api/version/update/route-1879675a73caf73c.js +0 -1
  849. package/app/.next/static/chunks/app/manifest.webmanifest/route-1879675a73caf73c.js +0 -1
  850. package/app/.next/static/chunks/app/page-1879675a73caf73c.js +0 -1
  851. package/app/.next/static/chunks/next/dist/client/components/builtin/app-error-1879675a73caf73c.js +0 -1
  852. package/app/.next/static/chunks/next/dist/client/components/builtin/forbidden-1879675a73caf73c.js +0 -1
  853. package/app/.next/static/chunks/next/dist/client/components/builtin/not-found-1879675a73caf73c.js +0 -1
  854. package/app/.next/static/chunks/next/dist/client/components/builtin/unauthorized-1879675a73caf73c.js +0 -1
  855. package/app/.next/static/css/f6642f5333f94810.css +0 -1
  856. /package/app/.next/static/{9qtW6KlzV_D2b828CZp1A → Q5oB2dEL7XeWBhjwqT_vo}/_ssgManifest.js +0 -0
package/README.md CHANGED
@@ -1,473 +1,1318 @@
1
- # openrouterX
1
+ <div align="center">
2
+ <img src="./images/9router.png?1" alt="9Router Dashboard" width="800"/>
3
+
4
+ # 9Router - FREE AI Router & Token Saver
5
+
6
+ **Never stop coding. Save 20-40% tokens with RTK + auto-fallback to FREE & cheap AI models.**
7
+
8
+ **Connect All AI Code Tools (Claude Code, Cursor, Antigravity, Copilot, Codex, Gemini, OpenCode, Cline, OpenClaw...) to 40+ AI Providers & 100+ Models.**
9
+
10
+ [![npm](https://img.shields.io/npm/v/9router.svg)](https://www.npmjs.com/package/9router)
11
+ [![Downloads](https://img.shields.io/npm/dm/9router.svg)](https://www.npmjs.com/package/9router)
12
+ [![Docker Pulls](https://img.shields.io/docker/pulls/decolua/9router.svg?logo=docker&label=Docker%20pulls)](https://hub.docker.com/r/decolua/9router)
13
+ [![GHCR](https://img.shields.io/badge/GHCR-decolua%2F9router-blue?logo=github)](https://github.com/decolua/9router/pkgs/container/9router)
14
+ [![License](https://img.shields.io/npm/l/9router.svg)](https://github.com/decolua/9router/blob/main/LICENSE)
2
15
 
3
- 面向 AI 编码工具的本地统一路由服务。
16
+ <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>
17
+
18
+ [🚀 Quick Start](#-quick-start) • [💡 Features](#-key-features) • [📖 Setup](#-setup-guide) • [🌐 Website](https://9router.com)
4
19
 
5
- > 当前代码分支:[`feat/openrouterx-release`](https://github.com/hackyinge/9router/tree/feat/openrouterx-release)
6
- > GitHub 仓库:[`hackyinge/9router`](https://github.com/hackyinge/9router)
7
- > 如果这个项目对你有帮助,欢迎点一个 Star,后续会继续更新更多 AI 编码工具、MITM、账号切换和团队网关能力。
20
+ [🇻🇳 Tiếng Việt](./i18n/README.vi.md) • [🇨🇳 中文](./i18n/README.zh-CN.md) • [🇯🇵 日本語](./i18n/README.ja-JP.md)
21
+ </div>
8
22
 
9
- `openrouterX` 可以把 Claude Code、Codex、Cursor、OpenCode、OpenClaw、Cline、Continue、Roo 等客户端统一接到一个本地 OpenAI-compatible 接口,并提供 Dashboard、模型路由、API Key 管理、Usage 分析、组合模型与自动 fallback。
23
+ ---
10
24
 
11
- ## 为什么用 openrouterX
25
+ ## 🤔 Why 9Router?
12
26
 
13
- - 统一本地接口:`http://localhost:20502/v1`
14
- - 统一管理后台:`http://localhost:20502/dashboard`
15
- - 同时接入订阅型供应商、API Key 供应商、免费供应商
16
- - 支持组合模型与自动 fallback
17
- - 支持 Codex 账号一键激活到本机 Codex,并自动刷新 token、写入 macOS Keychain、重启 Codex App
18
- - 支持子用户在授权范围内切换 Codex 账号,适合团队共用多账号额度
19
- - 支持 Antigravity MITM,带上游解析修复,避免依赖固定 IP 导致网络漂移后失效
20
- - 默认端口前移到 `20502`,安装和启动时会迁移旧的 `20128` MITM router 配置
21
- - 配额刷新请求做了分散调度,降低多个账号集中请求触发风控的概率
22
- - 内置 `RTK`,适合 `git diff`、`grep`、日志等重工具调用场景
23
- - 支持管理员创建子用户,并精细限制子用户可用供应商与 API Key
27
+ **Stop wasting money, tokens and hitting limits:**
24
28
 
25
- ## 新增功能速览
29
+ - ❌ Subscription quota expires unused every month
30
+ - ❌ Rate limits stop you mid-coding
31
+ - ❌ Tool outputs (git diff, grep, ls...) burn tokens fast
32
+ - ❌ Expensive APIs ($20-50/month per provider)
33
+ - ❌ Manual switching between providers
26
34
 
27
- ### Codex 账号一键激活
35
+ **9Router solves this:**
28
36
 
29
- 在配额页面的 Codex 账号卡片上点击 `Activate`,即可把该账号应用到本机 Codex:
37
+ - **RTK Token Saver** - Auto-compress tool_result content, save 20-40% tokens per request
38
+ - ✅ **Maximize subscriptions** - Track quota, use every bit before reset
39
+ - ✅ **Auto fallback** - Subscription → Cheap → Free, zero downtime
40
+ - ✅ **Multi-account** - Round-robin between accounts per provider
41
+ - ✅ **Universal** - Works with Claude Code, Codex, Cursor, Cline, any CLI tool
30
42
 
31
- - 检测本机是否安装 Codex CLI 或 macOS Codex.app
32
- - 使用账号的 `refresh_token` 刷新最新 `access_token` / `id_token`
33
- - 写入 `~/.codex/auth.json`
34
- - 在 macOS 上同步写入 `Codex Auth` Keychain
35
- - 自动重启 Codex.app,让新账号立即生效
43
+ ---
36
44
 
37
- 如果本机没有安装 Codex,会提示安装方式:
45
+ ## 🔄 How It Works
38
46
 
39
- ```bash
40
- npm install -g @openai/codex
41
- # macOS 也可以:
42
- brew install --cask codex
43
47
  ```
48
+ ┌─────────────┐
49
+ │ Your CLI │ (Claude Code, Codex, OpenClaw, Cursor, Cline...)
50
+ │ Tool │
51
+ └──────┬──────┘
52
+ │ http://localhost:20128/v1
53
+
54
+ ┌─────────────────────────────────────────────┐
55
+ │ 9Router (Smart Router) │
56
+ │ • RTK Token Saver (cut tool_result tokens) │
57
+ │ • Format translation (OpenAI ↔ Claude) │
58
+ │ • Quota tracking │
59
+ │ • Auto token refresh │
60
+ └──────┬──────────────────────────────────────┘
61
+
62
+ ├─→ [Tier 1: SUBSCRIPTION] Claude Code, Codex, GitHub Copilot
63
+ │ ↓ quota exhausted
64
+ ├─→ [Tier 2: CHEAP] GLM ($0.6/1M), MiniMax ($0.2/1M)
65
+ │ ↓ budget limit
66
+ └─→ [Tier 3: FREE] Kiro, OpenCode Free, Vertex ($300 credits)
67
+
68
+ Result: Never stop coding, minimal cost + 20-40% token savings via RTK
69
+ ```
70
+
71
+ ---
44
72
 
45
- ### 子用户也能切换 Codex 账号
73
+ ## Quick Start
46
74
 
47
- 子用户在配额页面仍然保持只读,不能编辑、删除或启停供应商连接,但可以对自己被授权看到的 Codex 账号点击 `Activate`。后端会做连接级权限校验,手写未授权的 `connectionId` 会返回 `403`。
75
+ **1. Install globally:**
48
76
 
49
- 注意:Codex 激活修改的是当前机器的本地 Codex 登录态,是机器级状态,不是每个子用户隔离一份本地 Codex 状态。
77
+ ```bash
78
+ npm install -g 9router
79
+ 9router
80
+ ```
50
81
 
51
- ### Antigravity MITM 更稳定
82
+ 🎉 Dashboard opens at `http://localhost:20128`
52
83
 
53
- MITM 不再依赖固定上游 IP 列表。解析上游地址时会跳过本机 alias、回环路由和已失败地址,减少这类错误:
84
+ **2. Connect a FREE provider (no signup needed):**
85
+
86
+ Dashboard → Providers → Connect **Kiro AI** (free Claude unlimited) or **OpenCode Free** (no auth) → Done!
87
+
88
+ **3. Use in your CLI tool:**
54
89
 
55
- ```txt
56
- Passthrough error: connect EADDRNOTAVAIL ...
57
- Router fetch failed for http://localhost:20128/v1/chat/completions
90
+ ```
91
+ Claude Code/Codex/OpenClaw/Cursor/Cline Settings:
92
+ Endpoint: http://localhost:20128/v1
93
+ API Key: [copy from dashboard]
94
+ Model: kr/claude-sonnet-4.5
58
95
  ```
59
96
 
60
- 同时默认端口已从 `20128` 迁移到 `20502`,升级安装和启动时会刷新旧配置,避免其他机器升级后继续指向旧端口。
97
+ **That's it!** Start coding with FREE AI models.
61
98
 
62
- ## 安装
99
+ **Alternative: run from source (this repository):**
63
100
 
64
- npm 全局安装:
101
+ This repository package is private (`9router-app`), so source/Docker execution is the expected local development path.
65
102
 
66
103
  ```bash
67
- npm install -g @yina-npm/openrouterx
68
- openrouterX
104
+ cp .env.example .env
105
+ npm install
106
+ PORT=20128 NEXT_PUBLIC_BASE_URL=http://localhost:20128 npm run dev
69
107
  ```
70
108
 
71
- 开发者在验证本地改动时,必须区分“源码启动”和“npm 包安装测试”。发布、CLI、MITM、安装布局相关改动请先阅读 [Local npm Package Testing](docs/LOCAL_NPM_TESTING.md)。
109
+ Production mode:
72
110
 
73
- 启动后默认地址:
111
+ ```bash
112
+ npm run build
113
+ PORT=20128 HOSTNAME=0.0.0.0 NEXT_PUBLIC_BASE_URL=http://localhost:20128 npm run start
114
+ ```
74
115
 
75
- - Dashboard:`http://localhost:20502/dashboard`
76
- - OpenAI-compatible API:`http://localhost:20502/v1`
116
+ Default URLs:
117
+ - Dashboard: `http://localhost:20128/dashboard`
118
+ - OpenAI-compatible API: `http://localhost:20128/v1`
119
+
120
+ ---
121
+
122
+ ## Video Guides
123
+
124
+ <div align="center">
125
+
126
+ <table>
127
+ <tr>
128
+ <td align="center" width="320">
129
+ <a href="https://www.youtube.com/watch?v=raEyZPg5xE0">
130
+ <img src="https://img.youtube.com/vi/raEyZPg5xE0/maxresdefault.jpg" alt="9Router Setup Tutorial" width="300"/>
131
+ </a><br/>
132
+ <b>🇺🇸 English</b><br/>
133
+ <sub>9Router + Claude Code FREE Setup<br/>by <a href="https://www.youtube.com/@BuildAIWithHamid">Build AI With Hamid</a></sub>
134
+ </td>
135
+ <td align="center" width="320">
136
+ <a href="https://www.youtube.com/watch?v=X69n5Lm06Yw">
137
+ <img src="https://img.youtube.com/vi/X69n5Lm06Yw/maxresdefault.jpg" alt="Tiết kiệm chi phí LLM với 9Router" width="300"/>
138
+ </a><br/>
139
+ <b>🇻🇳 Tiếng Việt</b><br/>
140
+ <sub>Tiết kiệm chi phí LLM cho OpenClaw với 9Router<br/>by <a href="https://www.youtube.com/c/M%C3%ACAIblog">Mì AI</a></sub>
141
+ </td>
142
+ <td align="center" width="320">
143
+ <a href="https://www.youtube.com/watch?v=o3qYCyjrFYg">
144
+ <img src="https://img.youtube.com/vi/o3qYCyjrFYg/maxresdefault.jpg" alt="Claude Code FREE Forever" width="300"/>
145
+ </a><br/>
146
+ <b>🇺🇸 English</b><br/>
147
+ <sub>Claude Code FREE Forever — Unlimited Models<br/>by <a href="https://www.youtube.com/@BuildAIWithHamid">Build AI With Hamid</a></sub>
148
+ </td>
149
+ </tr>
150
+ <tr>
151
+ <td align="center" width="320">
152
+ <a href="https://www.youtube.com/watch?v=Ttpc26m39Dw">
153
+ <img src="https://img.youtube.com/vi/Ttpc26m39Dw/maxresdefault.jpg" alt="Claude CLI Free Setup" width="300"/>
154
+ </a><br/>
155
+ <b>🇺🇸 English</b><br/>
156
+ <sub>Claude CLI Free Setup with 9Router 🚀<br/>by <a href="https://www.youtube.com/@CodeVerseSoban">CodeVerse Soban</a></sub>
157
+ </td>
158
+ <td align="center" width="320">
159
+ <a href="https://www.youtube.com/watch?v=G-5A_D5Pm6Y">
160
+ <img src="https://img.youtube.com/vi/G-5A_D5Pm6Y/maxresdefault.jpg" alt="Cài đặt OpenClaw Free A-Z" width="300"/>
161
+ </a><br/>
162
+ <b>🇻🇳 Tiếng Việt</b><br/>
163
+ <sub>Cài Đặt OpenClaw Free Từ A-Z + 9Router<br/>by <a href="https://www.youtube.com/@maigia">Mai Gia</a></sub>
164
+ </td>
165
+ <td align="center" width="320">
166
+ <a href="https://www.youtube.com/watch?v=JXmg8_gccgE">
167
+ <img src="https://img.youtube.com/vi/JXmg8_gccgE/maxresdefault.jpg" alt="FREE OpenClaw with Claude Opus" width="300"/>
168
+ </a><br/>
169
+ <b>🇺🇸 English</b><br/>
170
+ <sub>FREE OpenClaw + Claude Opus 4.6<br/>by <a href="https://www.youtube.com/@BuildAIWithHamid">Build AI With Hamid</a></sub>
171
+ </td>
172
+ </tr>
173
+ </table>
174
+
175
+ </div>
176
+
177
+ > 🎬 **Made a video about 9Router?** Submit a [Pull Request](https://github.com/decolua/9router/pulls) adding your video to this section — we'll merge it!
178
+
179
+ ---
180
+
181
+ ## 🛠️ Supported CLI Tools
182
+
183
+ 9Router works seamlessly with all major AI coding tools:
184
+
185
+ <div align="center">
186
+ <table>
187
+ <tr>
188
+ <td align="center" width="120">
189
+ <img src="./public/providers/claude.png" width="60" alt="Claude Code"/><br/>
190
+ <b>Claude-Code</b>
191
+ </td>
192
+ <td align="center" width="120">
193
+ <img src="./public/providers/openclaw.png" width="60" alt="OpenClaw"/><br/>
194
+ <b>OpenClaw</b>
195
+ </td>
196
+ <td align="center" width="120">
197
+ <img src="./public/providers/codex.png" width="60" alt="Codex"/><br/>
198
+ <b>Codex</b>
199
+ </td>
200
+ <td align="center" width="120">
201
+ <img src="./public/providers/opencode.png" width="60" alt="OpenCode"/><br/>
202
+ <b>OpenCode</b>
203
+ </td>
204
+ <td align="center" width="120">
205
+ <img src="./public/providers/cursor.png" width="60" alt="Cursor"/><br/>
206
+ <b>Cursor</b>
207
+ </td>
208
+ <td align="center" width="120">
209
+ <img src="./public/providers/antigravity.png" width="60" alt="Antigravity"/><br/>
210
+ <b>Antigravity</b>
211
+ </td>
212
+ </tr>
213
+ <tr>
214
+ <td align="center" width="120">
215
+ <img src="./public/providers/cline.png" width="60" alt="Cline"/><br/>
216
+ <b>Cline</b>
217
+ </td>
218
+ <td align="center" width="120">
219
+ <img src="./public/providers/continue.png" width="60" alt="Continue"/><br/>
220
+ <b>Continue</b>
221
+ </td>
222
+ <td align="center" width="120">
223
+ <img src="./public/providers/droid.png" width="60" alt="Droid"/><br/>
224
+ <b>Droid</b>
225
+ </td>
226
+ <td align="center" width="120">
227
+ <img src="./public/providers/roo.png" width="60" alt="Roo"/><br/>
228
+ <b>Roo</b>
229
+ </td>
230
+ <td align="center" width="120">
231
+ <img src="./public/providers/copilot.png" width="60" alt="Copilot"/><br/>
232
+ <b>Copilot</b>
233
+ </td>
234
+ <td align="center" width="120">
235
+ <img src="./public/providers/kilocode.png" width="60" alt="Kilo Code"/><br/>
236
+ <b>Kilo Code</b>
237
+ </td>
238
+ </tr>
239
+ </table>
240
+ </div>
241
+
242
+ ---
243
+
244
+ ## 🌐 Supported Providers
245
+
246
+ ### 🔐 OAuth Providers
247
+
248
+ <div align="center">
249
+ <table>
250
+ <tr>
251
+ <td align="center" width="120">
252
+ <img src="./public/providers/claude.png" width="60" alt="Claude Code"/><br/>
253
+ <b>Claude-Code</b>
254
+ </td>
255
+ <td align="center" width="120">
256
+ <img src="./public/providers/antigravity.png" width="60" alt="Antigravity"/><br/>
257
+ <b>Antigravity</b>
258
+ </td>
259
+ <td align="center" width="120">
260
+ <img src="./public/providers/codex.png" width="60" alt="Codex"/><br/>
261
+ <b>Codex</b>
262
+ </td>
263
+ <td align="center" width="120">
264
+ <img src="./public/providers/github.png" width="60" alt="GitHub"/><br/>
265
+ <b>GitHub</b>
266
+ </td>
267
+ <td align="center" width="120">
268
+ <img src="./public/providers/cursor.png" width="60" alt="Cursor"/><br/>
269
+ <b>Cursor</b>
270
+ </td>
271
+ </tr>
272
+ </table>
273
+ </div>
274
+
275
+ ### 🆓 Free Providers
276
+
277
+ <div align="center">
278
+ <table>
279
+ <tr>
280
+ <td align="center" width="150">
281
+ <img src="./public/providers/kiro.png" width="70" alt="Kiro"/><br/>
282
+ <b>Kiro AI</b><br/>
283
+ <sub>Claude 4.5 + GLM-5 + MiniMax<br/>Unlimited FREE</sub>
284
+ </td>
285
+ <td align="center" width="150">
286
+ <img src="./public/providers/opencode.png" width="70" alt="OpenCode Free"/><br/>
287
+ <b>OpenCode Free</b><br/>
288
+ <sub>No auth • Auto-fetch models<br/>Unlimited FREE</sub>
289
+ </td>
290
+ <td align="center" width="150">
291
+ <img src="./public/providers/gemini.png" width="70" alt="Vertex AI"/><br/>
292
+ <b>Vertex AI</b><br/>
293
+ <sub>Gemini 3 Pro + GLM-5 + DeepSeek<br/>$300 credits free</sub>
294
+ </td>
295
+ </tr>
296
+ </table>
297
+ </div>
298
+
299
+ > **Note:** iFlow, Qwen and Gemini CLI free tiers were discontinued in 2026. Use Kiro / OpenCode Free / Vertex instead.
300
+
301
+ ### 🔑 API Key Providers (40+)
302
+
303
+ <div align="center">
304
+ <table>
305
+ <tr>
306
+ <td align="center" width="100">
307
+ <img src="./public/providers/openrouter.png" width="50" alt="OpenRouter"/><br/>
308
+ <sub>OpenRouter</sub>
309
+ </td>
310
+ <td align="center" width="100">
311
+ <img src="./public/providers/glm.png" width="50" alt="GLM"/><br/>
312
+ <sub>GLM</sub>
313
+ </td>
314
+ <td align="center" width="100">
315
+ <img src="./public/providers/kimi.png" width="50" alt="Kimi"/><br/>
316
+ <sub>Kimi</sub>
317
+ </td>
318
+ <td align="center" width="100">
319
+ <img src="./public/providers/minimax.png" width="50" alt="MiniMax"/><br/>
320
+ <sub>MiniMax</sub>
321
+ </td>
322
+ <td align="center" width="100">
323
+ <img src="./public/providers/openai.png" width="50" alt="OpenAI"/><br/>
324
+ <sub>OpenAI</sub>
325
+ </td>
326
+ <td align="center" width="100">
327
+ <img src="./public/providers/anthropic.png" width="50" alt="Anthropic"/><br/>
328
+ <sub>Anthropic</sub>
329
+ </td>
330
+ </tr>
331
+ <tr>
332
+ <td align="center" width="100">
333
+ <img src="./public/providers/gemini.png" width="50" alt="Gemini"/><br/>
334
+ <sub>Gemini</sub>
335
+ </td>
336
+ <td align="center" width="100">
337
+ <img src="./public/providers/deepseek.png" width="50" alt="DeepSeek"/><br/>
338
+ <sub>DeepSeek</sub>
339
+ </td>
340
+ <td align="center" width="100">
341
+ <img src="./public/providers/groq.png" width="50" alt="Groq"/><br/>
342
+ <sub>Groq</sub>
343
+ </td>
344
+ <td align="center" width="100">
345
+ <img src="./public/providers/xai.png" width="50" alt="xAI"/><br/>
346
+ <sub>xAI</sub>
347
+ </td>
348
+ <td align="center" width="100">
349
+ <img src="./public/providers/mistral.png" width="50" alt="Mistral"/><br/>
350
+ <sub>Mistral</sub>
351
+ </td>
352
+ <td align="center" width="100">
353
+ <img src="./public/providers/perplexity.png" width="50" alt="Perplexity"/><br/>
354
+ <sub>Perplexity</sub>
355
+ </td>
356
+ </tr>
357
+ <tr>
358
+ <td align="center" width="100">
359
+ <img src="./public/providers/together.png" width="50" alt="Together"/><br/>
360
+ <sub>Together AI</sub>
361
+ </td>
362
+ <td align="center" width="100">
363
+ <img src="./public/providers/fireworks.png" width="50" alt="Fireworks"/><br/>
364
+ <sub>Fireworks</sub>
365
+ </td>
366
+ <td align="center" width="100">
367
+ <img src="./public/providers/cerebras.png" width="50" alt="Cerebras"/><br/>
368
+ <sub>Cerebras</sub>
369
+ </td>
370
+ <td align="center" width="100">
371
+ <img src="./public/providers/cohere.png" width="50" alt="Cohere"/><br/>
372
+ <sub>Cohere</sub>
373
+ </td>
374
+ <td align="center" width="100">
375
+ <img src="./public/providers/nvidia.png" width="50" alt="NVIDIA"/><br/>
376
+ <sub>NVIDIA</sub>
377
+ </td>
378
+ <td align="center" width="100">
379
+ <img src="./public/providers/siliconflow.png" width="50" alt="SiliconFlow"/><br/>
380
+ <sub>SiliconFlow</sub>
381
+ </td>
382
+ </tr>
383
+ </table>
384
+ <p><i>...and 20+ more providers including Nebius, Chutes, Hyperbolic, and custom OpenAI/Anthropic compatible endpoints</i></p>
385
+ </div>
386
+
387
+ ---
388
+
389
+ ## 💡 Key Features
390
+
391
+ | Feature | What It Does | Why It Matters |
392
+ |---------|--------------|----------------|
393
+ | 🚀 **RTK Token Saver** ([RTK](https://github.com/rtk-ai/rtk) ⭐40K) | Compress tool outputs (`git diff`, `grep`, `ls`, `tree`...) before sending to LLM | Save **20-40% input tokens** per request |
394
+ | 🪨 **Caveman Mode** ([Caveman](https://github.com/JuliusBrussee/caveman) ⭐52K) | Inject caveman-speak prompt → LLM replies terse, technical substance preserved | Save **up to 65% output tokens** |
395
+ | 🎯 **Smart 3-Tier Fallback** | Auto-route: Subscription → Cheap → Free | Never stop coding, zero downtime |
396
+ | 📊 **Real-Time Quota Tracking** | Live token count + reset countdown | Maximize subscription value |
397
+ | 🔄 **Format Translation** | OpenAI ↔ Claude ↔ Gemini ↔ Cursor ↔ Kiro ↔ Vertex | Works with any CLI tool |
398
+ | 👥 **Multi-Account Support** | Multiple accounts per provider | Load balancing + redundancy |
399
+ | 🔄 **Auto Token Refresh** | OAuth tokens refresh automatically | No manual re-login needed |
400
+ | 🎨 **Custom Combos** | Create unlimited model combinations | Tailor fallback to your needs |
401
+ | 📝 **Request Logging** | Debug mode with full request/response logs | Troubleshoot issues easily |
402
+ | 💾 **Cloud Sync** | Sync config across devices | Same setup everywhere |
403
+ | 📊 **Usage Analytics** | Track tokens, cost, trends over time | Optimize spending |
404
+ | 🌐 **Deploy Anywhere** | Localhost, VPS, Docker, Cloudflare Workers | Flexible deployment options |
405
+
406
+ <details>
407
+ <summary><b>📖 Feature Details</b></summary>
408
+
409
+ ### 🚀 RTK Token Saver
410
+
411
+ Tool outputs (`git diff`, `grep`, `find`, `ls`, `tree`, log dumps...) often eat 30-50% of your prompt budget. RTK detects them and applies smart, lossless compression **before** the request hits the LLM:
412
+
413
+ - **Filters:** `git-diff`, `git-status`, `grep`, `find`, `ls`, `tree`, `dedup-log`, `smart-truncate`, `read-numbered`, `search-list`
414
+ - **Auto-detect:** No config needed — RTK peeks the first 1KB of each `tool_result` and picks the right filter.
415
+ - **Safe by design:** If a filter fails, throws, or makes output bigger, RTK silently keeps the original text. Errors never break your request.
416
+ - **Universal:** Works across all formats (OpenAI, Claude, Gemini, Cursor, Kiro, OpenAI Responses) because it runs **before** any format translation.
417
+ - **Default ON:** Toggle anytime in Dashboard → Endpoint settings.
77
418
 
78
- ## 快速开始
419
+ ```
420
+ Without RTK: 47K tokens sent to LLM
421
+ With RTK: 28K tokens sent to LLM (40% saved · same context · same answer)
422
+ ```
79
423
 
80
- ### 1. 启动本地服务
424
+ ### 🎯 Smart 3-Tier Fallback
81
425
 
82
- ```bash
83
- openrouterX
426
+ Create combos with automatic fallback:
427
+
428
+ ```
429
+ Combo: "my-coding-stack"
430
+ 1. cc/claude-opus-4-6 (your subscription)
431
+ 2. glm/glm-4.7 (cheap backup, $0.6/1M)
432
+ 3. if/kimi-k2-thinking (free fallback)
433
+
434
+ → Auto switches when quota runs out or errors occur
84
435
  ```
85
436
 
86
- 登录页默认在:
437
+ ### 📊 Real-Time Quota Tracking
438
+
439
+ - Token consumption per provider
440
+ - Reset countdown (5-hour, daily, weekly)
441
+ - Cost estimation for paid tiers
442
+ - Monthly spending reports
443
+
444
+ ### 🔄 Format Translation
445
+
446
+ Seamless translation between formats:
447
+ - **OpenAI** ↔ **Claude** ↔ **Gemini** ↔ **Cursor** ↔ **Kiro** ↔ **Vertex** ↔ **Antigravity** ↔ **Ollama** ↔ **OpenAI Responses**
448
+ - Your CLI tool sends OpenAI format → 9Router translates → Provider receives native format
449
+ - Works with any tool that supports custom OpenAI endpoints
450
+
451
+ ### 👥 Multi-Account Support
452
+
453
+ - Add multiple accounts per provider
454
+ - Auto round-robin or priority-based routing
455
+ - Fallback to next account when one hits quota
456
+
457
+ ### 🔄 Auto Token Refresh
458
+
459
+ - OAuth tokens automatically refresh before expiration
460
+ - No manual re-authentication needed
461
+ - Seamless experience across all providers
462
+
463
+ ### 🎨 Custom Combos
464
+
465
+ - Create unlimited model combinations
466
+ - Mix subscription, cheap, and free tiers
467
+ - Name your combos for easy access
468
+ - Share combos across devices with Cloud Sync
469
+
470
+ ### 📝 Request Logging
471
+
472
+ - Enable debug mode for full request/response logs
473
+ - Track API calls, headers, and payloads
474
+ - Troubleshoot integration issues
475
+ - Export logs for analysis
476
+
477
+ ### 💾 Cloud Sync
478
+
479
+ - Sync providers, combos, and settings across devices
480
+ - Automatic background sync
481
+ - Secure encrypted storage
482
+ - Access your setup from anywhere
483
+
484
+ #### Cloud Runtime Notes
485
+
486
+ - Prefer server-side cloud variables in production:
487
+ - `BASE_URL` (internal callback URL used by sync scheduler)
488
+ - `CLOUD_URL` (cloud sync endpoint base)
489
+ - `NEXT_PUBLIC_BASE_URL` and `NEXT_PUBLIC_CLOUD_URL` are still supported for compatibility/UI, but server runtime now prioritizes `BASE_URL`/`CLOUD_URL`.
490
+ - Cloud sync requests now use timeout + fail-fast behavior to avoid UI hanging when cloud DNS/network is unavailable.
491
+
492
+ ### 📊 Usage Analytics
493
+
494
+ - Track token usage per provider and model
495
+ - Cost estimation and spending trends
496
+ - Monthly reports and insights
497
+ - Optimize your AI spending
87
498
 
88
- ```txt
89
- http://localhost:20502/login
499
+ > **💡 IMPORTANT - Understanding Dashboard Costs:**
500
+ >
501
+ > The "cost" displayed in Usage Analytics is **for tracking and comparison purposes only**.
502
+ > 9Router itself **never charges** you anything. You only pay providers directly (if using paid services).
503
+ >
504
+ > **Example:** If your dashboard shows "$290 total cost" while using iFlow models, this represents
505
+ > what you would have paid using paid APIs directly. Your actual cost = **$0** (iFlow is free unlimited).
506
+ >
507
+ > Think of it as a "savings tracker" showing how much you're saving by using free models or
508
+ > routing through 9Router!
509
+
510
+ ### 🌐 Deploy Anywhere
511
+
512
+ - 💻 **Localhost** - Default, works offline
513
+ - ☁️ **VPS/Cloud** - Share across devices
514
+ - 🐳 **Docker** - One-command deployment
515
+ - 🚀 **Cloudflare Workers** - Global edge network
516
+
517
+ </details>
518
+
519
+ ---
520
+
521
+ ## 💰 Pricing at a Glance
522
+
523
+ | Tier | Provider | Cost | Quota Reset | Best For |
524
+ |------|----------|------|-------------|----------|
525
+ | **🚀 TOKEN SAVER** | **RTK (built-in)** | **FREE** | Always on | **Save 20-40% tokens on EVERY request** |
526
+ | **💳 SUBSCRIPTION** | Claude Code (Pro/Max) | $20-200/mo | 5h + weekly | Already subscribed |
527
+ | | Codex (Plus/Pro) | $20-200/mo | 5h + weekly | OpenAI users |
528
+ | | GitHub Copilot | $10-19/mo | Monthly | GitHub users |
529
+ | | Cursor IDE | $20/mo | Monthly | Cursor users |
530
+ | **💰 CHEAP** | GLM-5.1 / GLM-4.7 | $0.6/1M | Daily 10AM | Budget backup |
531
+ | | MiniMax M2.7 | $0.2/1M | 5-hour rolling | Cheapest option |
532
+ | | Kimi K2.5 | $9/mo flat | 10M tokens/mo | Predictable cost |
533
+ | **🆓 FREE** | Kiro AI | $0 | Unlimited | Claude 4.5 + GLM-5 + MiniMax free |
534
+ | | OpenCode Free | $0 | Unlimited | No auth, auto-fetch models |
535
+ | | Vertex AI | $300 credits | New GCP accounts | Gemini 3 Pro + DeepSeek + GLM-5 |
536
+
537
+ **💡 Pro Tip:** RTK + Kiro AI + OpenCode Free combo = **$0 cost + 20-40% token savings**!
538
+
539
+ ---
540
+
541
+ ### 📊 Understanding 9Router Costs & Billing
542
+
543
+ **9Router Billing Reality:**
544
+
545
+ ✅ **9Router software = FREE forever** (open source, never charges)
546
+ ✅ **Dashboard "costs" = Display/tracking only** (not actual bills)
547
+ ✅ **You pay providers directly** (subscriptions or API fees)
548
+ ✅ **FREE providers stay FREE** (iFlow, Kiro, Qwen = $0 unlimited)
549
+ ❌ **9Router never sends invoices** or charges your card
550
+
551
+ **How Cost Display Works:**
552
+
553
+ The dashboard shows **estimated costs** as if you were using paid APIs directly. This is **not billing** - it's a comparison tool to show your savings.
554
+
555
+ **Example Scenario:**
90
556
  ```
557
+ Dashboard Display:
558
+ • Total Requests: 1,662
559
+ • Total Tokens: 47M
560
+ • Display Cost: $290
561
+
562
+ Reality Check:
563
+ • Provider: iFlow (FREE unlimited)
564
+ • Actual Payment: $0.00
565
+ • What $290 Means: Amount you SAVED by using free models!
566
+ ```
567
+
568
+ **Payment Rules:**
569
+ - **Subscription providers** (Claude Code, Codex): Pay them directly via their websites
570
+ - **Cheap providers** (GLM, MiniMax): Pay them directly, 9Router just routes
571
+ - **FREE providers** (iFlow, Kiro, Qwen): Genuinely free forever, no hidden charges
572
+ - **9Router**: Never charges anything, ever
91
573
 
92
- ### 2. 登录
574
+ ---
93
575
 
94
- - `Super Admin`:完整管理权限
95
- - `Sub User`:受限使用权限,适合团队成员或子账号
576
+ ## 🎯 Use Cases
96
577
 
97
- ### 3. 连接供应商
578
+ ### Case 1: "I have Claude Pro subscription"
98
579
 
99
- 进入 Dashboard 后可以接入:
580
+ **Problem:** Quota expires unused, rate limits during heavy coding
100
581
 
101
- - 订阅型供应商:Claude Code、Codex、Copilot、Cursor
102
- - API Key 供应商:OpenAI、Anthropic、OpenRouter、GLM、Gemini、DeepSeek、Groq、Mistral、MiniMax、Kimi 等
103
- - 免费或低成本供应商:Kiro、OpenCode Free、Vertex AI
582
+ **Solution:**
583
+ ```
584
+ Combo: "maximize-claude"
585
+ 1. cc/claude-opus-4-7 (use subscription fully)
586
+ 2. glm/glm-5.1 (cheap backup when quota out)
587
+ 3. kr/claude-sonnet-4.5 (free emergency fallback)
104
588
 
105
- ### 4. 创建或复制 API Key
589
+ Monthly cost: $20 (subscription) + ~$5 (backup) = $25 total
590
+ vs. $20 + hitting limits = frustration
591
+ ```
106
592
 
107
- Dashboard 中创建 API Key,然后把它配置到你的编码工具里。
593
+ ### Case 2: "I want zero cost"
108
594
 
109
- ### 5. 把工具接到 openrouterX
595
+ **Problem:** Can't afford subscriptions, need reliable AI coding
110
596
 
111
- ```txt
112
- Base URL: http://localhost:20502/v1
113
- API Key: 你的 Dashboard API Key
114
- Model: 任意可用模型或 combo
597
+ **Solution:**
115
598
  ```
599
+ Combo: "free-forever"
600
+ 1. kr/claude-sonnet-4.5 (Claude 4.5 free unlimited)
601
+ 2. kr/glm-5 (GLM-5 free via Kiro)
602
+ 3. oc/<auto> (OpenCode Free, no auth)
116
603
 
117
- ## 工作方式
604
+ Monthly cost: $0
605
+ Quality: Production-ready models + RTK saves 20-40% tokens
606
+ ```
118
607
 
119
- ```txt
120
- 你的工具
121
- -> Claude Code / Codex / Cursor / OpenCode / OpenClaw / Cline / Continue
608
+ ### Case 3: "I need 24/7 coding, no interruptions"
122
609
 
123
- openrouterX
124
- -> 本地 OpenAI-compatible 接口
125
- -> 请求格式适配
126
- -> 模型路由与 fallback
127
- -> 配额感知切换
128
- -> Usage 统计
129
- -> API Key 与子用户隔离
610
+ **Problem:** Deadlines, can't afford downtime
130
611
 
131
- 上游供应商
132
- -> 订阅账号
133
- -> API Key 供应商
134
- -> 免费供应商
612
+ **Solution:**
613
+ ```
614
+ Combo: "always-on"
615
+ 1. cc/claude-opus-4-7 (best quality)
616
+ 2. cx/gpt-5.5 (second subscription)
617
+ 3. glm/glm-5.1 (cheap, resets daily)
618
+ 4. minimax/MiniMax-M2.7 (cheapest, 5h reset)
619
+ 5. kr/claude-sonnet-4.5 (free unlimited)
620
+
621
+ Result: 5 layers of fallback = zero downtime
622
+ Monthly cost: $20-200 (subscriptions) + $10-20 (backup)
135
623
  ```
136
624
 
137
- ## 核心能力
625
+ ### Case 4: "I want FREE AI in OpenClaw"
138
626
 
139
- ### 统一本地接口
627
+ **Problem:** Need AI assistant in messaging apps (WhatsApp, Telegram, Slack...), completely free
140
628
 
141
- 多个工具共享同一个本地入口:
629
+ **Solution:**
630
+ ```
631
+ Combo: "openclaw-free"
632
+ 1. kr/claude-sonnet-4.5 (Claude 4.5 free)
633
+ 2. kr/glm-5 (GLM-5 free)
634
+ 3. kr/MiniMax-M2.5 (MiniMax free)
142
635
 
143
- ```txt
144
- http://localhost:20502/v1
636
+ Monthly cost: $0
637
+ Access via: WhatsApp, Telegram, Slack, Discord, iMessage, Signal...
145
638
  ```
146
639
 
147
- ### Dashboard 驱动配置
640
+ ---
148
641
 
149
- Dashboard 可以完成:
642
+ ## ❓ Frequently Asked Questions
150
643
 
151
- - 连接供应商
152
- - 创建 API Key
153
- - 测试模型
154
- - 配置 combo
155
- - 查看 Usage 和请求明细
156
- - 生成各类 CLI Tools 的手动配置
644
+ <details>
645
+ <summary><b>📊 Why does my dashboard show high costs?</b></summary>
157
646
 
158
- ### RTK Token Saver
647
+ The dashboard tracks your token usage and displays **estimated costs** as if you were using paid APIs directly. This is **not actual billing** - it's a reference to show how much you're saving by using free models or existing subscriptions through 9Router.
159
648
 
160
- `RTK` 会在请求发送到上游模型前,对冗长的工具输出进行压缩,尤其适合:
649
+ **Example:**
650
+ - **Dashboard shows:** "$290 total cost"
651
+ - **Reality:** You're using iFlow (FREE unlimited)
652
+ - **Your actual cost:** **$0.00**
653
+ - **What $290 means:** Amount you **saved** by using free models instead of paid APIs!
161
654
 
162
- - `git diff`
163
- - `grep`
164
- - `ls`
165
- - 构建日志
166
- - 长文本工具输出
655
+ The cost display is a "savings tracker" to help you understand your usage patterns and optimization opportunities.
167
656
 
168
- ### Combo 与自动 fallback
657
+ </details>
169
658
 
170
- 你可以创建一个命名 combo,让多个模型串联:
659
+ <details>
660
+ <summary><b>💳 Will I be charged by 9Router?</b></summary>
171
661
 
172
- ```txt
173
- premium-coding
174
- 1. cc/claude-opus
175
- 2. glm/glm-5
176
- 3. kr/claude-sonnet-4.5
177
- ```
662
+ **No.** 9Router is free, open-source software that runs on your own computer. It never charges you anything.
663
+
664
+ **You only pay:**
665
+ - ✅ **Subscription providers** (Claude Code $20/mo, Codex $20-200/mo) → Pay them directly on their websites
666
+ - ✅ **Cheap providers** (GLM, MiniMax) → Pay them directly, 9Router just routes your requests
667
+ - ❌ **9Router itself** → **Never charges anything, ever**
178
668
 
179
- 主模型不可用时,可以自动切到后备模型。
669
+ 9Router is a local proxy/router. It doesn't have your credit card, can't send invoices, and has no billing system. It's completely free software.
180
670
 
181
- ### 子用户权限隔离
671
+ </details>
182
672
 
183
- 管理员可以为子用户单独控制:
673
+ <details>
674
+ <summary><b>🆓 Are FREE providers really unlimited?</b></summary>
184
675
 
185
- - 可使用哪些供应商
186
- - 可见哪些 API Key
187
- - Usage 是否只看自己的数据
188
- - 是否仅能查看 `CLI Tools` 手动配置,而不能修改本地工具设置
676
+ **Yes!** The current FREE providers (Kiro, OpenCode Free, Vertex) are genuinely free with **no hidden charges**.
189
677
 
190
- 这适合团队共用部署、代运营账号、或敏感 API Key 隔离场景。
678
+ These are free services offered by those respective companies:
679
+ - **Kiro AI**: Free unlimited Claude 4.5 + GLM-5 + MiniMax via AWS Builder ID / Google / GitHub OAuth
680
+ - **OpenCode Free**: No-auth passthrough proxy, models auto-fetched from `opencode.ai/zen/v1/models`
681
+ - **Vertex AI**: $300 free credits for new Google Cloud accounts (90 days)
191
682
 
192
- ### 团队共享网关
683
+ 9Router just routes your requests to them - there's no "catch" or future billing. They're truly free services, and 9Router makes them easy to use with fallback support.
193
684
 
194
- `openrouterX` 不只是单人使用工具,也可以作为团队内部统一网关:
685
+ **Discontinued free tiers (no longer recommended):**
686
+ - ❌ **iFlow**: Was free unlimited, now changed to paid (2026)
687
+ - ❌ **Qwen Code**: Free OAuth tier discontinued by Alibaba on 2026-04-15
688
+ - ❌ **Gemini CLI**: Still works, but using it with non-CLI tools (Claude, Codex, Cursor...) may result in account bans — only use if you stick to Gemini CLI itself
195
689
 
196
- - 管理员统一管理供应商、API Key、用户、combo
197
- - 子用户只看到分配给自己的 API Key 和允许使用的供应商
198
- - 子用户的 Usage 页面只展示自己的调用数据
199
- - 子用户可以在 `CLI Tools` 页面复制配置,但不会拿到完整管理权限
200
- - 上游供应商凭证不会暴露给普通成员
690
+ </details>
201
691
 
202
- ### Usage 分析
692
+ <details>
693
+ <summary><b>💰 How do I minimize my actual AI costs?</b></summary>
203
694
 
204
- Dashboard 支持查看:
695
+ **Free-First Strategy:**
205
696
 
206
- - 请求数
207
- - tokens
208
- - estimated cost
209
- - API Key 的使用情况
210
- - 请求明细
697
+ 1. **Start with 100% free combo:**
698
+ ```
699
+ 1. gc/gemini-3-flash (180K/month free from Google)
700
+ 2. if/kimi-k2-thinking (unlimited free from iFlow)
701
+ 3. qw/qwen3-coder-plus (unlimited free from Qwen)
702
+ ```
703
+ **Cost: $0/month**
211
704
 
212
- 其中成本展示主要用于统计和对比,`openrouterX` 本身不会向你收费。
705
+ 2. **Add cheap backup** only if you need it:
706
+ ```
707
+ 4. glm/glm-4.7 ($0.6/1M tokens)
708
+ ```
709
+ **Additional cost: Only pay for what you actually use**
213
710
 
214
- ## 支持的工具
711
+ 3. **Use subscription providers last:**
712
+ - Only if you already have them
713
+ - 9Router helps maximize their value through quota tracking
215
714
 
216
- `openrouterX` 面向各类 AI 编码工具和 OpenAI-compatible 客户端,包括:
715
+ **Result:** Most users can operate at $0/month using only free tiers!
217
716
 
218
- - Claude Code
219
- - Codex CLI
220
- - Cursor
221
- - OpenCode
222
- - OpenClaw
223
- - Cline
224
- - Continue
225
- - Roo
226
- - 兼容 Copilot 的相关流程
227
- - 其他支持 OpenAI-compatible 接口的自定义工具
717
+ </details>
228
718
 
229
- ## 支持的供应商类型
719
+ <details>
720
+ <summary><b>📈 What if my usage suddenly spikes?</b></summary>
230
721
 
231
- ### 订阅型供应商
722
+ 9Router's smart fallback prevents surprise charges:
232
723
 
233
- - Claude Code
234
- - Codex
235
- - GitHub Copilot
236
- - Cursor
724
+ **Scenario:** You're on a coding sprint and blow through your quotas
237
725
 
238
- ### API Key 供应商
726
+ **Without 9Router:**
727
+ - ❌ Hit rate limit → Work stops → Frustration
728
+ - ❌ Or: Accidentally rack up huge API bills
239
729
 
240
- - OpenAI
241
- - Anthropic
242
- - OpenRouter
243
- - GLM
244
- - Gemini
245
- - DeepSeek
246
- - Groq
247
- - Mistral
248
- - MiniMax
249
- - Kimi
250
- - 以及其他兼容供应商
730
+ **With 9Router:**
731
+ - ✅ Subscription hits limit → Auto-fallback to cheap tier
732
+ - ✅ Cheap tier gets expensive → Auto-fallback to free tier
733
+ - ✅ Never stop coding → Predictable costs
251
734
 
252
- ### 免费或低成本供应商
735
+ **You're in control:** Set spending limits per provider in dashboard, and 9Router respects them.
253
736
 
254
- - Kiro
255
- - OpenCode Free
256
- - Vertex AI
737
+ </details>
257
738
 
258
- 实际可用性取决于上游服务当前状态和你的本地配置。
739
+ ---
259
740
 
260
- ## CLI Tools 配置
741
+ ## 📖 Setup Guide
261
742
 
262
- Dashboard 内置了 `CLI Tools` 页面,可以直接生成可复制的配置。
743
+ <details>
744
+ <summary><b>🔐 Subscription Providers (Maximize Value)</b></summary>
263
745
 
264
- ### 通用 OpenAI-compatible 配置
746
+ ### Claude Code (Pro/Max)
265
747
 
266
- ```txt
267
- Base URL: http://localhost:20502/v1
268
- API Key: 你的 Dashboard API Key
269
- Model: 你选择的模型或 combo
748
+ ```bash
749
+ Dashboard Providers → Connect Claude Code
750
+ OAuth login Auto token refresh
751
+ 5-hour + weekly quota tracking
752
+
753
+ Models:
754
+ cc/claude-opus-4-7
755
+ cc/claude-opus-4-6
756
+ cc/claude-sonnet-4-6
757
+ cc/claude-haiku-4-5-20251001
270
758
  ```
271
759
 
272
- ### Codex CLI
760
+ **Pro Tip:** Use Opus for complex tasks, Sonnet for speed. 9Router tracks quota per model!
761
+
762
+ ### OpenAI Codex (Plus/Pro)
273
763
 
274
764
  ```bash
275
- export OPENAI_BASE_URL="http://localhost:20502/v1"
276
- export OPENAI_API_KEY="your-dashboard-api-key"
765
+ Dashboard → Providers → Connect Codex
766
+ OAuth login (port 1455)
767
+ → 5-hour + weekly reset
768
+
769
+ Models:
770
+ cx/gpt-5.5
771
+ cx/gpt-5.4
772
+ cx/gpt-5.3-codex
773
+ cx/gpt-5.2-codex
277
774
  ```
278
775
 
279
- ### Claude Code
776
+ ### GitHub Copilot
280
777
 
281
- 直接使用 `CLI Tools -> Claude Code` 中生成的手动配置。
778
+ ```bash
779
+ Dashboard → Providers → Connect GitHub
780
+ → OAuth via GitHub
781
+ → Monthly reset (1st of month)
782
+
783
+ Models:
784
+ gh/gpt-5.4
785
+ gh/claude-opus-4.7
786
+ gh/claude-sonnet-4.6
787
+ gh/gemini-3.1-pro-preview
788
+ gh/grok-code-fast-1
789
+ ```
282
790
 
283
- ### OpenClaw
791
+ ### Cursor IDE
284
792
 
285
- 直接使用 `CLI Tools -> OpenClaw` 中生成的手动配置。
793
+ ```bash
794
+ Dashboard → Providers → Connect Cursor
795
+ → OAuth login
796
+ → Monthly subscription
797
+
798
+ Models:
799
+ cu/claude-4.6-opus-max
800
+ cu/claude-4.5-sonnet-thinking
801
+ cu/gpt-5.3-codex
802
+ ```
286
803
 
287
- ### OpenCode
804
+ </details>
288
805
 
289
- 直接使用 `CLI Tools -> OpenCode` 中生成的手动配置。
806
+ <details>
807
+ <summary><b>💰 Cheap Providers (Backup)</b></summary>
290
808
 
291
- ## 管理员与子用户
809
+ ### GLM-5.1 / GLM-4.7 (Daily reset, $0.6/1M)
292
810
 
293
- `openrouterX` 内置两种角色:
811
+ 1. Sign up: [Zhipu AI](https://open.bigmodel.cn/)
812
+ 2. Get API key from Coding Plan
813
+ 3. Dashboard → Add API Key:
814
+ - Provider: `glm`
815
+ - API Key: `your-key`
294
816
 
295
- - `super_admin`
296
- - `sub_user`
817
+ **Use:** `glm/glm-5.1`, `glm/glm-5`, `glm/glm-4.7`
297
818
 
298
- ### `super_admin`
819
+ **Pro Tip:** Coding Plan offers 3× quota at 1/7 cost! Reset daily 10:00 AM.
299
820
 
300
- 可以管理:
821
+ ### MiniMax M2.7 (5h reset, $0.20/1M)
301
822
 
302
- - providers
303
- - API keys
304
- - combos
305
- - users
306
- - usage analytics
307
- - 本地工具集成配置
823
+ 1. Sign up: [MiniMax](https://www.minimax.io/)
824
+ 2. Get API key
825
+ 3. Dashboard → Add API Key
308
826
 
309
- ### `sub_user`
827
+ **Use:** `minimax/MiniMax-M2.7`, `minimax/MiniMax-M2.5`
310
828
 
311
- 可以被限制为:
829
+ **Pro Tip:** Cheapest option for long context (1M tokens)!
312
830
 
313
- - 只能使用分配给自己的 API Key
314
- - 只能访问被允许的供应商
315
- - 只能查看自己的 Usage 数据
316
- - 只显示精简版 `CLI Tools`
317
- - 可以复制手动配置,但不能管理供应商
318
- - 页面范围聚焦在自己的可见资源内
831
+ ### Kimi K2.5 ($9/month flat)
319
832
 
320
- 这使得一个部署可以服务多个用户,同时避免把所有供应商和凭证暴露给每个人。
833
+ 1. Subscribe: [Moonshot AI](https://platform.moonshot.ai/)
834
+ 2. Get API key
835
+ 3. Dashboard → Add API Key
321
836
 
322
- ## 本地开发
837
+ **Use:** `kimi/kimi-k2.5`, `kimi/kimi-k2.5-thinking`
323
838
 
324
- 从源码运行:
839
+ **Pro Tip:** Fixed $9/month for 10M tokens = $0.90/1M effective cost!
840
+
841
+ </details>
842
+
843
+ <details>
844
+ <summary><b>🆓 FREE Providers (Recommended)</b></summary>
845
+
846
+ ### Kiro AI (Claude 4.5 + GLM-5 + MiniMax FREE)
325
847
 
326
848
  ```bash
327
- cp .env.example .env
328
- npm install
329
- PORT=20502 NEXT_PUBLIC_BASE_URL=http://localhost:20502 npm run dev
849
+ Dashboard Connect Kiro
850
+ AWS Builder ID, AWS IAM Identity Center, Google, or GitHub
851
+ Unlimited usage
852
+
853
+ Models:
854
+ kr/claude-sonnet-4.5
855
+ kr/claude-haiku-4.5
856
+ kr/glm-5
857
+ kr/MiniMax-M2.5
858
+ kr/qwen3-coder-next
859
+ kr/deepseek-3.2
330
860
  ```
331
861
 
332
- 生产构建:
862
+ **Pro Tip:** Best free option for Claude. No API key, no payment, fully unlimited.
863
+
864
+ ### OpenCode Free (No auth, auto-fetch models)
333
865
 
334
866
  ```bash
335
- npm run build
336
- PORT=20502 HOSTNAME=0.0.0.0 NEXT_PUBLIC_BASE_URL=http://localhost:20502 npm run start
867
+ Dashboard Connect OpenCode Free
868
+ No login required (passthrough proxy)
869
+ → Models auto-fetched from opencode.ai/zen/v1/models
337
870
  ```
338
871
 
339
- ### 切换端口
872
+ **Pro Tip:** Fastest setup. Just connect and start coding.
340
873
 
341
- 默认端口是 `20502`。临时切到其他端口时,同时设置 `PORT` 和对外 base URL:
874
+ ### Vertex AI ($300 free credits for new GCP accounts)
342
875
 
343
876
  ```bash
344
- PORT=20600 NEXT_PUBLIC_BASE_URL=http://localhost:20600 npm run dev
877
+ Dashboard Connect Vertex AI
878
+ → Upload Google Cloud Service Account JSON
879
+ → Enable Vertex AI API in your GCP project
880
+
881
+ Models:
882
+ vertex/gemini-3.1-pro-preview
883
+ vertex/gemini-3-flash-preview
884
+ vertex/gemini-2.5-flash
885
+
886
+ Vertex Partner (Anthropic / DeepSeek / GLM / Qwen via Vertex):
887
+ vertex-partner/glm-5-maas
888
+ vertex-partner/deepseek-v3.2-maas
889
+ vertex-partner/qwen3-next-80b-a3b-thinking-maas
345
890
  ```
346
891
 
347
- 生产模式同理:
892
+ **Pro Tip:** New Google Cloud accounts get $300 credits free for 90 days. Plenty for daily coding.
348
893
 
349
- ```bash
350
- PORT=20600 HOSTNAME=0.0.0.0 NEXT_PUBLIC_BASE_URL=http://localhost:20600 npm run start
894
+ </details>
895
+
896
+ <details>
897
+ <summary><b>🎨 Create Combos</b></summary>
898
+
899
+ ### Example 1: Maximize Subscription → Cheap Backup
900
+
901
+ ```
902
+ Dashboard → Combos → Create New
903
+
904
+ Name: premium-coding
905
+ Models:
906
+ 1. cc/claude-opus-4-7 (Subscription primary)
907
+ 2. glm/glm-5.1 (Cheap backup, $0.6/1M)
908
+ 3. minimax/MiniMax-M2.7 (Cheapest fallback, $0.20/1M)
909
+
910
+ Use in CLI: premium-coding
911
+
912
+ Monthly cost example (100M tokens):
913
+ 80M via Claude (subscription): $0 extra
914
+ 15M via GLM: $9
915
+ 5M via MiniMax: $1
916
+ Total: $10 + your subscription
917
+ ```
918
+
919
+ ### Example 2: Free-Only (Zero Cost)
920
+
921
+ ```
922
+ Name: free-combo
923
+ Models:
924
+ 1. kr/claude-sonnet-4.5 (Claude 4.5 free unlimited)
925
+ 2. kr/glm-5 (GLM-5 free via Kiro)
926
+ 3. vertex/gemini-3.1-pro-preview ($300 free credits)
927
+
928
+ Cost: $0 forever (+ 20-40% token savings via RTK)!
929
+ ```
930
+
931
+ </details>
932
+
933
+ <details>
934
+ <summary><b>🔧 CLI Integration</b></summary>
935
+
936
+ ### Cursor IDE
937
+
938
+ ```
939
+ Settings → Models → Advanced:
940
+ OpenAI API Base URL: http://localhost:20128/v1
941
+ OpenAI API Key: [from 9router dashboard]
942
+ Model: cc/claude-opus-4-7
943
+ ```
944
+
945
+ Or use combo: `premium-coding`
946
+
947
+ ### Claude Code
948
+
949
+ Edit `~/.claude/config.json`:
950
+
951
+ ```json
952
+ {
953
+ "anthropic_api_base": "http://localhost:20128/v1",
954
+ "anthropic_api_key": "your-9router-api-key"
955
+ }
351
956
  ```
352
957
 
353
- 如果使用全局安装的 `openrouterX`,端口来自 CLI 内置默认值或启动时的 `PORT` 环境变量。修改默认端口后需要重新 npm 全局安装并重启:
958
+ ### Codex CLI
354
959
 
355
960
  ```bash
356
- npm run release:npm:install-local
357
- openrouterX restart --no-browser --skip-update
961
+ export OPENAI_BASE_URL="http://localhost:20128"
962
+ export OPENAI_API_KEY="your-9router-api-key"
963
+
964
+ codex "your prompt"
965
+ ```
966
+
967
+ ### OpenClaw
968
+
969
+ **Option 1 — Dashboard (recommended):**
970
+
971
+ ```
972
+ Dashboard → CLI Tools → OpenClaw → Select Model → Apply
358
973
  ```
359
974
 
360
- 切换端口后,CLI 工具里的 Base URL 也要同步改成新端口,例如 `http://localhost:20600/v1`。
975
+ **Option 2 Manual:** Edit `~/.openclaw/openclaw.json`:
976
+
977
+ ```json
978
+ {
979
+ "agents": {
980
+ "defaults": {
981
+ "model": {
982
+ "primary": "9router/kr/claude-sonnet-4.5"
983
+ }
984
+ }
985
+ },
986
+ "models": {
987
+ "providers": {
988
+ "9router": {
989
+ "baseUrl": "http://127.0.0.1:20128/v1",
990
+ "apiKey": "sk_9router",
991
+ "api": "openai-completions",
992
+ "models": [
993
+ {
994
+ "id": "kr/claude-sonnet-4.5",
995
+ "name": "Claude Sonnet 4.5 (Kiro Free)"
996
+ }
997
+ ]
998
+ }
999
+ }
1000
+ }
1001
+ }
1002
+ ```
1003
+
1004
+ > **Note:** OpenClaw only works with local 9Router. Use `127.0.0.1` instead of `localhost` to avoid IPv6 resolution issues.
1005
+
1006
+ ### Cline / Continue / RooCode
361
1007
 
362
- ## 部署
1008
+ ```
1009
+ Provider: OpenAI Compatible
1010
+ Base URL: http://localhost:20128/v1
1011
+ API Key: [from dashboard]
1012
+ Model: cc/claude-opus-4-7
1013
+ ```
363
1014
 
364
- ### PM2
1015
+ </details>
1016
+
1017
+ <details>
1018
+ <summary><b>🚀 Deployment</b></summary>
1019
+
1020
+ ### VPS Deployment
365
1021
 
366
1022
  ```bash
1023
+ # Clone and install
1024
+ git clone https://github.com/decolua/9router.git
1025
+ cd 9router
367
1026
  npm install
368
1027
  npm run build
369
- pm2 start npm --name openrouterx -- start
1028
+
1029
+ # Configure
1030
+ export JWT_SECRET="your-secure-secret-change-this"
1031
+ export INITIAL_PASSWORD="your-password"
1032
+ export DATA_DIR="/var/lib/9router"
1033
+ export PORT="20128"
1034
+ export HOSTNAME="0.0.0.0"
1035
+ export NODE_ENV="production"
1036
+ export NEXT_PUBLIC_BASE_URL="http://localhost:20128"
1037
+ export NEXT_PUBLIC_CLOUD_URL="https://9router.com"
1038
+ export API_KEY_SECRET="endpoint-proxy-api-key-secret"
1039
+ export MACHINE_ID_SALT="endpoint-proxy-salt"
1040
+
1041
+ # Start
1042
+ npm run start
1043
+
1044
+ # Or use PM2
1045
+ npm install -g pm2
1046
+ pm2 start npm --name 9router -- start
1047
+ pm2 save
1048
+ pm2 startup
370
1049
  ```
371
1050
 
372
1051
  ### Docker
373
1052
 
374
- ```bash
375
- docker build -t openrouterx .
1053
+ Published images (multi-platform `linux/amd64` + `linux/arm64`):
1054
+ - Docker Hub: [`decolua/9router`](https://hub.docker.com/r/decolua/9router)
1055
+ - GHCR: [`ghcr.io/decolua/9router`](https://github.com/decolua/9router/pkgs/container/9router)
376
1056
 
1057
+ **Quick start (use published image):**
1058
+
1059
+ ```bash
377
1060
  docker run -d \
378
- --name openrouterx \
379
- -p 20502:20502 \
380
- --env-file ./.env \
381
- -v openrouterx-data:/app/data \
382
- openrouterx
383
- ```
384
-
385
- ## 环境变量
386
-
387
- | 变量 | 说明 |
388
- | --- | --- |
389
- | `JWT_SECRET` | Dashboard 登录鉴权使用的 JWT secret |
390
- | `INITIAL_PASSWORD` | 初始登录密码,在没有已保存 hash 时使用 |
391
- | `DATA_DIR` | 主数据库目录 |
392
- | `PORT` | 服务端口 |
393
- | `HOSTNAME` | 监听地址 |
394
- | `BASE_URL` | 服务端内部使用的 base URL |
395
- | `CLOUD_URL` | 云端同步使用的 base URL |
396
- | `NEXT_PUBLIC_BASE_URL` | 前端可见的 base URL |
397
- | `NEXT_PUBLIC_CLOUD_URL` | 前端可见的云端 URL |
398
- | `API_KEY_SECRET` | 生成 API Key 时使用的签名 secret |
399
- | `MACHINE_ID_SALT` | 机器标识计算使用的 salt |
400
- | `ENABLE_REQUEST_LOGS` | 是否开启请求日志 |
401
- | `AUTH_COOKIE_SECURE` | 是否强制使用安全 Cookie |
402
- | `REQUIRE_API_KEY` | 是否要求 `/v1/*` 必须携带 Bearer API Key |
403
-
404
- ## API 示例
1061
+ --name 9router \
1062
+ -p 20128:20128 \
1063
+ -v "$HOME/.9router:/app/data" \
1064
+ -e DATA_DIR=/app/data \
1065
+ decolua/9router:latest
1066
+ ```
1067
+
1068
+ Open http://localhost:20128
1069
+
1070
+ **Build from source (dev):**
1071
+
1072
+ ```bash
1073
+ git clone https://github.com/decolua/9router.git
1074
+ cd 9router/app
1075
+ docker build -t 9router .
1076
+ docker run -d --name 9router -p 20128:20128 \
1077
+ -v "$HOME/.9router:/app/data" -e DATA_DIR=/app/data 9router
1078
+ ```
1079
+
1080
+ **Container defaults:**
1081
+ - `PORT=20128`
1082
+ - `HOSTNAME=0.0.0.0`
1083
+
1084
+ **Useful commands:**
1085
+
1086
+ ```bash
1087
+ docker logs -f 9router
1088
+ docker restart 9router
1089
+ docker stop 9router && docker rm 9router
1090
+ docker pull decolua/9router:latest # update to latest
1091
+ ```
1092
+
1093
+ **Data persistence:** `$HOME/.9router/db/data.sqlite` on host ↔ `/app/data/db/data.sqlite` in container.
1094
+
1095
+ ### Environment Variables
1096
+
1097
+ | Variable | Default | Description |
1098
+ |----------|---------|-------------|
1099
+ | `JWT_SECRET` | Auto-generated (`~/.9router/jwt-secret`) | JWT signing secret for dashboard auth cookie (override to share across instances) |
1100
+ | `INITIAL_PASSWORD` | `123456` | First login password when no saved hash exists |
1101
+ | `DATA_DIR` | `~/.9router` | Main app data location (SQLite at `$DATA_DIR/db/data.sqlite`) |
1102
+ | `PORT` | framework default | Service port (`20128` in examples) |
1103
+ | `HOSTNAME` | framework default | Bind host (Docker defaults to `0.0.0.0`) |
1104
+ | `NODE_ENV` | runtime default | Set `production` for deploy |
1105
+ | `BASE_URL` | `http://localhost:20128` | Server-side internal base URL used by cloud sync jobs |
1106
+ | `CLOUD_URL` | `https://9router.com` | Server-side cloud sync endpoint base URL |
1107
+ | `NEXT_PUBLIC_BASE_URL` | `http://localhost:3000` | Backward-compatible/public base URL (prefer `BASE_URL` for server runtime) |
1108
+ | `NEXT_PUBLIC_CLOUD_URL` | `https://9router.com` | Backward-compatible/public cloud URL (prefer `CLOUD_URL` for server runtime) |
1109
+ | `API_KEY_SECRET` | `endpoint-proxy-api-key-secret` | HMAC secret for generated API keys |
1110
+ | `MACHINE_ID_SALT` | `endpoint-proxy-salt` | Salt for stable machine ID hashing |
1111
+ | `ENABLE_REQUEST_LOGS` | `false` | Enables request/response logs under `logs/` |
1112
+ | `AUTH_COOKIE_SECURE` | `false` | Force `Secure` auth cookie (set `true` behind HTTPS reverse proxy) |
1113
+ | `REQUIRE_API_KEY` | `false` | Enforce Bearer API key on `/v1/*` routes (recommended for internet-exposed deploys) |
1114
+ | `HTTP_PROXY`, `HTTPS_PROXY`, `ALL_PROXY`, `NO_PROXY` | empty | Optional outbound proxy for upstream provider calls |
1115
+
1116
+ Notes:
1117
+ - Lowercase proxy variables are also supported: `http_proxy`, `https_proxy`, `all_proxy`, `no_proxy`.
1118
+ - `.env` is not baked into Docker image (`.dockerignore`); inject runtime config with `--env-file` or `-e`.
1119
+ - On Windows, `APPDATA` can be used for local storage path resolution.
1120
+ - `INSTANCE_NAME` appears in older docs/env templates, but is currently not used at runtime.
1121
+
1122
+ ### Runtime Files and Storage
1123
+
1124
+ - Main app state: `${DATA_DIR}/db/data.sqlite` (SQLite — providers, combos, aliases, keys, settings, usage history)
1125
+ - Auto backups: `${DATA_DIR}/db/backups/`
1126
+ - Optional request/translator logs: `<repo>/logs/...` when `ENABLE_REQUEST_LOGS=true`
1127
+ - Both `${DATA_DIR}` and `~/.9router` resolve to the same location in a Docker container — the symlink `/root/.9router -> /app/data` is created at build time.
1128
+
1129
+ </details>
1130
+
1131
+ ---
1132
+
1133
+ ## 📊 Available Models
1134
+
1135
+ <details>
1136
+ <summary><b>View all available models</b></summary>
1137
+
1138
+ **Claude Code (`cc/`)** - Pro/Max:
1139
+ - `cc/claude-opus-4-7`
1140
+ - `cc/claude-opus-4-6`
1141
+ - `cc/claude-sonnet-4-6`
1142
+ - `cc/claude-sonnet-4-5-20250929`
1143
+ - `cc/claude-haiku-4-5-20251001`
1144
+
1145
+ **Codex (`cx/`)** - Plus/Pro:
1146
+ - `cx/gpt-5.5`
1147
+ - `cx/gpt-5.4`
1148
+ - `cx/gpt-5.3-codex`
1149
+ - `cx/gpt-5.2-codex`
1150
+ - `cx/gpt-5.1-codex-max`
1151
+
1152
+ **GitHub Copilot (`gh/`)**:
1153
+ - `gh/gpt-5.4`
1154
+ - `gh/claude-opus-4.7`
1155
+ - `gh/claude-sonnet-4.6`
1156
+ - `gh/gemini-3.1-pro-preview`
1157
+ - `gh/grok-code-fast-1`
1158
+
1159
+ **Cursor (`cu/`)** - Subscription:
1160
+ - `cu/claude-4.6-opus-max`
1161
+ - `cu/claude-4.5-sonnet-thinking`
1162
+ - `cu/gpt-5.3-codex`
1163
+ - `cu/kimi-k2.5`
1164
+
1165
+ **GLM (`glm/`)** - $0.6/1M:
1166
+ - `glm/glm-5.1`
1167
+ - `glm/glm-5`
1168
+ - `glm/glm-4.7`
1169
+
1170
+ **MiniMax (`minimax/`)** - $0.2/1M:
1171
+ - `minimax/MiniMax-M2.7`
1172
+ - `minimax/MiniMax-M2.5`
1173
+
1174
+ **Kimi (`kimi/`)** - $9/mo flat:
1175
+ - `kimi/kimi-k2.5`
1176
+ - `kimi/kimi-k2.5-thinking`
1177
+
1178
+ **Kiro (`kr/`)** - FREE unlimited:
1179
+ - `kr/claude-sonnet-4.5`
1180
+ - `kr/claude-haiku-4.5`
1181
+ - `kr/glm-5`
1182
+ - `kr/MiniMax-M2.5`
1183
+ - `kr/qwen3-coder-next`
1184
+ - `kr/deepseek-3.2`
1185
+
1186
+ **OpenCode Free (`oc/`)** - FREE no-auth:
1187
+ - Auto-fetched from `opencode.ai/zen/v1/models`
1188
+
1189
+ **Vertex AI (`vertex/`)** - $300 free credits:
1190
+ - `vertex/gemini-3.1-pro-preview`
1191
+ - `vertex/gemini-3-flash-preview`
1192
+ - `vertex/gemini-2.5-flash`
1193
+ - `vertex-partner/glm-5-maas`
1194
+ - `vertex-partner/deepseek-v3.2-maas`
1195
+
1196
+ </details>
1197
+
1198
+ ---
1199
+
1200
+ ## 🐛 Troubleshooting
1201
+
1202
+ **"Language model did not provide messages"**
1203
+ - Provider quota exhausted → Check dashboard quota tracker
1204
+ - Solution: Use combo fallback or switch to cheaper tier
1205
+
1206
+ **Rate limiting**
1207
+ - Subscription quota out → Fallback to GLM/MiniMax
1208
+ - Add combo: `cc/claude-opus-4-7 → glm/glm-5.1 → kr/claude-sonnet-4.5`
1209
+
1210
+ **OAuth token expired**
1211
+ - Auto-refreshed by 9Router
1212
+ - If issues persist: Dashboard → Provider → Reconnect
1213
+
1214
+ **High costs**
1215
+ - Enable RTK in Dashboard → Endpoint settings (default ON, saves 20-40% tokens)
1216
+ - Check usage stats in Dashboard
1217
+ - Switch primary model to GLM/MiniMax
1218
+ - Use free tier (Kiro, OpenCode Free, Vertex) for non-critical tasks
1219
+
1220
+ **Dashboard opens on wrong port**
1221
+ - Set `PORT=20128` and `NEXT_PUBLIC_BASE_URL=http://localhost:20128`
1222
+
1223
+ **First login not working**
1224
+ - Check `INITIAL_PASSWORD` in `.env`
1225
+ - If unset, fallback password is `123456`
1226
+
1227
+ **No request logs under `logs/`**
1228
+ - Set `ENABLE_REQUEST_LOGS=true`
1229
+
1230
+ ---
1231
+
1232
+ ## 🛠️ Tech Stack
1233
+
1234
+ - **Runtime**: Node.js 20+
1235
+ - **Framework**: Next.js 16
1236
+ - **UI**: React 19 + Tailwind CSS 4
1237
+ - **Database**: SQLite (better-sqlite3 / node:sqlite / sql.js fallback)
1238
+ - **Streaming**: Server-Sent Events (SSE)
1239
+ - **Auth**: OAuth 2.0 (PKCE) + JWT + API Keys
1240
+
1241
+ ---
1242
+
1243
+ ## 📝 API Reference
405
1244
 
406
1245
  ### Chat Completions
407
1246
 
408
1247
  ```bash
409
- curl http://localhost:20502/v1/chat/completions \
410
- -H "Authorization: Bearer YOUR_API_KEY" \
411
- -H "Content-Type: application/json" \
412
- -d '{
413
- "model": "kr/claude-sonnet-4.5",
414
- "messages": [
415
- { "role": "user", "content": "Write a Node.js hello world server." }
416
- ],
417
- "stream": false
418
- }'
1248
+ POST http://localhost:20128/v1/chat/completions
1249
+ Authorization: Bearer your-api-key
1250
+ Content-Type: application/json
1251
+
1252
+ {
1253
+ "model": "cc/claude-opus-4-6",
1254
+ "messages": [
1255
+ {"role": "user", "content": "Write a function to..."}
1256
+ ],
1257
+ "stream": true
1258
+ }
419
1259
  ```
420
1260
 
421
- ### 列出模型
1261
+ ### List Models
422
1262
 
423
1263
  ```bash
424
- curl http://localhost:20502/v1/models \
425
- -H "Authorization: Bearer YOUR_API_KEY"
1264
+ GET http://localhost:20128/v1/models
1265
+ Authorization: Bearer your-api-key
1266
+
1267
+ → Returns all models + combos in OpenAI format
426
1268
  ```
427
1269
 
428
- ## 常见问题
1270
+ ## 📧 Support
1271
+
1272
+ - **Website**: [9router.com](https://9router.com)
1273
+ - **GitHub**: [github.com/decolua/9router](https://github.com/decolua/9router)
1274
+ - **Issues**: [github.com/decolua/9router/issues](https://github.com/decolua/9router/issues)
1275
+
1276
+ ---
1277
+
1278
+ ## 👥 Contributors
1279
+
1280
+ Thanks to all contributors who helped make 9Router better!
1281
+
1282
+ [![Contributors](https://contrib.rocks/image?repo=decolua/9router&max=150&columns=15&anon=1&v=20260309)](https://github.com/decolua/9router/graphs/contributors)
429
1283
 
430
- ### Dashboard 打不开
1284
+ ---
431
1285
 
432
- - 检查 `20502` 端口是否被占用
433
- - 启动前显式设置 `PORT=20502`
1286
+ ## 📊 Star Chart
434
1287
 
435
- ### 登录失败
1288
+ [![Star Chart](https://starchart.cc/decolua/9router.svg?variant=adaptive)](https://starchart.cc/decolua/9router)
436
1289
 
437
- - 初始化环境时检查 `INITIAL_PASSWORD`
438
- - 如果已经有历史数据,请使用当前保存的管理员密码,不要假设存在默认密码
439
1290
 
440
- ### 工具看不到模型
441
1291
 
442
- - 确认供应商已连接
443
- - 确认当前 API Key 属于当前用户
444
- - 如果是子用户,检查 `Admin -> Users` 中配置的 allowed providers
1292
+ ## 🔀 Forks
445
1293
 
446
- ### Usage 没有数据
1294
+ **[OmniRoute](https://github.com/diegosouzapw/OmniRoute)** A full-featured TypeScript fork of 9Router. Adds 36+ providers, 4-tier auto-fallback, multi-modal APIs (images, embeddings, audio, TTS), circuit breaker, semantic cache, LLM evaluations, and a polished dashboard. 368+ unit tests. Available via npm and Docker.
447
1295
 
448
- - 确认工具接入的是 `http://localhost:20502/v1`
449
- - 确认使用的是 Dashboard 中生成的 Bearer API Key
1296
+ ---
450
1297
 
451
- ### 上游报错或配额不足
1298
+ ## 🙏 Acknowledgments
452
1299
 
453
- - 重新连接供应商
454
- - 切换到其他模型
455
- - 创建带 fallback 的 combo
1300
+ Built on the shoulders of giants:
456
1301
 
457
- ## 包信息
1302
+ - **CLIProxyAPI(https://github.com/router-for-me/CLIProxyAPI)** — original Go implementation that inspired this JavaScript port.
1303
+ - **[RTK](https://github.com/rtk-ai/rtk)** ![Stars](https://img.shields.io/github/stars/rtk-ai/rtk?style=flat&color=yellow) — Rust token-saver. 9Router ports its compression pipeline to JS → **−20-40% input tokens** on every request.
1304
+ - **[Caveman](https://github.com/JuliusBrussee/caveman)** ![Stars](https://img.shields.io/github/stars/JuliusBrussee/caveman?style=flat&color=yellow) by **[@JuliusBrussee](https://github.com/JuliusBrussee)** — viral *"why use many token when few token do trick"*. 9Router adapts its prompt → **−65% output tokens**.
458
1305
 
459
- - npm 包:[`@yina-npm/openrouterx`](https://www.npmjs.com/package/@yina-npm/openrouterx)
460
- - 启动命令:`openrouterX`
461
- - 代码仓库:[`hackyinge/9router`](https://github.com/hackyinge/9router)
462
- - 当前分支:[`feat/openrouterx-release`](https://github.com/hackyinge/9router/tree/feat/openrouterx-release)
463
- - 协议:MIT
1306
+ Huge thanks to these authors — without their work, 9Router's token-saving features wouldn't exist. ⭐ them on GitHub!
464
1307
 
465
- ## 作者
1308
+ ---
466
1309
 
467
- 如果你喜欢这个项目,欢迎到 GitHub 给 [`hackyinge/9router`](https://github.com/hackyinge/9router) 点个 Star。Star 会直接决定作者继续摸鱼写功能的速度。
1310
+ ## 📄 License
468
1311
 
469
- 作者除了写 AI 工具,也在番茄小说写小说。感兴趣可以在番茄小说搜索作者:**首席摸鱼**。
1312
+ MIT License - see [LICENSE](LICENSE) for details.
470
1313
 
471
- ## License
1314
+ ---
472
1315
 
473
- MIT,见 [LICENSE](LICENSE)。
1316
+ <div align="center">
1317
+ <sub>Built with ❤️ for developers who code 24/7</sub>
1318
+ </div>