dsh-codex-usage
Run the following command in DeepSeek Harness:
dsh plugin install scientisbo/dsh-codex-usage
Paste the following prompt into your AI chat to install this plugin:
Run dsh plugin install scientisbo/dsh-codex-usage in DeepSeek Harness to install this plugin. Source: https://github.com/scientisbo/dsh-codex-usage
About this plugin
When you delegate everyday coding, research, and test-running tasks to the official Codex subagent inside DeepSeek Harness, the ChatGPT Plus rolling windows of 5 hours, 7 days, and a month can be burned through before you notice. dsh-codex-usage closes that blind spot: it aggregates the used percentage and reset countdown for all three windows, together with your DeepSeek account balance (total, credits, and top-up, auto-selecting the currency with a positive balance), into a single read-only JSON endpoint so the companion UI panel only needs to render.
The entire capability lives in one GET /api/dsh-usage/overview. It reads account/read and account/rateLimits/read through a pinned @openai/codex app-server protocol, then calls the official DeepSeek /user/balance endpoint. A five-minute in-memory cache keeps upstream calls light, and ?refresh=1 forces a bypass. Security is baked in: the server accepts only loopback addresses (127.x, ::1, localhost) and rejects everything else with a 403; it never reads a request body or writes state; the DeepSeek API key is resolved through the DSH credentials service and is never written to disk or logs; Codex quota comes straight from the locally logged-in ~/.codex directory with no extra secret required.
It is built for developers who run DSH alongside the official Codex subagent (\u0040deepseek-ai/dsh-subagent-codex) to share token load, and who want a live dashboard to watch both quotas in real time. Pair it with the dsh-deepseek-usage floating panel and you get a glanceable view of 5-hour / 7-day / monthly window usage, reset countdowns, and DeepSeek balance — all without touching a single API key in the browser.
Use Cases
- Monitoring 5h / 7d / monthly Codex subscription windows while delegating tasks via the Codex subagent
- Checking DeepSeek balance and ChatGPT quota in a single glance
- Querying usage from a loopback-only, read-only, zero-secret endpoint
Best For
- Developers who delegate coding to the official Codex subagent in DSH
- Users with both DeepSeek and ChatGPT Plus subscriptions who want to avoid quota overruns
- Ops-minded engineers who demand loopback-only, read-only, no-secret-on-disk boundaries
Related Plugins
Adds an Auto approval mode on the official workspace-write sandbox, classifying semantic risks, asking when ambiguous, and denying destructive operations.
Undo/rollback system for DSH: config & plugin snapshots, one-click undo/redo/restore, message-level revert, secret masking, safe mode, and offline WebUI/GUI/CLI rescue tools for when DSH won't start.
Packages all 87 SKILL.md files from upstream reverse-skill as a DeepSeek Harness plugin that auto-registers them for authorized reverse engineering, penetration testing, and security research.
Dockyard DSH is a native DeepSeek Harness plugin that unifies official OAuth/client sessions for Codex, Antigravity, Grok, Claude, and Cursor, providing account pool, model catalog, and quota status.