dsh-token-saver-100

Refuses every conversation model call and streams back “恭喜你,又省下了token!” instead, so a turn spends no tokens; a settings page counts how many calls it has refused. Requests that declare a purpose, such as chat titles and compaction, are left alone. Its HTTP routes have no DSH access check, so a web page open in your browser could call them.

Overview

Refuses every conversation model call and streams back “恭喜你,又省下了token!” instead, so a turn spends no tokens; a settings page counts how many calls it has refused. Requests that declare a purpose, such as chat titles and compaction, are left alone. Its HTTP routes have no DSH access check, so a web page open in your browser could call them.

Installation

Install from GitHub

dsh plugin --profile web add github:Frost-wu/dsh-token-saver-100

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.

Installation notes

  • May run terminal commands