okku000/dsh-ollama-quota ↗★ 0

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服务,需要监控额度、查看近期账单及管理密钥的用户。

パッケージ
dsh-ollama-quota
互換性
未検証
バージョン
0.2.2
ライセンス
MIT
最終更新
2026/10/09

同名パッケージの別リポジトリ

インストール

$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):

FieldDefaultMeaning
keyEnvs[OLLAMA_CLOUD_API_KEY, OLLAMA_API_KEY]credential references tried in order; the first is what the editor writes
apiBasehttps://ollama.comAPI origin
usageRange30dusage window, one of 24h, 7d, 30d
refreshMs60000balance refresh interval, minimum 5000
usageRefreshMs300000usage-report interval, minimum 60000; ?force=1 or a new key re-reads it
timeoutMs15000per-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.