dsh-goal-budget

Sets token, cost and wall-clock caps on a DSH goal and blocks that goal when a cap is reached, instead of only reporting the spend. The figures come from the usage events DSH records for the session, priced per model, with a pill beside the composer that opens a per-model breakdown. The official DeepSeek tariff is built in, with peak/off-peak pricing toggleable because it depends on the route; other models are priced from configured rates, and a model with no rate has its tokens counted and its name listed rather than being guessed at.

Overview

Sets token, cost and wall-clock caps on a DSH goal and blocks that goal when a cap is reached, instead of only reporting the spend. The figures come from the usage events DSH records for the session, priced per model, with a pill beside the composer that opens a per-model breakdown. The official DeepSeek tariff is built in, with peak/off-peak pricing toggleable because it depends on the route; other models are priced from configured rates, and a model with no rate has its tokens counted and its name listed rather than being guessed at.

Installation

Install from GitHub

dsh plugin --profile web add github:boom-10/dsh-goal-budget

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

Version compatibility

Compatibility is unconfirmed. Check the project documentation for supported versions.