Credentials. Several provider keys are involved, and the OpenRouter key must be a Management Key, so check each key's scope before storing it in Harness.
Who it is forA person who pays for more than one model provider and wants all remaining credit in one place.
The problemEach provider has its own billing page, so remaining balance is easy to forget until a request fails.
The outcomeThe Balance widget shows each configured provider's balance, and unsupported providers show an explicit no-public-balance state.
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 OPENROUTER_MANAGEMENT_KEY (a Management Key, not an inference key) and ZAI_API_KEY to Harness credentials.
- Confirm Moonshot / Kimi profiles under llm-pi-ai exist, since they are discovered automatically and reuse their apiKeyEnv.
- Install with
dsh plugin --profile web add "github:Aisland-SJL/dsh-usage"and restartdsh web. - Use the provider picker in the Balance widget to switch between providers.
- Press refresh to force an upstream query for the selected provider.
Prompt for your agent
In the repo Aisland-SJL/dsh-usage, list the providers from the providers endpoint on <dsh web URL> and report each balance status. Verify that any provider without a key is reported as not configured rather than showing a guessed value.
Caveat. The README says real account queries are separate acceptance work and that offline tests do not establish acceptance for every account.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for Aisland-SJL/dsh-usage and "Track balances for OpenRouter, Z.ai, and Kimi together"
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