okku000/dsh-ollama-quota ↗★ 0

dsh-ollama-quota

在设置中展示Ollama Cloud余额、用量及密钥编辑 适合使用Ollama Cloud服务,需要监控额度、查看近期账单及管理密钥的用户。

套件
dsh-ollama-quota
相容性
待驗證
版本
0.2.2
授權
MIT
最近更新
2026年10月9日

同名套件的其他儲存庫

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:okku000/dsh-ollama-quota

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.