Hann428 / dsh-usage-dashboard

목록에 있음

DeepSeek Harness Usage tab for balance, official peak/off-peak pricing, live countdown, and platform usage link.

main기타 소스 보기

설치

npx -y @deepseek-ai/dsh plugin --profile web add github:Hann428/dsh-usage-dashboard

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

README

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

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

dsh-usage-dashboard

DeepSeek usage and billing panel for DeepSeek Harness Web.

It adds a compact Usage tab to the conversation view. The tab shows the DeepSeek account balance, current official peak/off-peak pricing, the next price-window countdown, and a direct link to the DeepSeek platform usage page.

Features

  • Account balance from DeepSeek's official GET /user/balance endpoint.
  • Current official prices for deepseek-v4-flash and deepseek-v4-pro.
  • Peak/off-peak status based on Beijing time, with orange peak and green off-peak labels.
  • Live countdown to the next peak/off-peak switch.
  • Default-model highlight when the Harness default model is one of the supported DeepSeek models.
  • Host-side API-key handling: the browser receives only the query result, never the key.
  • Optional dev_usage_balance tool for agents to inspect balance and pricing data.

Install

dsh plugin --profile web add github:Hann428/dsh-usage-dashboard

Restart dsh web, then open a conversation and select the Usage tab.

Configuration

The plugin uses the standard DEEPSEEK_API_KEY credential reference by default.

- id: dsh-usage-dashboard
  name: dsh-usage-dashboard
  config:
    keyRef: DEEPSEEK_API_KEY
    baseURL: https://api.deepseek.com
    platformUsageURL: https://platform.deepseek.com/usage
    timeoutMs: 10000

Configure the key in Harness Settings -> Models. The plugin reads the credential through the Harness credentials service.

Notes

  • DeepSeek's platform page login is separate from Harness. The "open usage page" link may require a browser login.
  • The pricing table is fetched from DeepSeek's official docs at runtime so price changes are reflected after refresh.
  • If the docs page cannot be reached or parsed, the balance still renders and the price row reports the pricing error.

Development

pnpm install
pnpm run typecheck
pnpm run build:client

The built lib/ files are committed so GitHub-source installs can run without a local build step.

프로젝트 파일 및 신호

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

보안 정책감지됨
기여 가이드감지됨
문서감지됨

저장소 정보

언어
TypeScript
라이선스
BSD-3-Clause
마지막 업데이트
2026. 8. 18. 오후 2:30

신중하게 설치하기

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