TokenLedger Copyright (c) 2026 TokenLedger contributors This product includes software developed by the dsh-usage-stats project. dsh-usage-stats — https://github.com/Ychris12138/dsh-usage-stats Copyright (c) 2026 dsh-usage-stats contributors Licensed under the MIT License. `src/balance.js` adapts the response-shape parsers for OpenRouter, Moonshot/Kimi, and Z.ai/GLM from `dsh-usage-stats/lib/balance.js`. TokenLedger extends them with origin-based scheme selection, account collapsing, OpenRouter Management Key guidance, and conservative currency handling. This product's understanding of the DSH event contract is derived from the published type declarations of the following MIT-licensed packages, which are not redistributed here: @deepseek-ai/dsh-llm @deepseek-ai/dsh-session @deepseek-ai/dsh-session-persistence @deepseek-ai/dsh-token-meter "DeepSeek" and related marks belong to their respective owners. TokenLedger is an independent third-party project with no affiliation with, sponsorship by, or endorsement from DeepSeek.