RyabykinIlya/dsh-openrouter-spend ↗★ 0
dsh-openrouter-spend
DeepSeek Harness plugin: shows what the OpenRouter account actually charged today — under the composer and in Settings, split by model and API key. 适合使用OpenRouter API并需要按模型和密钥监控每日开销的用户。
インストール
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:RyabykinIlya/dsh-openrouter-spendドキュメント
README 全文を読む ↗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.
| Field | Default | Bounds | Meaning |
|---|---|---|---|
credentialRef | OPENROUTER_MGMT_API_KEY | non-empty string | Credentials reference holding the management key |
apiBase | https://openrouter.ai/api/v1 | https:// URL | OpenRouter REST API root |
refreshSeconds | 60 | 10–3600, integer | Seconds between OpenRouter refreshes |
historyDays | 30 | 2–366, integer | Days of history the summary window covers, today included |
cbrUrl | https://www.cbr.ru/scripts/XML_daily.asp | https:// URL | CBR daily-rates sheet read for the RUB rate |
rateRefreshSeconds | 3600 | 60–86400, integer | Seconds between cbr.ru rate reads |
timeoutMs | 15000 | 1000–120000, integer | Per-request deadline against OpenRouter and cbr.ru |
Viewing preferences (display currency, per-key filter, refresh interval override) are browser-local (localStorage).