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. 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.