dsh-token-steward

Runs an OpenAI-compatible gateway on your own machine. Several upstreams sit behind one base URL, and each request picks a model from capability tags, context window and current availability. A 429, a 5xx or a context overflow moves the request along the fallback chain inside the same call. Token usage and cost are recorded per route in a local ledger, and vendors, keys and prices are edited on a settings page.

Overview

Runs an OpenAI-compatible gateway on your own machine. Several upstreams sit behind one base URL, and each request picks a model from capability tags, context window and current availability. A 429, a 5xx or a context overflow moves the request along the fallback chain inside the same call. Token usage and cost are recorded per route in a local ledger, and vendors, keys and prices are edited on a settings page.

Installation

Install from GitHub

dsh plugin --profile web add github:JiamingShi-JsPhys/dsh-token-steward

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

Version compatibility

Compatibility is unconfirmed. Check the project documentation for supported versions.

Installation notes

  • May run terminal commands