dsh-token-steward

在本机运行一个 OpenAI 兼容网关。几个上游放进同一个 base URL,请求进来后按能力标签、上下文窗口和当前可用状态挑型号。遇到 429、5xx 或上下文超限,请求在同一次调用内沿降级链换到下一个上游。每次调用的 token 用量与费用按路由记在本地账本里,厂家、密钥和价目在设置页维护。

插件介绍

在本机运行一个 OpenAI 兼容网关。几个上游放进同一个 base URL,请求进来后按能力标签、上下文窗口和当前可用状态挑型号。遇到 429、5xx 或上下文超限,请求在同一次调用内沿降级链换到下一个上游。每次调用的 token 用量与费用按路由记在本地账本里,厂家、密钥和价目在设置页维护。

安装方式

从 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.

版本兼容情况

兼容性待确认。可前往项目文档查看支持版本。

安装提示

  • 可能调用终端命令