Introduction¶
DeepSeek Harness (DSH) adopts a plugin-based architecture. When developing in local or intranet environments, teams need to monitor actual Token consumption and costs at every step for budget control and cost accounting. The dsh-team-reporter plugin reports local usage data to your self-hosted team dashboard, keeping data privacy fully under your control.
Plugin Overview¶
This is a DSH plugin maintained by CHENKEYI-MAKER (MIT License). Its purpose is to collect local Token usage records and report them to your self-hosted team dashboard, allowing the team to view usage and costs centrally.
Core Features¶
- Per-call Collection:Collects data from single calls in the local
session/eventstream, including input_tokens, cache_read_tokens, output_tokens, model name, and project directory. - Offline Queue:Records are written to a disk queue. Even if the process restarts or the network is interrupted, data can be replayed upon recovery, and an idempotent design prevents duplicate counting.
- Privacy & Security:Only sends Token counts and cost information. The plugin never sends prompts, replies, file contents, or any credentials.
- Skill Sync:Supports syncing team skills from the server. The plugin syncs every 30 minutes using an atomic replacement strategy. The server is the source of truth for skills; sync failures will not delete locally installed skills.
Installation and Activation¶
-
Obtain the Plugin Package
Downloaddsh-team-reporter-0.2.0.tgzfrom the team download page or the Releases tab. -
Install the Plugin
Use the DSH CLI command to install. The path must be an absolute path (pnpm will reject relative paths):
dsh plugin --profile desktop add "C:\Users\you\Downloads\dsh-team-reporter-0.2.0.tgz"
Alternatively, in the DSH sidebar: **Plugins** -> **Add Plugin** -> Paste the absolute file path -> Install.
- Restart and Bind
You need to restart DSH after installation. Once restarted, a gray dot will appear in the bottom right corner. Click it, enter the Team Server URL and the Enrollment Code assigned by the administrator, and click “Bind”. After successful binding, the gray dot turns green, and reporting begins.
Configuration and Notes¶
- Environment Requirements:Requires Node.js >= 22.5.0.
- Configuration Source:Server configuration (such as price lists and refresh intervals) is learned from the server via the local
/api/v1/configinterface. No manual local configuration is required. - Privacy Details:The only data leaving the local machine is Token counts and a hash of the session ID. The Workspace field contains only the project directory name, not the full path.
- Enrollment Code:The Enrollment Code is one-time use and belongs to a specific individual. Reinstallation or machine changes require requesting a new code from the administrator.
- Skill Directory:Server-synced skills are stored in
~/.dsh/skills/dsh-team/, while local personal skills are stored in~/.dsh/skills/my-skills/. The two do not interfere with each other.
Conclusion¶
If you need to run DSH locally while allowing the team lead to see actual Token consumption and costs, and you insist on data privacy, you can install this plugin. It ensures data reliability through a local queue and idempotent replay mechanism, and ensures privacy and security by transmitting only counts.