ice-kele / dsh-llm-guardian

목록에 있음

Provider health, quota, account usage, and local model usage statistics for DeepSeek Harness

main모델 소스 보기

설치

npx -y @deepseek-ai/dsh plugin --profile web add github:ice-kele/dsh-llm-guardian

이 설치 명령은 GitHub 저장소 주소에서 생성된 확인되지 않은 시작점입니다.

README

유지 관리자가 작성한 문서 스냅샷입니다.

GitHub에서 보기 ↗
커밋 32db0da동기화 2026. 8. 18.

DSH LLM Guardian

简体中文 | English

dsh-llm-guardian is a community plugin for DeepSeek Harness. It adds provider health checks, local token quotas, and provider-scoped account or plan usage queries to the Models settings page without storing API keys in the plugin settings.

Provider cards

The plugin contributes a health-test action, a model-usage action, and a compact status summary to every configured provider card.

Provider health and usage controls

Local usage dashboard

The optional dashboard aggregates local session logs into 7, 30, or 90-day views. It includes model filtering, summary metrics, an activity heatmap, a responsive daily token chart, model share, and detailed hover values.

Local model usage dashboard

Features

  • Periodic and on-demand provider health checks.
  • Local token counters and optional request blocking after a configured quota is reached.
  • Provider-scoped account or plan usage queries with explicit timeout and refresh controls.
  • Built-in query adapters for DeepSeek balance and Z.AI Coding Plan quotas.
  • Local session-log statistics with model filtering, activity heatmap, daily token trends, and model share.
  • Secret redaction, response-size limits, and same-origin restrictions for custom usage queries.

Install from GitHub

dsh plugin add github:ice-kele/dsh-llm-guardian

Restart DeepSeek Harness or DSH Desktop after installation. The provider controls appear under Settings → Models.

Compatibility

The plugin prefers the typed settings.models.provider.action and settings.models.provider.summary slots. A compatibility adapter is included for current DSH releases that do not expose those slots yet. The proposed upstream slot patch is tracked separately so the DOM compatibility adapter can be removed after the extension points are available.

Privacy and network behavior

  • API keys are resolved through the DSH credentials service and are not persisted by this plugin.
  • Health checks call the configured provider model-discovery endpoint.
  • Usage queries are limited to HTTPS endpoints on the provider origin; loopback HTTP is allowed for local providers.
  • Local counters and query results are stored in the llm-guardian settings namespace.
  • Dashboard statistics are computed locally from DSH session logs and are not uploaded by this plugin.

Plugin marketplace

This project is designed as an ordinary composable DSH plugin and uses no Electron-only API. If DSH Desktop does not bundle or directly reference it, we would appreciate the project being considered for the forthcoming plugin marketplace. Add the repository topic dsh-plugin to keep ecosystem discovery machine-readable.

Development

npm install
npm run check
npm pack --dry-run

License

MIT

프로젝트 파일 및 신호

표시된 항목은 디렉터리 스냅샷에서 감지된 공개 저장소 신호입니다.

테스트감지됨
문서감지됨

저장소 정보

언어
JavaScript
라이선스
MIT
마지막 업데이트
2026. 8. 16. 오후 5:36

신중하게 설치하기

소스 코드, 권한, 수명 주기 스크립트, 의존성 및 네트워크 접근을 검토하고 신뢰하지 않는 플러그인은 격리 환경에서 테스트하세요.