rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:keerzzz/dsh-account-switcher
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
面向 SRE / 运维人员的 DeepSeek Harness 运维级多账号高可用平滑切换与凭据治理插件。
DevOps & SRE-grade multi-account high-availability failover and credential governance plugin for DeepSeek Harness (DSH).
在高频次调用大模型、多 Agent 并发或自动化开发场景下,单一 DeepSeek 账号常面临配额消耗过快、触发 API 频率限制(Rate Limit / 429)或突发服务降级的痛点。
本插件以 SRE / 运维可观测性与高可用容灾思维 为核心设计理念,为 DeepSeek Harness 提供零停机热切换、任务并发保护、端到端延迟探测、实时配额监控与自动化凭据治理能力。
flowchart LR
subgraph DSH_Runtime["DSH Host Runtime"]
Vault[("0600 本地凭据库\nVault")]
Watcher["凭据监听器\nrecord-updated"]
Switcher["热重载交换机\nHot-Swap Dispatcher"]
Mutex["任务互斥锁\nTask Mutex Guard"]
end
subgraph Observability["可观测性与探针"]
Probe["网络往返探针\nRTT Latency (ms)"]
Balance["配额监控\nBalance & Quota"]
end
subgraph DeepSeek_API["DeepSeek Cloud"]
Platform["/auth-api/users/current"]
Models["/models"]
BalAPI["/user/balance"]
end
Watcher -->|自动捕获持久化| Vault
Switcher -->|热重载| Mutex
Mutex -->|无运行中任务时安全交换| DeepSeek_API
Probe -->|健康探测| Models
Balance -->|额度感知| BalAPI
高可用主备故障转移与零停机热重载 (HA & Zero-Downtime Hot-Swapping)
会话互斥安全保护锁 (Session Mutex & Task Concurrency Guard)
agents.list() 中正在执行的任务数。端到端网络延迟与可用性探针 (Active Latency Probing)
/auth-api/v0/users/current)+ 模型能力握手(/models)。资源容量与配额可观测性 (Quota & Balance Observability)
/user/balance),展示总余额、赠金(Granted)、充值金(Topped-up)及货币种类。凭据生命周期与健康自愈 (Credential Hygiene & Self-Healing)
零信任本地隔离与合规 (Zero-Trust Local Security)
运维批处理与多环境镜像导入/导出 (Batch Operations)
账号\tToken)、纯 Token 列表、对象数组 JSON、字典映射等全形态输入。In intensive LLM agent development and automated CI/CD workflows, relying on a single DeepSeek account frequently leads to quota exhaustion, rate-limiting (HTTP 429), or service degradation.
This plugin is architected from an SRE and operational resilience perspective, introducing zero-downtime hot-swapping, concurrency task guards, live latency probing, quota observability, and automated credential hygiene into DeepSeek Harness.
Zero-Downtime Credential Hot-Swapping
Task Concurrency Guard (Session Mutex)
Active Latency & Availability Probing
/auth-api/v0/users/current and /models.Resource Quota & Balance Observability
api.deepseek.com/user/balance).Automated Credential Hygiene & Pruning
credentials/record-updated and persists newly signed-in accounts into the local vault automatically.Zero-Trust Local Security
Multi-Format Batch Import & Backup
name\ttoken, phone:token), bare tokens, and standard JSON formats.# 1. 克隆本插件到 DSH profiles 模块目录
git clone https://github.com/keerzzz/dsh-account-switcher.git ~/.dsh/profiles/web/node_modules/@local/account-switcher
# 2. 在 DSH 配置文件 cordis.yml 中确认加载:
# - id: account-switcher
# name: '@local/account-switcher'
# 3. 重启 DSH 服务即可在设置面板中体验
pnpm dsh web
MIT License © 2026 keerzzz
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek、deepseek-harness。