xohmai/dsh-cpa-status 预览 preview

xohmai/dsh-cpa-status

Plugin插件 Native原生 ⭐ 2 Apache-2.0 Data & Analysis数据与分析Approval & Security审批与安全

DeepSeek Harness 插件:CLIProxyAPI 账号池状态面板——配额、健康刻度、流量一览 / DSH 的 CPA 状态面板

Project Overview项目介绍

This is a native sidebar status panel plugin built exclusively for DeepSeek Harness (DSH), designed to work with the CLIProxyAPI (CPA) service. It adds a persistent status indicator to the DSH sidebar, which shows the current account count and usage statistics when collapsed. If any account error or availability issue occurs, the indicator automatically changes color to alert you. You can open the panel to view full details of your account pool quota, health status, and traffic data without navigating to the separate CPA management page every time you need a status check.

After installation, you get direct access to all your connected AI provider API details right from the DSH sidebar. It displays a range of useful metrics, including remaining subscription days, total request counts, success rates, 3.3 hours of rolling health trend data, remaining quota percentage, and quota reset countdown. You can trigger a manual quota sync with one click, it works with APIs from Codex, Kimi, ByteDance Doubao, and many other third-party AI platforms, and it never modifies your existing CPA usage queue or writes any core CPA data. This plugin is ideal for developers who regularly manage multiple AI API accounts for their daily development work.

This plugin is released under the permissive open-source Apache-2.0 license. It is written entirely in pure JavaScript, so there is no build step required, eliminating common issues like missing compiled assets after pulling source code. You can install it directly via the DSH CLI from GitHub, or package it as a tarball for offline installation on internal networks, and you only need to restart the DSH web service after installation to activate it. Configuration is simple: just add your CPA base URL and management key, which is stored only in your local credential store, and gateway keys are only ever displayed by their last four digits to keep sensitive information secure.

这是一个专为 DeepSeek Harness (DSH) 开发的原生侧边栏状态面板插件,作用于 CLIProxyAPI(CPA)服务。它在 DSH 侧边栏添加常驻状态灯,收起态展示当前账号总数和使用统计,出现成功率异常或账号缺员时会自动变色告警。打开面板即可查看账号池配额、健康状态与流量数据,无需每次手动打开 CPA 管理页面查看。

开发者安装后可直接在 DSH 侧边栏查看所有对接的 AI 供应商 API 信息,包括套餐剩余天数、请求统计、成功率、近 3.3 小时的健康趋势、配额剩余比例与重置倒计时。它还支持一键手动同步配额,适配 Codex、Kimi、字节豆包等多个平台的 API 对接场景,适合日常需要管理多个 AI API 账号的开发人员使用。

本插件采用 Apache-2.0 开源协议,纯 JavaScript 开发无需构建,支持通过 DSH 命令行直接从 GitHub 安装或离线 tarball 包内网安装,安装后重启 DSH web 服务即可生效。配置仅需填写 CPA 地址与管理密钥,密钥仅保存在本地凭据库,网关密钥仅展示末四位,支持脱敏模式保障信息安全。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • Only 2 stars - very few users, little community feedback星标只有 2,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin --profile web add github:xohmai/dsh-cpa-status

把 xohmai/dsh-cpa-status 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-cpa-status

CLIProxyAPI(CPA) 的 DeepSeek Harness 状态面板插件:侧栏常驻状态灯,点开即看账号池配额、健康与流量——不用每次开 CPA 管理页。

状态面板

  • 收起态:● CPA · 3/3 账号 · 28 次/30min,成功率异常或账号缺员时自动变色告警
  • 账号卡:套餐徽章(含订阅剩余天数)、指标宫格(请求总数 / 成功率 / 近 30 分钟)、健康刻度带(约 3.3 小时逐 10 分钟成败)、配额进度条(剩余 % + 重置倒计时)
  • AI 供应商页:api-key 网关列表(类型 / 地址 / 模型 / 密钥末四位 / 启停),与认证文件分页签切换
  • 配额手动同步:点「同步配额」才探测上游(codex / kimi / xai 已实测),平时只读 CPA 本地数据
  • 非侵入:不碰 usage 队列、不写 CPA 数据;密钥仅存本机凭据库,网关密钥只显示末四位

侧栏底部收起态

安装

dsh plugin add 会自动完成依赖链接与 profile 注册,装完重启 dsh web 生效。卸载:dsh plugin --profile web remove dsh-cpa-status。

方式一:GitHub 直装(推荐)

dsh plugin --profile web add github:xohmai/dsh-cpa-status
# 锁定版本更安全:github:xohmai/dsh-cpa-status#<commit-sha>

本插件零构建(纯 JS,无 TypeScript / 无打包步骤),git 安装不会踩「源码拉下来没跑 build」的坑,也无需 pnpm allowBuilds 授权。

方式二:tarball 离线分发(内网场景)

npm pack                                             # 产出 dsh-cpa-status-0.1.0.tgz(约 31 kB / 6 个文件)
dsh plugin --profile web add ./dsh-cpa-status-0.1.0.tgz

配置

点侧栏「连接 CPA」,填两项:

  • Base URL:CPA 地址,如 http://127.0.0.1:8317;反代场景填到子路径根(https://example.com/abc123)
  • Management Key:CPA 管理密钥,仅存本机凭据库

Public URL 可选(「管理页 ↗」外链,默认 {Base URL}/management.html)。亦可用环境变量 CPA_BASE_URL / CPA_MANAGEMENT_KEY 预置(env 注入时表单密钥只读)。

安全

  • Management Key 只写入本机凭据库,接口响应不回传完整密钥
  • 账号/网关字段白名单返回;网关密钥仅显示末四位
  • 面板可开脱敏模式,进一步打码邮箱、地址与名称

详见 SECURITY.md。

License

Apache-2.0

← 上一个 Prev dsh-home-migrate 下一个 Next dsh-plugins →