RyabykinIlya/dsh-openrouter-spend ↗★ 0

dsh-openrouter-spend

展示OpenRouter账户的今日消费明细 适合使用OpenRouter API并需要按模型和密钥监控每日开销的用户。

套件
dsh-openrouter-spend
相容性
待驗證
版本
0.2.0
授權
MIT
最近更新
2026年10月6日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:RyabykinIlya/dsh-openrouter-spend

Configuration

Every field can be overridden in the profile's cordis.patch.yml row; the schema validates the row at activation and names the offending field.

FieldDefaultBoundsMeaning
credentialRefOPENROUTER_MGMT_API_KEYnon-empty stringCredentials reference holding the management key
apiBasehttps://openrouter.ai/api/v1https:// URLOpenRouter REST API root
refreshSeconds6010–3600, integerSeconds between OpenRouter refreshes
historyDays302–366, integerDays of history the summary window covers, today included
cbrUrlhttps://www.cbr.ru/scripts/XML_daily.asphttps:// URLCBR daily-rates sheet read for the RUB rate
rateRefreshSeconds360060–86400, integerSeconds between cbr.ru rate reads
timeoutMs150001000–120000, integerPer-request deadline against OpenRouter and cbr.ru

Viewing preferences (display currency, per-key filter, refresh interval override) are browser-local (localStorage).