ZYAONS/dsh-plugin-mascot ↗★ 0

dsh-plugin-mascot

DeepSeek Harness mascot plugin — a clickable character sprite (Arknights' Closure / BanG Dream!'s Sengoku Yuno) that opens a panel with token cache hits, context pressure and account balance. 用于直观监控账户状态。适合需要随时查看Token消耗、余额和上下文压力的用户。

Package
dsh-plugin-mascot
Compatibility
Unverified
Version
0.1.0
License
NOASSERTION
Last updated
Sep 16, 2026

Install

This plugin has no verified bundle, or compatibility checks failed. Read the repository notes first. Read the full README ↗

Configuration

Add a config block to either form (see Configuration):

- insert:
    - id: mascot
      name: dsh-plugin-mascot
      config:
        baseUrl: 'https://api.deepseek.com'
        cacheTtlMs: 30000

Usage

InteractionResult
Click the spriteToggle the panel
Click either mini portrait in the panelSwitch mascot (choice is stored in localStorage)
Click the backdrop or press EscClose the panel
Click "刷新"Re-read the balance immediately (it also refreshes every 2 minutes while open)

While open, the pill under the sprite shows the balance. If the lookup fails it reads "点我 Token / 余额" instead of pretending to know.


Configuration

Every field has a default, so the config block is optional.

FieldDefaultMeaning
routePrefix/dsh-mascotPath prefix this plugin claims on the host webserver
baseUrlhttps://api.deepseek.comProvider origin hosting the balance endpoint
apiKeyRefDEEPSEEK_API_KEYCredentials reference name (~/.dsh/.credentials.yaml)
cacheTtlMs60000Freshness of one balance answer; failures are never cached
timeoutMs10000Upstream request budget

Behind a proxy or self-hosted gateway, point baseUrl at it — the only requirement is that it implements GET /user/balance.