dsh-web
zhu1090093659/dsh-webDeepSeek Harness(DSH)Web 插件聚合生态包 · 一切皆插件,创意工坊分发(dsh-market.com)
Desktop app for DeepSeek Harness with a live energy/carbon console: measure local GPU inference, estimate cloud APIs via published coefficients, alert on waste
An open-source desktop app for DeepSeek Harness (DSH): use AI as usual, and see exactly how much electricity, carbon, and money every conversation costs.
Whether you run local models or cloud APIs (DeepSeek / OpenRouter / your own gateway…), it accounts for the energy, carbon, and cost of every request, keeps them visible, and warns you when things get expensive.
中文 · English
| Page | What you see |
|---|---|
| Console | Local carbon, local energy (estimate and measurement side by side), cloud carbon (published-coefficient estimate), API cost saved; last-30-days and per-task-turn carbon bar charts; live hardware rings |
| Sessions | Tokens, energy, carbon, electricity cost, and API savings per session |
| Hardware | Full NVIDIA telemetry (VRAM / utilization / temperature / power, multi-GPU); integrated GPUs as an extension; CPU / memory curves |
| Alerts | Overspend and anomaly warnings, see below |
| Data sources | Connect OpenRouter or your own relay to pull actual spend and token usage |
| Reference data | Every coefficient with its source and year, all verifiable |
| Ledger | Per-step JSONL detail with a measured-energy column, one-click CSV export |
| Logs / Settings | Harness output; baseline settings for grid intensity / electricity price / API prices |
A carbon card pinned to the top-right of the chat window: session carbon / energy / electricity cost, API cost saved, local-vs-cloud comparison, per-turn energy bars, and all-session totals.
Ships with a Qwen2.5-0.5B (CPU inference) launcher script and provider config — one command starts the server and you get the full "local model + measured accounting" loop; swap in a bigger model by changing one path.
| Console overview | In-chat dashboard |
|---|---|
| Hardware (multi-GPU NVIDIA) | Alerts |
|---|---|
| Sessions | Data sources (relay) |
|---|---|
| Reference data (coefficients & sources) | Ledger detail |
|---|---|
Grab from Releases:
| File | Notes |
|---|---|
Green DSH Desktop Setup x.x.x.exe | Windows installer (chooseable install dir, desktop shortcut) |
Green DSH Desktop-x.x.x-win.zip | Portable build — unzip and run |
The installer is unsigned, so SmartScreen will interrupt the first launch: More info → Run anyway. Upgrades keep your sessions / credentials / ledger / settings automatically.
To try a local model:
powershell -ExecutionPolicy Bypass -File scripts\start-local-model.ps1
then pick "本地 llama.cpp(Qwen2.5-0.5B)" in the app (download the model first — see the notes inside the script).
Every coefficient carries its source and year:
| Category | Value | Source |
|---|---|---|
| China grid | 0.5777 kgCO₂e/kWh (2024) | MEE, 2024 power carbon footprint factor |
| US grid | 0.3497 kgCO₂e/kWh | US EPA eGRID 2023 |
| Cloud per-token | 0.0006 Wh / output token | Epoch AI 2025 |
| Cloud per-request | 0.24 Wh / 0.03 gCO₂e | Google Cloud, 2025-08-21 |
| Local calibration | H20 request-level fit (R² ≥ 0.998) | this project's experiments |
Honest boundaries: without GPU measurement, local figures are token-profile estimates rather than hardware measurements; cloud figures are estimates from published coefficients, not vendor measurements; carbon = energy × grid intensity is an engineering estimate, not certified accounting.
git clone <this repo>
cd green-dsh-desktop
npm install
# 1) Pack the green-meter / dashboard plugins (needs a DSH source checkout; set DSH_CHECKOUT to point at it)
npm run vendor:plugins
# 2) Assemble the bundled harness (npm-installs the DSH distribution plus local plugins)
npm run pack:harness
# 3) Drop in the Node runtime (copy your node.exe into resources/runtime/)
# 4) Run / package
npm start
npm run dist
resources/harness/dsh-home inside the install directory — back it up before uninstalling (upgrades preserve it automatically).MIT