Skip to content
Proyek

Tentang

9RouterX VS Code extension - model picker, status bar, dashboard link

AI dan pembelajaran mesin

Cara angka ini diukur

Yang dapat Anda lakukan

  • Model picker (native Copilot Chat): contributes a languageModelChatProviders vendor so the gateway's models appear in VS Code's model picker alongside the built-in ones.
  • Status bar quota and health: a status-bar item shows whether the gateway is reachable and how many models it serves; click it to open the dashboard.
  • Open dashboard: the 9routerx.openDashboard command opens the gateway UI on port 20128.
  • Configurable: base URL, API key, and an optional model or combo name to route to.

Pertumbuhan bintang terukur

dalam 24 jam
Mengumpulkan riwayat
dalam 7 hari
Mengumpulkan riwayat
dalam 15 hari
Mengumpulkan riwayat
dalam 1 bulan
Mengumpulkan riwayat

Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.

README.md

Asli

9RouterX VS Code Extension — Model Picker + Status Bar for a Self-Hosted OpenAI-Compatible AI Gateway

9RouterX VS Code Extension connects Visual Studio Code to a self-hosted 9RouterX gateway, so your local gateway's models appear in the native model picker and a status-bar item reports gateway health and model count. It is a small companion extension for developers who run 9RouterX locally and want their coding assistant to route through it.

9RouterX itself is a self-hosted, OpenAI-compatible AI gateway that compiles into a single Go binary and routes requests across subscriptions, cheap models, and free models with automatic failover. This extension is a thin client for that gateway; the gateway does the routing, failover, and budgeting.

Install

Build and install from this repository (the extension is version 0.1.0):

npm install
npm run compile
npx @vscode/vsce package

Install the produced 9routerx-0.1.0.vsix via Extensions → … → Install from VSIX. Open VSX publish instructions for the owner are in PUBLISH-OPENVSX.md.

Features

  • Model picker (native Copilot Chat): contributes a languageModelChatProviders vendor so the gateway's models appear in VS Code's model picker alongside the built-in ones.
  • Status bar quota and health: a status-bar item shows whether the gateway is reachable and how many models it serves; click it to open the dashboard.
  • Open dashboard: the 9routerx.openDashboard command opens the gateway UI on port 20128.
  • Configurable: base URL, API key, and an optional model or combo name to route to.

Requirements

  • A running local 9RouterX gateway (default http://127.0.0.1:20128).
  • A gateway API key (sk-...) created in the dashboard under Settings → API Keys.
  • VS Code ^1.90.0.
  • Node.js 22 to build from source.

Configuration

Setting Default Description
9routerx.baseUrl http://127.0.0.1:20128 Base URL of the local 9RouterX gateway.
9routerx.apiKey (empty) Gateway API key (sk-...).
9routerx.model (empty) Model or combo name to route to; empty lists every model the gateway exposes.

Links

What is 9RouterX Extension

9RouterX Extension is a Visual Studio Code extension that registers a language model provider backed by a local 9RouterX gateway, adds a status-bar item that reports gateway reachability and model count, and provides a command that opens the gateway dashboard on port 20128. The gateway itself handles provider routing, failover, and per-key budgeting; the extension forwards requests to it over the local machine.

License

MIT — see LICENSE.

Jelajahi proyek terkait

Memuat…