Credentials. The DeepSeek API key must be stored in Harness credentials, and you should never paste it into shared logs, screenshots, or agent prompts.
Who it is forA developer who runs DeepSeek Harness Web GUI daily and wants to see remaining credit and token burn without leaving the app.
The problemChecking the DeepSeek balance and token usage means opening a separate dashboard, so spend can go unnoticed during long sessions.
The outcomeA pinned dock shows the balance, today and month token totals, and cache hit rate inside the Harness Web GUI, refreshing in the background every 5 minutes.
What you need first
- DeepSeek Harness host, version 0.2.0-rc.2 for v0.3.1 of this plugin, with the dsh CLI installed
- An API key for each provider you want to query, configured through Harness credentials (for example DEEPSEEK_API_KEY)
- Node.js and npm only if you plan to run the offline tests or develop the plugin
Steps
- Add your DeepSeek key in Harness credentials as DEEPSEEK_API_KEY, since the default credential ref for DeepSeek is that name.
- Run
dsh plugin --profile web add "github:Aisland-SJL/dsh-usage"to install the plugin into the Web profile. - Fully restart the web server with
dsh web, then hard-refresh the browser. - Open the gear in the dock to choose which widgets to pin, collapse, or hide.
- Click the refresh control in the dock to re-query the balance right away.
Prompt for your agent
In the repo Aisland-SJL/dsh-usage, follow the install steps for the web profile and confirm the dock shows a DeepSeek balance value after a hard refresh of <dsh web URL>. Report the balance shown and whether the status is a number or a not-configured message.
Caveat. The README says the plugin targets DeepSeek Harness 0.2.0-rc.2 and that a full 0.1.x-host regression has not been performed, so older hosts may not work.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for Aisland-SJL/dsh-usage and "Watch DeepSeek balance and daily tokens in the Harness dock"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer