dsh-opencode-go-quota
A DSH Web plugin that displays OpenCode Go quota usage as a clickable progress ring beside the model selector.
Install
$ dsh plugin --profile web add <本目录绝对路径>Plugin Overview & Capabilities
AI-assisted organization based on the public repository snapshot. The content must be grounded in source evidence and does not replace compatibility or security verification.
Key Capabilities
- Adds a 22px quota progress ring to the left of the DSH Web model selector.
- Cycles between 5-hour, weekly, and monthly usage views when clicked.
- Shows usage percentage and reset countdown on hover.
- Uses green, blue, orange, and red states based on quota urgency, with red pulsing at 80% or higher.
- Refreshes quota data every five minutes and can force-refresh stale data after view switching.
- Reads an OpenCode Go API key from OPENCODE_GO_API_KEY or ~/.local/share/opencode/auth.json.
- Fetches usage from the OpenCode Go usage API and exposes it through an internal /ocg-quota/usage route.
- Injects one-time, tiered 5-hour quota warnings into agent system prompts, with configurable thresholds and escalation steps.
- Displays a gray error state and error reason when quota data is unavailable.
Useful For
- Monitor remaining OpenCode Go quota without leaving the DSH Web chat interface.
- Switch between short-term, weekly, and monthly quota windows before starting work.
- Prompt agents to warn users or pause work when 5-hour quota consumption reaches configured thresholds.
- Use alongside dsh-token-ledger to distinguish quota availability from token-level usage tracking.
Who It Fits
- DeepSeek Harness Web users with an OpenCode Go account.
- Users who want quota visibility near the chat model selector.
- Users managing agent tasks around OpenCode Go quota limits.
Documented Limitations
- Requires DSH Web and installation under the web profile.
- Requires a valid OpenCode Go key from OPENCODE_GO_API_KEY or the OpenCode auth file.
- Usage retrieval depends on the official OpenCode Go usage endpoint.
- Quota data is cached according to configurable cache settings, so displayed data may not be instantaneous.
- On Windows, host shell subprocess execution can be blocked by the DSH Windows ACL sandbox configuration.
- Prompt injection concerns the 5-hour usage window; weekly and monthly thresholds are described for ring warnings.
DSH Compatibility
Version-specific runtime evidence collected by DSH Plugin. A missing result means we have not tested that combination yet.
Security Signals
Objective signals discovered from package metadata and source inspection. These are not a guarantee that a plugin is safe.
package.json declares 0 runtime, 0 development, 0 peer, and 0 optional dependencies.
package.json declares DSH bundle metadata.
GitHub reports the repository license as MIT.
A root package.json was captured and can be inspected by the registry.
Public GitHub source metadata is available for this registry snapshot.
Source & Registry Notes
Public provenance, Registry classification, and the latest source check for this entry, kept separate from runtime verification.
- Source repository
- GLFzr/dsh-opencode-go-quota
- Registry source
- GitHub · dsh-plugin topic
- Registry classification
- Plugin
- Source checked
- 38ddb2a · 2026-09-12
This project is independently indexed from public source information. DSH Plugin is not affiliated with DeepSeek or the plugin author. Always check the author repository before installation.
Repository Activity
- GitHub stars
- 6GitHub stars
- Forks
- 0
- Open issues
- 1
- Last commit
- 2026-08-16
- Last release
- 2026-08-15
Related DSH Plugins
Ranked by overlapping capabilities, use cases, plugin type, categories, and DSH profile.
A customizable glassmorphism theme plugin for the DeepSeek Harness web UI.
View plugin →A terminal workspace and Claude Code style TUI surface for DeepSeek Harness.
View plugin →A bilingual DeepSeek Harness cost-tracking plugin with session and daily costs, budgets, pricing management, balance lookup, and coding-plan quota displays.
View plugin →DeepSeek Harness 破甲:让所有模型都能破甲,不同模型可换不同提示词;默认提示词面向国模「小码酱」。Jailbreak for every model — swap prompts per model. 求 Star 收藏 ⭐
View plugin →