sandbase-harness
sandbaseai
Local-first, self-hosted AI agent runtime and MCP bridge with sandboxed sessions, memory, credentials, audit/replay, and a local Console.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:GooDAnDReaDY/dsh-key-limits
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
🇬🇧 English • 🇨🇳 中文说明 • 🇷🇺 Русский
|
⭐ If you like this plugin, please star it on GitHub — it shows me that the plugin is useful to you and motivates me to keep developing it.
🐛 If you find a bug or would like to request a feature, open a GitHub issue in any language — I will review your proposal and implement useful suggestions in a future plugin version. |
AI developers and engineers frequently work across multiple LLM providers, corporate subscriptions, and token plan tiers simultaneously (such as OpenCode GO, Ollama Cloud, Qwen Cloud, Kimi, GLM, MiniMax, Cline, DeepSeek, OpenRouter, and Command Code).
Without ambient, real-time quota tracking inside DeepSeek Harness (DSH):
dsh-key-limits solves this by delivering ambient, distraction-free quota monitoring directly within the DSH Web UI. It focuses strictly on quota limits and subscription balances without heavy accounting ledgers, historical spending databases, or complex analytics.
graph LR
subgraph Client ["DSH Web Client"]
FC["FloatChip (Draggable Badge)"]
CB["ActiveKeyButton (Composer Bar)"]
SC["Settings Card (Plugin Slot)"]
M["Modals (All Limits & One Limit)"]
end
subgraph Backend ["Cordis Plugin Backend"]
Router["HTTP API Router (/dsh-key-limits)"]
CredStore["Encrypted Credential Storage"]
Updater["Loopback Plugin Updater"]
end
subgraph Providers ["AI Providers & Services"]
P1["OpenCode GO / Ollama / Qwen"]
P2["Command Code / Cline / GLM"]
P3["DeepSeek / OpenRouter / MiniMax"]
NPM["npmjs.org Registry"]
end
FC -->|Click| M
CB -->|Click| M
M -->|Poll Quotas (60s)| Router
SC -->|Save Credentials| Router
SC -->|Trigger Update| Updater
Router --> CredStore
Router -->|Parallel 12s Abort| P1
Router -->|Parallel 12s Abort| P2
Router -->|Parallel 12s Abort| P3
Updater -->|Loopback Check / Install| NPM
FloatChip)localStorage.ActiveKeyButton)conversation.composer.bar, priority 10).order): In settings, arrange the display sequence of accounts using intuitive Up/Down controls (▲ / ▼).activeOnTop): Automatically moves the account currently in use by the active conversation to the top of the list. Enabled by default.fmtReset)5d 5h 19m).4h 59m).| Provider ID | Name | Quota Windows | Authentication |
|---|---|---|---|
commandcode |
Command Code | Rolling 5h / Weekly / Monthly (GOAT, Pro, Max plans) | API key (user_... or token) |
opencode-go |
OpenCode GO | Rolling 5h / Weekly / Monthly | Session cookie (auth) & Workspace ID |
ollama |
Ollama Cloud | Session / Weekly / Monthly | API key & Session cookie |
qwen |
Qwen Cloud | 5h / 1-Week Token Plans | Session cookie & optional sec_token |
kimi |
Kimi for Coding | Weekly Quota Limit | API key (sk-kimi-...) |
glm |
GLM (Z.ai) | Daily / Monthly Quota | API key |
minimax |
MiniMax Coding Plan | Coding Plan Quota | API key (sk-cp-...) |
cline |
Cline | 5h / Weekly / Monthly | Bearer API token |
deepseek |
DeepSeek | Balance ($ / ¥) | API key (sk-...) |
openrouter |
OpenRouter | Balance ($ credits remaining) | API key (sk-or-...) |
Install the official package into your active DSH profile:
dsh plugin --profile web add @goodandready/dsh-key-limits
Restart DSH Web:
dsh web --profile web
settings.yaml)# ~/.dsh/profiles/web/settings.yaml
plugins:
'@goodandready/dsh-key-limits':
storageDir: ~/.dsh/storages/dsh-key-limits
refreshIntervalMs: 60000
activeOnTop: true
order: []
| Parameter | Type | Default | Description |
|---|---|---|---|
storageDir |
string |
~/.dsh/storages/dsh-key-limits |
Directory where subscription metadata and cached cards are stored. |
refreshIntervalMs |
number |
60000 (1 min) |
Polling frequency for refreshing quota windows from providers. |
activeOnTop |
boolean |
true |
Automatically pins the account matching the active chat session to the top of lists. |
order |
string[] |
[] |
User-defined sequence of subscription IDs for custom card ordering. |
# Build unified client bundle from src/client/
npm run build:client
# Run automated tests
npm test
.
├── lib/
│ ├── index.js # Cordis plugin entrypoint & HTTP routes
│ ├── client.js # Built client bundle
│ ├── cards.js # Card generation and formatting
│ ├── subs.js # Provider quota fetchers & normalization
│ ├── paths.js # Path resolution helpers
│ └── plugin-updater.js # Secure loopback updater
├── src/client/ # Source modules for browser client
│ ├── 01-prelude.js # Scoped CSS & React setup
│ ├── 02-locale.js # Multi-language dictionaries (en, zh, ru)
│ ├── 03-format.js # Humanized countdowns & color classes
│ ├── 04-modals.js # AllLimitsModal & OneLimitModal
│ ├── 05-bar.js # Composer bar ActiveKeyButton
│ ├── 06-float.js # Draggable FloatChip
│ ├── 07-settings.js # Settings card, reorder list & updater
│ └── 08-apply.js # DSH plugin bootstrap & slot registrations
├── cordis.patch.yml # Cordis plugin declaration
└── test/ # Test suite
MIT © GooDAnDReaDY
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: quota。