All plugins

deepseek-cost

A one-number status-bar chip for the running session's DeepSeek spend, plus the tariff window and the account balance in its tooltip. Prices the session itself from its token counts (input, output, cache-hit share) and the official DeepSeek rate, so the estimate halves off-peak exactly as the bill does Names the window it is pricing in: peak (01:00-04:00 and 06:00-10:00 UTC, weekdays), off-peak, or weekend Shows the account balance from api.deepseek.com/user/balance, amber below CNY 5; converts to roubles in the Russian UI and to dollars elsewhere, both rates being plugin settings (config_schema) rather than hard-coded numbers Reports no spend at all when the session runs on a non-DeepSeek model instead of inventing one Desktop-only chip: no agent tools, hooks, middleware, database reads or telemetry English and Russian follow the app language; toggles from the status bar's own visibility menu Disclosure — Makes one outbound call, GET https://api.deepseek.com/user/balance, with your DeepSeek API key as a bearer token; the key is read only through Hermes' profile-scoped secret store and never reaches the renderer, logs or disk. Reads the focused session's token counts as Desktop already shows them; no message text, no database, no telemetry.

dmrn210Desktopv1.2.1Updated 1 hour ago

About

A one-number status-bar chip for the running session's DeepSeek spend, plus the tariff window and the account balance in its tooltip.

  • Prices the session itself from its token counts (input, output, cache-hit share) and the official DeepSeek rate, so the estimate halves off-peak exactly as the bill does
  • Names the window it is pricing in: peak (01:00-04:00 and 06:00-10:00 UTC, weekdays), off-peak, or weekend
  • Shows the account balance from api.deepseek.com/user/balance, amber below CNY 5; converts to roubles in the Russian UI and to dollars elsewhere, both rates being plugin settings (config_schema) rather than hard-coded numbers
  • Reports no spend at all when the session runs on a non-DeepSeek model instead of inventing one
  • Desktop-only chip: no agent tools, hooks, middleware, database reads or telemetry
  • English and Russian follow the app language; toggles from the status bar's own visibility menu Disclosure — Makes one outbound call, GET https://api.deepseek.com/user/balance, with your DeepSeek API key as a bearer token; the key is read only through Hermes' profile-scoped secret store and never reaches the renderer, logs or disk. Reads the focused session's token counts as Desktop already shows them; no message text, no database, no telemetry.

Hermes DeepSeek Cost

A status-bar chip for Hermes Agent Desktop: what the running
session is costing you on DeepSeek, which tariff window is active, and how much is left on the account.

The chip in the status bar — a real screenshot, not a mock-up

hermes plugins install dmrn210/hermes-deepseek-cost

The chip itself stays tiny — one number, the estimated price of the running session. Hover it and you get one
line with everything else, in the app's language:

сессия ≈¥0,571 • непик • баланс ¥39,14 ≈ 523₽
session ≈¥0.571 • off-peak • balance ¥39.14 ≈ $5.89

The money after the balance is a convenience: roubles in the Russian UI, dollars everywhere else.
Both rates are plugin settings — change them in Settings ▸ Plugins ▸ DeepSeek Cost or with
hermes plugins config deepseek-cost; nothing in the code needs touching, and no restart.

Renamed from deepseek-quota in 1.2.0: the chip shows spend and balance, not a quota. GitHub redirects
the old URL, but the plugin id changed — reinstall once (hermes plugins uninstall deepseek-quota,
then the install command above).

What it does

  • Session spend, live. Computed from the session's own token usage (input, output, cache_hit_pct) against the official DeepSeek price list. It recomputes on every render, so it grows while the model works.
  • The right price window. DeepSeek halves its prices off-peak; the chip knows the rule (peak 01:00–04:00 and 06:00–10:00 UTC, Monday–Friday) and prices accordingly. Weekends are off-peak all day. The subtitle tells you which window you are in.
  • Account balance. A small local backend calls GET https://api.deepseek.com/user/balance; the chip shows the remaining yuan and a rough rouble equivalent. Below ¥5 the chip turns amber.
  • Refuses to guess. On any model that is not DeepSeek the price is hidden (≈—) — a session on another provider must not be billed at DeepSeek rates. The balance stays, because it belongs to the account, not the model.
  • Follows the app language. English and Russian are bundled and switch with the app's own language setting.

It does not talk to DeepSeek from the renderer: the API key stays inside the Hermes gateway process, the desktop half only receives parsed numbers.

Install

hermes plugins install dmrn210/hermes-deepseek-cost

That is the whole thing: the repo is a Hermes unified package — plugin.yaml manifest,
desktop/plugin.js desktop half, dashboard/ balance backend — so the installer recognises it,
clones it into
<HERMES_HOME>/plugins/deepseek-cost, enables it and Hermes publishes the desktop half into
<HERMES_HOME>/desktop-plugins/deepseek-cost. Restart Hermes once afterwards, because the Python
backend is mounted at startup.

No plugin installer, or offline? Unpack the zip and run install.ps1 (Windows) or install.sh
(macOS/Linux) from the unpacked folder, then add deepseek-cost to plugins.enabled yourself.
Full steps and troubleshooting: INSTALL.md.

Configure

The exchange rates are settings, not code: open Settings ▸ Plugins ▸ DeepSeek Quota in the
app (the form comes from the plugin's config_schema), or run hermes plugins config deepseek-cost in a terminal. Changes apply on the next balance refresh — no restart, no file
editing. The constants in desktop/plugin.js are only the defaults used when no setting is set.

The rest lives in <HERMES_HOME>/plugins/deepseek-cost/desktop/plugin.js and hot-reloads on save — no restart:

whatwheredefault
roubles per yuan (Russian UI)setting rate_rub_per_cny13.3657
dollars per yuan (other languages)setting rate_usd_per_cny0.1504, mid-market
flash prices, ¥ per 1M tokens (cache / miss / output)const FLASHoff-peak 0.02 / 1 / 4, peak 0.04 / 2 / 8
pro pricesconst PROoff-peak 0.15 / 4.4 / 13.2, peak 0.29 / 8.8 / 26.4
peak windows, minutes UTCPEAK_UTC_WINDOWS[60, 240], [360, 600]

The balance poll interval is _TTL_S in dashboard/plugin_api.py inside the package (45 s, cached server-side); changing that file needs a restart.

The API key is read only through Hermes' own profile secret scope (agent.secret_scope.get_secret), so a running gateway never shows one profile's balance with another profile's key. Swap the key and the balance follows the new account on the next refresh; with no key the chip says balance — (key not set).

How it compares

If you want history rather than a live price, there is a fuller neighbour:
deepseek-meter (MIT, in the Hermes
plugin catalog). It shows the balance, the context-window load and token/cost totals for today,
the last 7 days and all time, split per model, with a click-through panel and eight languages.

This plugin deliberately stays smaller, and differs in one substantive way: it prices the
session itself
, from the token counts and the official DeepSeek rate, and it knows the peak /
off-peak window — the same tokens cost twice as much at peak. deepseek-meter reports the cost
Hermes estimates in USD, which is a flat rate and does not change with the time of day.

So: history, aggregates and per-model breakdown → deepseek-meter. One number that tells you what
this session is costing right now, at the price actually in effect → this plugin. Two chips can
live side by side if you want both; they read the same balance endpoint independently.

Disclosure

What this plugin touches, in full:

  • Network: exactly one outbound call — GET https://api.deepseek.com/user/balance with the
    bearer token. Nothing else leaves the machine, and there is no telemetry.
  • Credentials: the key is read through Hermes' own profile-scoped route
    (agent.secret_scope.get_secret("DEEPSEEK_API_KEY")) and nowhere else — no .env parsing, no
    other file lookup. If the request has no profile scope bound, or the key is absent, the chip
    reports key not set instead of guessing. The key is never returned to the renderer, never
    logged and never stored by the plugin.
  • Local reads: the session's token counts and cache-hit share, as Hermes already streams them
    to the desktop (host.state.focusedUsage). No database, no message text, no file reads.
  • Writes: none. The plugin registers a status-bar element and keeps nothing on disk.

Honest limits

  • This is an estimate from token counts, not an invoice. Cached-token accounting is reconstructed from the reported hit rate, so expect small drift against the DeepSeek console.
  • PRC public holidays are not modelled: on those days the vendor charges off-peak prices while the chip may still think it is peak.
  • A session that starts inside one window and runs into the next is priced entirely by the window it is in when rendered.
  • The rouble and dollar figures are a fixed rate you set, not a live quote: they answer "what did that cost me", not "what does the exchange rate say today".
  • If you keep several DeepSeek keys in a credential pool, the chip reads the one key the secret scope resolves for the active profile; it does not rotate through the pool. The balance cache is per account, so switching profile or key shows the new account immediately.
  • The balance is per account, not per key: two machines with two keys on the same account show the same number and spend from the same wallet.
  • Built against Hermes Agent v0.23.4's plugin API. That API is young; a future release may need a fix here.

Layout

plugin.yaml                agent manifest: version, license, requires_hermes, requires_env
desktop/plugin.js          the chip (no build step, plain ESM + jsx)
dashboard/plugin_api.py    GET /balance → api.deepseek.com/user/balance
dashboard/manifest.json    dashboard plugin manifest
docs/chip.png         what the chip looks like in the status bar

Hermes installs the package into <HERMES_HOME>/plugins/deepseek-cost and copies its desktop/
folder into <HERMES_HOME>/desktop-plugins/deepseek-cost, which is where the app loads desktop
plugins from.

License

MIT — see LICENSE. Use it, copy it, change it; keep the copyright notice.

README from the reviewed commit f60156c; it updates when the author re-pins.

Developer Mode

Explore built-in Hermes toolsets and actions.

HermesAgent

Developer?

Create a Hermes extension for Desktop or agent workflows.

Developer Section