dsh-ollama-quota
DeepSeek Harness plugin: show the Ollama Cloud credit balance and recent usage as a Settings section, with an in-page API key editor. 适合使用Ollama Cloud服务,需要监控额度、查看近期账单及管理密钥的用户。
同名パッケージの別リポジトリ
インストール
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:okku000/dsh-ollama-quotaドキュメント
README 全文を読む ↗Configuration
The row reads these fields, all optional (cordis.patch.yml):
| Field | Default | Meaning |
|---|---|---|
keyEnvs | [OLLAMA_CLOUD_API_KEY, OLLAMA_API_KEY] | credential references tried in order; the first is what the editor writes |
apiBase | https://ollama.com | API origin |
usageRange | 30d | usage window, one of 24h, 7d, 30d |
refreshMs | 60000 | balance refresh interval, minimum 5000 |
usageRefreshMs | 300000 | usage-report interval, minimum 60000; ?force=1 or a new key re-reads it |
timeoutMs | 15000 | per-request timeout |
The Host half serves GET /ollama-quota/snapshot (add ?force=1 to refresh first). The
snapshot carries dollar amounts, counts, timestamps, error labels, and the credential
reference order — never the key.