dsh-multi-key-rotation

给 MiniMax Token Plan 路由配置多个具名 API Key,插件按剩余配额轮换:单个 Key 额度耗尽、触发限流或鉴权失败时,路由切到池中下一个 Key 并重试本次请求。下一个 Key 按重置时间排序,周窗口最先重置的先用。每个 Key 的 5 小时与周两个窗口的剩余比例、距重置倒计时都列在设置页;输入框模型选择器前的胶囊显示当前所用 Key 的两个窗口。仅支持 minimax 与 minimax-cn 路由。

插件介绍

给 MiniMax Token Plan 路由配置多个具名 API Key,插件按剩余配额轮换:单个 Key 额度耗尽、触发限流或鉴权失败时,路由切到池中下一个 Key 并重试本次请求。下一个 Key 按重置时间排序,周窗口最先重置的先用。每个 Key 的 5 小时与周两个窗口的剩余比例、距重置倒计时都列在设置页;输入框模型选择器前的胶囊显示当前所用 Key 的两个窗口。仅支持 minimax 与 minimax-cn 路由。

安装方式

通过 npm 安装

dsh plugin --profile web add @danneleung/dsh-multi-key-rotation

Resolves a published tarball rather than cloning the repository, and installs without any extra setup. Swap `web` for your profile name if you run another one.

从 GitHub 安装

dsh plugin --profile web add github:DanneLeung/dsh-multi-key-rotation

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.

版本兼容情况

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