muyifc/dsh-config-sync
muyifc★ 0JavaScript最后同步: 2026-08-15
DeepSeekHarness配置同步插件
README 摘要
dsh-config-sync DeepSeek Harness 配置同步插件:一键把 DSH 的 API 设置、凭据、profile 插件补丁和用户 agent presets 导出为可移植的备份包,或 单个口令加密文件 (AES-256-GCM),在新机器上解密恢复。 A DeepSeek Harness plugin for backing up and restoring your DSH configuration — settings, API credentials, profile plugin patches and user agent presets — as portable bundles or a single password-encrypted file. 功能 / Features 注册 5 个模型工具 / registers 5 model-facing tools: 工具 / Tool 作用 / Purpose dsh config export 导出为目录包(manifest.json + 文件) dsh config export encrypted 导出为单个口令加密文件 .dshsync dsh config import 从目录包恢复(先预览,覆盖前自动备份) dsh config import encrypted 从 .dshsync 解密恢复 dsh config status 查看配置与备份清单(绝不显示密钥内容) 同步内容 / What gets synced: - settings.yaml — 默认模型等设置 - .credentials.yaml — API 密钥(内容永不出现在工具结果里) - profiles/ / — cordis.patch.yml 、 package.json 、 pnpm-workspace.yaml 等( 不含 node modules ) - .agent-presets/ — 用户 agent presets 安全设计 / Safety: - 导入只接受白名单路径,拒绝路径穿越( .. )、绝对路径与 node modules - 导入默认 dry run 预览;实际覆盖前把旧文件备份到 \config-backups\pre-import- - 加密文件:PBKDF2-SHA256(60 万次迭代)+ AES-256-GCM,口令错误明确报错;加密文件放网盘 / 微信 / U 盘都安全 安装 / Install 安装后重启 DSH 即生效。 使用 / Usage 在对话里直接说,或让模型调用工具: 加密文件格式 / Encrypted format .dshsync 是一个 JSON 信封( dsh-config-encrypted v1): 解密后的载荷是 d…
在 GitHub 查看完整 README →