vitkuz573/dsh-token-saver
Two halves of one DSH bundle: a host-side peak-hour guard that rejects every proposed model request made while the provider bills peak rates, and a browser half with a Settings page that toggles the harness's token-saving machinery plus a savings strip under the composer that prices the session and steers the guard.
dsh-token-saver reduces wasted spend at the provider. Its host half is a peak-hour guard: it listens to the agent/pre-step waterfall and returns { kind: 'reject' } for every proposed model request made while the provider bills peak rates, so requests that would be charged at peak pricing are refused. Its browser half is the Settings page that switches the harness's token-saving machinery on and off, plus a savings strip under the composer that prices the session and steers the guard.
Install
dsh plugin --profile web add github:vitkuz573/dsh-token-saverCopied verbatim from the README's Install block, which follows it with dsh web. The README stresses that host code is not hot-reloaded, so restart the host process after an edit to index.js; client-only changes appear on the next page load.
Compatibility
Two halves of one DSH bundle: a host half (index.js) and a browser half (client.js). The host half listens on the agent/pre-step waterfall; the browser half adds a Settings page and a savings strip under the composer.
Details
- Repo: vitkuz573/dsh-token-saver
- Category: Usage & Billing
- Stars: 0
- Version: GitHub repo vitkuz573/dsh-token-saver (install is a github: spec to the repo itself).
Alternatives
mdfardeen11/dsh-peak-hour-tracker · GooDAnDReaDY/dsh-key-limits · 940842546/dsh-usage-billing