dsh-emoji-wallet
其他 活跃维护

dsh-emoji-wallet

ankesu/dsh-emoji-wallet

轻量级余额查询插件,安装后自动在会话顶栏添加余额展示入口,点击即可快速查看当前API账户余额,无需跳转页面,操作轻便无额外负担

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
TypeScript
主要语言
MIT
开源协议
48 KB
仓库大小
1 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:ankesu/dsh-emoji-wallet
git clone https://github.com/ankesu/dsh-emoji-wallet.git
git clone git@github.com:ankesu/dsh-emoji-wallet.git
README.md main

dsh-emoji-wallet

npm version
npm downloads
license

A minimal DeepSeek balance wallet for DeepSeek Harness: one click shows your API balance right in the session header.

DSH 余额小钱包:顶栏一个 💰,点一下就知道 DeepSeek API 还剩多少钱。

preview

Features / 功能

  • 💰 One-click balance — a small wallet button in the session header (right side, next to Session log)
  • 🔒 Key never leaves the host — the browser only ever sees the balance numbers; the API key is read from the harness credentials file (~/.dsh/.credentials.yaml) on the host
  • 🫧 Semi-transparent bubble — click to open, click again to close (auto-closes after 8s)
  • 🎛️ No config needed — reads DEEPSEEK_API_KEY automatically

Install / 安装

dsh plugin --profile web add dsh-emoji-wallet

Restart the harness. A 💰 button appears in the session header, right next to
Session log. Click it to see your balance.

How it works / 原理

  • Host half: GET /api/wallet/balance reads DEEPSEEK_API_KEY from
    ~/.dsh/.credentials.yaml and queries https://api.deepseek.com/user/balance
  • Client half: a slot component in conversation.session.header.utilities
    (the same container as Session log), positioned before it with flex
    order: -1

License

MIT