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.

Usage & Billing ★ 0
View on GitHub ↗

Install

dsh plugin --profile web add github:vitkuz573/dsh-token-saver

Copied 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

Alternatives

mdfardeen11/dsh-peak-hour-tracker · GooDAnDReaDY/dsh-key-limits · 940842546/dsh-usage-billing

More plugins in Usage & Billing

Browse more in Usage & Billing

Guides for Usage & Billing plugins