Repository navigation
Releases
Releases · wakeup595626-cmyk/dsh-token-ledger
v0.1.1 - initial open-source release
中文
首个开源版本。
- 跨 API 提供商的全局累积 token 账本,与官方
dsh-token-meter同契约、提供商无关 - 实时:订阅
session/event增量消费所有活跃会话;历史:启动时异步回填所有session.jsonl.zstd(拼 zstd 帧、逐帧解压、按 seq 去重) - 悬浮面板(可拖拽、位置持久化)+ HTTP API;统一以「亿」为单位(1e8 tokens)展示
- 数据落盘
~/.dsh/token-ledger/ledger.json(tmp + rename 原子写、定时防抖) - 所有路径 try/catch,统计异常绝不影响会话主流程
English
First open-source release.
- A cumulative token usage ledger across every API provider, provider-agnostic and aligned with the official
dsh-token-meterevent contract - Live: subscribes to
session/eventand consumes every active session incrementally. History: on startup it backfills everysession.jsonl.zstd(concatenated zstd frames, decompressed frame by frame, de-duplicated by seq). - Draggable floating panel with persisted position, plus an HTTP API
- Persists to
~/.dsh/token-ledger/ledger.jsonwith atomic tmp + rename writes - Every code path is wrapped in try/catch so statistics can never break a session
BSD-3-Clause licensed. Unofficial plugin not affiliated with, or endorsed by, DeepSeek.