Computer-side companion plugin for dsh-pocket-app. Aggregates credits and balances from already-logged-in connector routes into the DSH sidebar as a per-channel, per-account capsule, and applies a set of mobile and desktop UI refinements. Its HTTP routes have no DSH access check, so a web page open in your browser could call them.
Install
# from npm (prebuilt)
dsh plugin --profile web add dsh-connect-credits
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:yekz/dsh-connect-credits
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
This plugin publishes its README in Chinese only.
一个独立的 DSH 插件。把 WorkBuddy、Trae、Qoder 等连接器账号的积分与临期积分汇总到侧栏,一处看全,不用挨个插件翻。
功能亮点
- 积分汇总。 各连接器账号的积分与即将过期积分,按渠道 → 账号分组显示,合计与临期一眼看到。没装的插件静默隐藏,不画空卡片。
- 临期提醒。 有即将过期的积分时,侧栏胶囊带橙色圆点。点开面板逐账号列出临期数值。
- 不碰凭据。 只读连接器已经暴露的路由,不自己登录、不保存账号凭据、不新增免认证端点、不记日志。
- 界面收口。 输入框胶囊去外框、窄屏工具条精简、手机端隐藏词数、会话图片条、模型名关键词高亮、可拖动积分面板。
- 主题适配。 给
dsh-claude-style主题补 provider/model 属性,升级后自愈。
截图
桌面端 · 侧栏积分总览
手机端 · 右栏积分区
它负责什么
装一个包,侧栏底部就多一枚积分胶囊。点开按渠道 → 账号 → 积分 / 即将过期分组显示。
- 数据来源:WorkBuddy、Trae、Qoder、豆包的积分路由,以及
channel-pack的渠道池余额。 - 额度字段:
GET /plugins/dsh-connect-credits/quota给 App 提供只读额度;window.__DCC_CREDITS__.goQuota同步同形状数据。读不到时整个字段缺失,消费方隐藏该节,不画假 0。 - 配置权威:关键词高亮配置在
$DSH_HOME/dsh-connect-credits/keywords.json,各客户端共用一份。localStorage 降级为本机缓存。
每条样式改动的钩子见 docs/DETAIL.md。
安装
dsh plugin --profile web add dsh-connect-credits
与 dsh-pocket 配合
本插件独立工作,不依赖 dsh-pocket。若同时安装了 dsh-pocket-plugin 与 dsh-pocket-app,侧栏的积分数据会同步到 App 右栏显示。三仓共用同一份额度字段契约。
安全前提
积分数据来自用户已登录的连接器路由。本插件不保存账号凭据,不新增免认证端点,也不记日志。
相关仓库
| 仓库 | 负责什么 |
|---|---|
| dsh-pocket-app | 桌面 Tauri 壳与 Android 原生壳 |
| dsh-pocket-plugin | DSH 宿主插件:手机访问设置页、本机代理、三条连接线路 |
| dsh-pocket-relay | 自建中转服务端 |
| dsh-connect-credits(本仓) | 积分与界面插件 |
License
GPL-2.0。
Links
More in this category
zhu1090093659/dsh-web#packages/dsh-task-board★ 10703
Task board for the dsh web GUI: a sidebar multi-column kanban whose cards run in real DSH agent sessions and can also be scheduled with cron expressions, executed host-side even with the browser closed.
zhu1090093659/dsh-web#packages/dsh-web-all★ 10703
Plugin and skin collection for the DSH Web UI: task board, Git graph, right-side panel, remote mobile UI, pet, live token stats, and a skin center.
ccch1mneyyy/dsh-TUI★ 8557
Claude Code-style full-screen terminal UI: pixel-whale header, live status line, and streaming thought expansion.
MeteorNOX/DeepSeek-Balance-Whale-Widget★ 7523
A fixed-corner whale widget for the DSH web GUI — balance, today's usage and per-turn cost with peak/off-peak pricing, editable balance-alert and daily-budget bubbles, a module-based custom bubble queue with A/B weighted choices and random lines or images, 30+ vendor templates (OpenAI, OpenRouter, Kimi, SiliconFlow, Ark, Zhipu, MiniMax and more) with per-model balance and subscription quota, plus task-end sound, imported audio, custom roles and a resource manager. Local-only, no telemetry.
omdsh-dev/DSH-better-sidebar★ 5405
Full sidebar workbench with file rendering and editing, terminal, Git, and subagents; third-party plugins can register new tabs.
omdsh-dev/dsh-genui★ 1091
Interactive UI components rendered inline in replies: layout, charts, forms, quizzes, mermaid, 3D scenes, and an action event loop back to the model.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.