Dsh Config Manager 标志

Dsh Config Manager

社区
xiajiajun516

DeepSeek Harness (DSH) backup & restore plugin — export, import, migrate and sync your complete DSH configuration, plugins, MCP servers, skills and workspace. One-click migration to another machine.

发布者xiajiajun516
代码仓库dsh-config-manager
语言TypeScript
复刻数
6
星标数
139
可用工具
0
传输类型stdio
许可协议MIT
链接
  • 将工具接入 AI 工作流

    Dsh Config Manager 提供 MCP 功能,可供兼容的 AI 客户端和智能体使用。

  • 0 个可用工具

    浏览下方可调用的操作;如果服务器提供了名称和描述,也会一并显示。

  • 可直接复制的配置

    使用安装配置片段,在您首选的 MCP 客户端中配置此服务器。

  • 开源社区热度

    关联的代码仓库有 139 个星标和 6 个复刻。

🎒 DSH Config Manager

npm version npm downloads GitHub stars License: MIT DSH plugin

DeepSeek Harness Backup, Restore & Migration Plugin.

Backup, restore, export, import, migrate and sync your complete DeepSeek Harness (DSH) configuration — settings, model providers, plugins, MCP servers, skills, agent presets and workspaces — and restore your whole environment on a new machine with one click.

  • 🔄 Backup & Restore DeepSeek Harness configuration
  • 📦 Export / Import complete DSH configuration
  • 🚚 Migrate DSH to another machine
  • ⏰ Scheduled full backups — automatic, on your own cadence (6h / 12h / 24h / 7d / custom weekly), secrets never included
  • 🔌 Backup installed plugins and plugin configuration
  • 🧩 Backup MCP servers and Skills
  • 🔐 Encrypted backups with optional credentials
  • ☁️ Git / WebDAV configuration sync
  • 🛒 Configuration market — browse & one-click install shared configs
  • ↩️ Automatic snapshot and rollback before restore

English · 简体中文


What is this? 🤔

DSH is your AI assistant workbench — it holds your settings: model configs, plugins, skills, workspaces…

DSH Config Manager is its "moving service":

┌──────────────┐   ① one-click    ┌─────────────────┐   ② one-click    ┌──────────────┐
│  Machine A    │ ──── export ───► │ dsh-config.zip   │ ──── import ───► │  Machine B    │
│  my config    │                  │   (one file)     │                  │  all restored │
└──────────────┘                  └─────────────────┘                  └──────────────┘

⚠️ Security first: no secrets (API Key / Token / Password) are exported by default. See Security.


🎯 Use Cases

Backup DeepSeek Harness configuration

Create a portable backup of your DSH settings, model providers, plugins, MCP servers, skills, agent presets and workspace — one ZIP file, no secret values included by default. (DSH's own profiles — $DSH_HOME/profiles/<name>, i.e. which plugin stack to boot — are machine-local and are not migrated; the Profiles page can list/create/rename/delete them and record which one the next launch should use.)

Restore DeepSeek Harness on another machine

Export your current DSH environment as a single ZIP and import it on a new Windows, macOS or Linux machine. One click brings back settings, plugins, MCP servers, skills and global instructions (AGENTS.md).

Migrate DSH configuration to a new computer

Move your complete DeepSeek Harness setup without manually reinstalling plugins, MCP servers and skills. Dead absolute paths are detected and remapped automatically (batch prefix mapping supported).

Sync DSH configuration across machines

Keep portable configuration synchronized between machines through a private Git repository or WebDAV — secrets do not sync by default (the payload is run through the SecretScanner); check "Export secrets" with an encryption password and ~/.dsh/.credentials.yaml travels as scrypt + AES-256-GCM ciphertext inside the encrypted snapshot, so another machine can restore the credentials while the remote (Git host / WebDAV provider) only ever sees ciphertext.

Schedule automatic full backups

Turn on scheduled backups (6h / 12h / 24h / 7d — or a custom weekly weekday & time) and DSH quietly keeps a fresh full backup of your configuration in the background — secrets are never included, so it stays safe on disk without a password. Consecutive failures are highlighted in red in the settings card.

Discover & install configurations from the marketplace

Browse the built-in official market for ready-made configurations (model providers, plugins, MCP servers, skills, agent presets…), preview what would be imported (dry-run), and install with one click — supply-chain warnings are always shown and every section must be explicitly approved before anything is written.


🆚 How it differs from the other DSH backup / sync plugins

Several DSH plugins live in this space and they solve different problems — pick the one that matches your situation; they can also coexist.

PluginStrongest atWhere DSH Config Manager goes further
xiaoyuyu6420/dsh-backupOne-command ~/.dsh snapshots from the CLI, plus session doctor / upgrade snapshots / rescue consoleReview-before-write GUI flow (dry-run preview, per-item conflict decisions, automatic rollback), cross-machine path remapping, encrypted credential payload, configuration marketplace
muyifc/dsh-config-syncExport / import DSH configuration to a portable, password-encrypted file, callable from tool calls13–14 sections incl. plugins / MCP / skills / profiles / workspaces, scheduled backups, Git + WebDAV sync per channel, session migration with path rebase
dickpy/dsh-cloud-sync · weibaohui/dsh-syncKeeping machines consistent through WebDAV / S3 or a private Git mirrorSync is one of five capabilities here — alongside export/import, scheduling, marketplace and profile instance launch/stop
cp -r ~/.dsh (or Git on the home dir)Free, zero setup, fine for a purely textual configNo secret handling, no path remapping, no capture of link: / file: plugin installs, no session-log work, no conflict handling or rollback

Short version: for a one-command snapshot of everything, dsh-backup is excellent. If what you want is move this working environment to another machine — and keep it in sync — with a review step before anything is written, that is exactly what this plugin is for.


✨ Highlights

IconFeatureIn one line
🚀One-click ExportPackage your recommended config into a ZIP
📦One-click ImportRestore your environment on another machine
👀Preview before importFull preview first — never touches your config silently
⚔️Conflict handlingKeep Current / Use Imported — you decide
🗺️Path auto-mappingDetects dead absolute paths and lets you remap them
🔒Secret safetyAPI Keys are not exported by default — non-encrypted imports ask you to re-enter; encrypted backups restore them with the password
↩️Automatic rollbackFailed import restores everything automatically
📸Snapshot restoreUndo an import: whole-file restore + uninstall added plugins (CLI & GUI)
🔄Remote SyncPush/pull portable config via Git private repo or WebDAV (secrets do not sync by default; encrypted snapshots can optionally carry encrypted credentials)
⏰Scheduled backupsFull backup on a fixed cadence (6h / 12h / 24h / 7d) — set-and-forget, secrets never included
🛒Config MarketplaceBrowse & one-click install community configs — supply-chain warnings + per-item content selection (change summary + in-place high-risk flags)
🗂️Profiles (DSH profiles)Manage $DSH_HOME/profiles/<name> directly: list / create from a shipped template / rename / hard delete / launch this profile (independent instance) / stop the instance (the row button flips between Launch and Stop with the running state)
🌐Bilingual UIInterface, reports and error details follow the DSH app language (中文 / English)
🤖Agent toolsBackup / snapshot / restore / sync right from an agent session

📸 Screenshots

OverviewBackups & Snapshots
OverviewBackups and snapshots
ExportImport Preview
One-click ExportImport Preview
Remote SyncConfiguration Market
Remote SyncConfiguration Market
Profiles (DSH profiles)
Profiles

🔄 How it works?

Export (pack it up)

Read your config → strip secrets (safe) → build manifest → compute checksums → pack into ZIP

Import (restore the environment)

Every step confirms and backs up first — it never modifies your config directly:

Select ZIP → validate file → check integrity → check schema → compatibility check
    → scan contents → build import plan → preview & confirm
    → auto-backup current config → apply → validate → done
                      │
                      └─ failed midway? → automatically restored (rollback)

📥 Installation

It's a standard DSH plugin — two steps:

bash
# ① Install the plugin
dsh plugin --profile web add dsh-config-manager@latest

# ② Restart DSH (a "Backup & Migration" entry appears in Settings)

💡 Just copy-paste the command: @latest ensures you get the newest build.

🐛 If @latest installed an old version: that's pnpm's minimumReleaseAge supply-chain policy (not a cache issue). The gate is evaluated per version, at resolution time: a release younger than the threshold (~30 days) stays invisible to @latest until it ages past it — and the clock restarts for every future release. Installing an exact version once fixes that one version only; the next release published is invisible to @latest again. It is not a one-time fix.

Permanent fix (recommended) — exempt this single package from the age gate. Add to the profile's pnpm-workspace.yaml (~/.dsh/profiles/web/pnpm-workspace.yaml):

yaml
minimumReleaseAgeExclude:
  - dsh-config-manager

After that @latest resolves the newest release normally — including every future release.

One-off fix — ask npm which version is actually latest and install exactly that. Repeat it each time a newer version has been published:

powershell
# Windows (PowerShell)
$v = (npm view dsh-config-manager version).Trim(); dsh plugin --profile web add "dsh-config-manager@$v"
bash
# macOS / Linux
dsh plugin --profile web add "dsh-config-manager@$(npm view dsh-config-manager version)"

After restarting DSH, Settings → Backup & Migration → About shows the version you are actually running (and pops up the release notes whenever it changes).

  • Or disable the age gate entirely with a one-liner (adds minimumReleaseAge: 0 at the top of the profile's pnpm-workspace.yaml):
    powershell
    $f = "$env:USERPROFILE\.dsh\profiles\web\pnpm-workspace.yaml"
    $c = Get-Content $f -Raw
    if ($c -notmatch '(?m)^minimumReleaseAge:') {
      Set-Content -LiteralPath $f -Value ("minimumReleaseAge: 0`n" + $c) -Encoding utf8
      Write-Output "Added minimumReleaseAge: 0"
    } else {
      Write-Output "Already present, nothing to do"
    }

🐛 Install rejected for a version you never installed? Symptom: pnpm logs + dsh-config-manager ^0.1.66, yet DSH reports Plugin dsh-config-manager@0.1.44 is incompatible with dsh … and rolls the install back.

The cause is neither pnpm nor version resolution. After installing, DSH runs a compatibility check that reads this plugin's cordis.patch.yml mount row (name: 'dsh-config-manager') and resolves that package again — and Node's resolution chain honours NODE_PATH. If your global npm root (npm root -g) still holds an old copy of the same package (for example a npm i -g dsh-config-manager of 0.1.44 from earlier), the check compares that copy's peerDependencies and reports a version pnpm never installed.

Confirm and fix:

powershell
npm ls -g dsh-config-manager         # output means a global copy exists
npm i -g dsh-config-manager@latest   # upgrade it (or npm uninstall -g dsh-config-manager to remove it)

Then retry the install. As long as that global copy exists and is incompatible with your DSH, every profile (web / desktop / custom) is rejected the same way.


🚀 Quick start (3-minute tour)

Machine A (export)
  1. Open DSH → Settings → "Backup & Migration"
  2. Click "Export Configuration" → choose "Quick Export"
  3. You get dsh-config-2026-08-14.zip (the report confirms no secrets inside)

Copy the ZIP to Machine B (import)
  1. Open DSH → "Backup & Migration" → "Import Configuration"
  2. Select the ZIP → wait for analysis → review the "Import Preview"
  3. Path issues? → choose new paths (batch mapping supported)
  4. Conflicts? → choose Keep Current / Use Imported
  5. Confirm import → wait
  6. Re-enter any missing API Keys as prompted
  7. ✅ Settings / plugins / MCP / skills / workspace / global instructions (AGENTS.md) are back

🧩 Features

📤 Export (two modes)

ModeDescription
Quick Export (recommended)One-click: settings / UI / models / plugins / MCP / skills / agent presets / global instructions (AGENTS.md) / workspaces…
Custom ExportTick the categories you want

Output: dsh-config-<date>.zip with manifest + per-category data + SHA-256 checksums.

Export extras:

  • Preview before export — see what will be packaged (section count + estimated size, no secrets) before anything is written
  • Custom file name & note — name the ZIP yourself (auto-naming is the default) and attach an optional note that shows in the Backup Files list (the note travels with the self section when you sync/backup the config)

📥 Import (safe flow)

  • Nothing is written before confirmation — analyze & preview are zero-write
  • Backup before applying — the target config is snapshotted automatically
  • Automatic rollback on failure — full rollback or skip-and-continue, your choice
  • Next-steps checklist after import — the result page lists what needs a DSH restart (per plugin/MCP), credentials to re-enter, and failed/skipped items you can retry

👀 Import Preview (dry run)

Shown fully before importing:

✓ 18 settings will be updated    ✓ 6 plugins already installed
⚠ 2 plugins need installation    ⚠ 3 secrets need re-entry
⚠ 1 path needs mapping           ⚠ 2 conflicts need attention

⚔️ Conflict handling

When the target already has a same-named item, you choose:

OptionMeaning
Keep CurrentLeave the target's config untouched
Use ImportedOverwrite with the backup's value

Note: a "decide later / review" option is intentionally not offered — an undecided conflict would block the import from proceeding. Every conflict must be resolved before continuing.

🗺️ Path mapping

C:\Users\alice\projects doesn't exist on the new machine? The plugin:

  1. Detects the dead absolute paths automatically
  2. Lets you pick new paths
  3. Supports batch prefix mapping (C:\Users\alice\ → /Users/bob/ in one shot)

🔒 Secrets

ScenarioBehavior
Default backupNo secret values at all — only records which keys are needed
Encrypted backup (explicit opt-in)scrypt + AES-256-GCM, random salt & IV per export; secrets never leave as plaintext, and the password is never written to the file
Encrypted backup importThe export-time password is required: enter → verify → credentials are restored; no password, no import
After non-encrypted import"3 secrets need re-entry" — values stay in memory only

🔄 Remote Sync (Git / WebDAV)

Push / pull your portable config between machines through either of two channels — usage is identical except for the transport itself:

Git private repoWebDAV
EndpointrepoUrlwebdav.url
Credentialsauth token in DSH credentials (DSH_CONFIG_MANAGER_SYNC_TOKEN)username stored in the config (echoed in the UI); password never synced / never logged — DSH credentials DSH_CONFIG_MANAGER_SYNC_WEBDAV_PASSWORD
  • Same snapshot retention for both channels: only the newest 10 snapshots are kept on the remote (MAX_REMOTE_SNAPSHOTS=10); older ones are deleted automatically.
  • Switching channels starts fresh: Git and WebDAV do not share snapshots or a common ancestor. When you switch transport, sync begins again from the new remote's empty baseline — push a fresh snapshot first.
  • WebDAV auth uses HTTP Basic: the username is stored in the config and may be echoed back into the UI, while the password is read live from the DSH credentials slot DSH_CONFIG_MANAGER_SYNC_WEBDAV_PASSWORD — it never appears in any sync file or log.
  • Plugins auto-install: when pulling diffs, plugins that are new in the backup are installed automatically on confirm — no manual per-item ticking in the diff list. Only version-conflict plugins still ask you to pick "Keep Current / Use Imported".
  • Push preview before uploading — the Push button first shows a read-only preview of what will be sent (sections + per-section counts + changed-vs-baseline markers, first-baseline notice) and only writes the remote after you confirm.
  • Secrets do not sync by default: every section goes through the SecretScanner (sensitive field values stripped) and the credential section is structurally excluded. With "Export secrets" checked and an encryption password set, ~/.dsh/.credentials.yaml travels as scrypt + AES-256-GCM ciphertext in a separate credentials payload of the encrypted snapshot (never inside any section); the receiving side decrypts it into per-ref "credential migration" items that are written back to the local credential store (credentials.set) only after you confirm. The encryption/decryption password is kept in a dedicated local DSH credential slot (~/.dsh/.credentials.yaml): it is remembered once "Encrypt backup" is checked (leave the fields empty to reuse it) and cleared when you uncheck it or press "Delete saved password" — never written to sync files, responses, logs or the exported backup, and never sent back to the browser. The decryption password is only ever used when the pulled snapshot is actually encrypted. Auto sync never carries credentials (it has no password and skips encrypted snapshots).

🛒 Configuration Marketplace

Browse and install ready-made configurations (model providers, plugins, MCP servers, skills, agent presets…) shared by the community:

  • Built-in official market — read-only, bound to the official public repo (official badge shown, not editable); first open auto-refreshes, manual refresh also available
  • Search & filter — keyword search (matches name / description / author / categories), category filter, section filter (items already downloaded list their sections; others are excluded with a hint), source filter (Official / Community), sorting (recently updated / most starred / name A–Z), and a ⭐ badge showing the source repo's star count (queried anonymously, no token involved)
  • Impact preview — the detail view shows "what installing this will change" (items updated / identical / conflicts / secrets to re-enter / DSH restart needed) before you approve anything
  • Supply-chain warnings always shown — source repo URL, "not officially reviewed", download time; per-item content selection — the selection step lists what each item will change and flags high-risk sections in place (selected by default; unchecking excludes them from the import and the snapshot); high-risk content (sessions / arbitrary files) is still banned from listing outright
  • Install reuses the safe import pipeline — analyze → preview → auto-backup → apply → rollback; nothing is written before you confirm
  • "My Configs" — sign in with GitHub (device flow), upload a config to your own public repo in one click, and an auto listing PR is opened against the official market repo; manage your listings (status badges: not listed / PR pending / listed), update in one click, install back locally, or delist (auto de-listing PR)

🗂️ Profiles (= DSH's own profiles)

A "profile" here is DSH's own profile ($DSH_HOME/profiles/<name>) — one plugin stack (bundles) + dependencies + patch layer, launched with dsh --profile <name>. This page reads and writes that directory directly instead of keeping its own config snapshots:

ActionWhat it does
List / detailsBundle layers, dependencies, patch entries and size, patchReload, node_modules, mtime; details show the raw package.json and cordis.patch.yml (redacted before display)
CreateWrites the standard three files under $DSH_HOME/profiles/<name> (equivalent to the shipped initProfile); starting templates: base / web / headless / sdk / sdk-minimal / acp
RenameDirectory move + fixes the manifest name field; the running profile is refused
DeleteHard-deletes the whole directory (including node_modules); deleting the running profile needs an extra checkbox
Launch this profileThe switch that actually works: starts an independent DSH instance for that profile (free port picked automatically, browser opened automatically); the running instance and its tasks are untouched. Web-shaped profiles only — non-web ones (e.g. the base template) have no browser UI, so the page shows the terminal command instead of failing silently
Stop instanceWhile that profile has a running instance, the row button flips from Launch to Stop (the Runtime card also offers one); it asks the process to exit first (grace period) and terminates the process tree only after that, reporting which path was used. Deleting a profile with a running instance is refused
No duplicate launches“Which profiles are running” = the ledger of instances this plugin started ∪ each instance's own heartbeat (<dataDir>/running/<profile>.json, pid/port only — never the auth token). So even a profile you started by hand with dsh web will not be launched a second time (you get a clear “already running” message); the instance you are using right now offers no Stop button (that would kill your own session — close that window/terminal, or stop it from the instance that launched it)

Why there is no "set as next launch" (button and marker removed in 2026-09): DSH has no "default / next launch profile" state — the profile comes only from the launch arguments (dsh <name> / --profile <name>; dsh web is a hard-coded alias), so any "which profile to use next" marker has no consumer at all: the dsh web you type yourself still boots web after a restart. Only two mechanisms really switch profiles: ① this page's "launch this profile" (an extra instance, no interruption, stoppable at any time), ② pointing your launch command/shortcut at dsh --profile <name> (ecosystem tools such as dshm and DSH Launcher all spawn instances from an external launcher). Instances started by this plugin are recorded in <dataDir>/launches.json (pid/port/log), which is why they can be stopped; third-party plugins must be installed into that profile separately (dsh plugin --profile <name> add <pkg>). The tab lives at Settings → "Backup & Migration" → Profiles.

📸 Snapshot restore (undo an import)

Every import creates a safety snapshot first. If something feels off afterwards, restore the target back to its pre-import state:

ActionWhat it does
Whole-file restoresettings.yaml / settings.json / cordis.patch.yml blobs are written back to $DSH_HOME; files that didn't exist at snapshot time but appeared after import are removed
Plugin uninstallPlugins added during import are removed via the official dsh plugin remove (baseline comparison; old snapshots without a baseline only get a hint)
File compensationskills / agentPresets / agentInstructions / pluginFiles / sessions blobs are written back to their original paths
CredentialsDSH never reads credential values back — you get a manual re-entry hint instead

GUI: Settings → "Backup & Migration" → Snapshots & Restore tab → pick a snapshot → preview the plan (dry-run, zero writes) → confirm.

Snapshot management:

  • Retention is visible — up to 10 snapshots are kept automatically (oldest pruned); the hint is shown in the list
  • Pin important snapshots — a pinned snapshot is exempt from auto-pruning and can only be deleted manually
  • Manual delete — remove any snapshot (danger, confirmed) when you no longer need that rollback point

Backup Files management (same tab → "Backup Files"):

  • List every export ZIP (manual + scheduled) with source badge, size, time and your custom note
  • Search by file name or note
  • Inspect / Compare — read-only preview of what the backup contains (sections + per-section counts) and the diff against your current config (zero writes) before deciding to import

🚨 CLI — the first line of defense when DSH is broken

The GUI lives inside DSH — it can't help you if DSH won't start. The dsh-config-manager CLI is completely independent of the DSH runtime (pure Node + the core engine, zero @deepseek-ai/* imports — it runs even when the DSH peer packages are broken or missing). That makes it your first rescue tool when the config is corrupted, the GUI won't boot, or you changed machines and need to bring an environment back.

It is a standalone npm tool, installed separately from the plugin. Install it once on any machine that might need rescuing:

bash
# --omit=peer: the offline CLI only needs js-yaml, not the DSH peer packages
npm install -g dsh-config-manager@latest --omit=peer

⚠️ Installing/updating the plugin (dsh plugin --profile web add ...) only enables the GUI — it does not create the dsh-config-manager command. Run the install command above, then any of the commands below.

All commands (also shown by dsh-config-manager help):

text
dsh-config-manager help                                        # list all commands & options
dsh-config-manager snapshots [--data-dir <dir>]                # list snapshots (newest first)
dsh-config-manager restore [--id <id>] [--dry-run]
                           [--profile <name>] [--settings <path>]
dsh-config-manager reinstall [--version <v>] [--yes] [--list]
                             [--wipe-config] [--dry-run]       # one-click reinstall of DSH itself
dsh-config-manager recover-stale-lock [--data-dir <dir>]       # clear a leftover lock (see below)
dsh-config-manager verify [--id <file|path>] [--json]         # read-only check of backup ZIPs
                          [--data-dir <dir>]
dsh-config-manager backup [--sections <a,b,c>] [--out <path>] # offline file-level backup
                          [--dry-run] [--data-dir <dir>]
dsh-config-manager sessions repair [--home <dir>] [--fix]     # offline session layout repair
                                   [--keep <dir>] [--map old=new]...

reinstall — rescue when DSH is broken. It reinstalls the @deepseek-ai/dsh launcher across platforms (uses the right command per OS: PowerShell on Windows, bash on Unix). By default it reinstalls the launcher + clears global caches; interactively it asks which dangerous clean-up items to include (settings / plugins / session data & credentials) — those are not selected by default, and any destructive choice requires a second confirmation by typing YES before anything runs. Before wiping any ~/.dsh data it makes an emergency backup at .reinstall-backup (the snapshots/ folder is deliberately never touched).

bash
# see the selectable clean-up items
dsh-config-manager reinstall --list

# interactive: pick items, confirm, then reinstall DSH
dsh-config-manager reinstall

# non-interactive: everything checked, skip confirmation
dsh-config-manager reinstall --yes

# wipe config data too (equivalent to checking all data items) — interactive confirm still required
dsh-config-manager reinstall --wipe-config

# preview the exact plan without running anything
dsh-config-manager reinstall --dry-run

Snapshot restore. List and restore the safety snapshots (offline — the restore engine is part of the CLI, so it works whether or not DSH can start):

bash
dsh-config-manager snapshots                                  # list snapshots (newest first)
dsh-config-manager restore --dry-run                          # preview the plan (zero writes)
dsh-config-manager restore --id <snapshot-id>                 # execute (current files are backed up first)

Every overwrite/delete is first copied to <snapshotDir>/pre-restore/ so you can manually change your mind. Exit code is 1 if any action failed; the report honestly lists restored / removedPlugins / manualHints / failed / skipped.

verify — is that old backup still usable? The GUI lives inside DSH, so it cannot answer this when DSH will not start; verify can. It re-reads a backup ZIP from disk without writing a single byte, then reports one verdict per file:

VerdictMeaning
OKStructurally valid and every entry matches its SHA-256 in integrity/checksums.json
MISSINGThe file is not there (wrong path / already deleted)
CORRUPTDamaged or tampered — the message names the exact offending entry
UNSUPPORTEDA valid backup this plugin version cannot read (schema too new, or an encrypted container that must be decrypted first)
VERIFY_ERRORThe check itself failed (disk I/O); never downgraded to a guess

With no argument it checks every *.zip in the exports directory; pass a file name or a path to check just one. Exit code is 1 unless all checked backups are OK — which makes it safe to assert from CI or a scheduled task. --json prints the same result machine-readably.

bash
dsh-config-manager verify                # check every backup in the exports directory
dsh-config-manager verify --json         # machine-readable (exit code still 0/1)
dsh-config-manager verify my-backup.zip  # check a single file by name
dsh-config-manager verify C:/backups/dsh-config.zip   # ...or by path

backup — backup even when DSH is down. This is the offline counterpart of the GUI export: it packs the parts of $DSH_HOME that can be read without the DSH runtime (skills, agent presets, agent instructions, and the plugin’s own config) into a ZIP with the same structure as a GUI export (manifest.json + integrity/checksums.json + section directories), then immediately self-checks what it wrote with the same engine as verify — a backup command that never verified its own output would be worse than none.

Credential files never enter a backup. .credentials.*, .env, *.pem and friends are excluded by an explicit blacklist, only whitelisted directories are walked (never the whole home directory), and symlinks are skipped rather than followed.

Structured sections (settings / UI / providers / plugins / MCP / prompts / workspaces) are not silently faked: they need the DSH service layer to read and redact, so they are left out and marked false in the manifest — the plan printout lists them under “not offline-collectable” so you know exactly what this backup does and does not contain. Use the GUI export when DSH is healthy for a full backup.

bash
dsh-config-manager backup --dry-run                       # list what would be packed (zero writes)
dsh-config-manager backup                                 # write into the exports directory, then self-check
dsh-config-manager backup --out D:/rescue/config.zip      # explicit destination (never overwrites)
dsh-config-manager backup --sections skills,self          # narrow the scope

--sections accepts skills,agentPresets,agentInstructions,self,pluginFiles. pluginFiles is opt-in (as in the GUI): it copies third-party plugin files verbatim, and dsh-ssh.json holds plaintext host passwords — select it only when you have looked at what is in there.

A typical rescue flow when DSH won't start: ① dsh-config-manager reinstall to bring the launcher back (plus any clean-up), ② if DSH reports a session-log error (corrupt session log / duplicate JSONL session id), run dsh-config-manager sessions repair --fix first — it repairs the log layout offline, ③ dsh web to start DSH again, ③ re-add the plugin from the registry, and ④ pull a snapshot from the remote repo (or run dsh-config-manager restore) to bring your config back. The CLI works at every step regardless of DSH's health.

recover-stale-lock — when every operation suddenly fails. Before touching your config, the plugin claims a small environment lock (it records who is operating plus a heartbeat) so that two operations can never write your config at the same time. If a dsh web process is force-killed (Task Manager, kill -9), the lock file survives with a dead owner: the next operation is refused, and it stays refused no matter how often you retry or restart DSH — because the plugin deliberately never removes a lock on its own (a wrong guess could evict a live operation).

Symptoms and the fix:

SymptomMeaningFix
「另一个任务正在运行,请稍后重试。」 / "Another task is running, please retry."A live operation holds the lockJust wait — it clears itself
「检测到上次异常退出残留的配置锁…重试或重启 DSH 均无效」 / relayed in the log as 自动同步已跳过The owner process is proven dead (leftover lock)Run the command below, or use GUI Recovery → 事故恢复 → 回收残留锁
Same message, but the owner PID was reused by an unrelated process (common on Windows)The heartbeat has been stale for a very long time, so the lock is still classified as a leftover oneSame fix — a heartbeat that has not been refreshed for far longer than the stale window is now reclaimable
bash
# safe: it inspects first and refuses unless the owner is proven dead (a live lock is never touched)
dsh-config-manager recover-stale-lock

sessions repair — when DSH refuses to start over a session log. DSH validates that each session log sits exactly where its own header says it belongs: corrupt session log … header id and cwd identify …, or duplicate JSONL session id … in multiple project directories. The plugin cannot help at that point (it only loads inside DSH), so this is the one repair path that works while DSH is down. It reads every session's first-frame cwd and moves the session directory under projectKeyOf(cwd) — the location DSH expects, derived from the log itself, never guessed.

  • Dry run by default (zero writes); --fix performs the moves. Exit code: dry runs always 0, --fix returns 1 if anything failed, conflicted or rolled back.
  • --map old=new (repeatable) is for cross-machine restores: a matching prefix rewrites the first-frame cwd before relocating the directory (every other frame is copied byte for byte). Targets that already exist are never overwritten.
  • --keep <dir> resolves duplicate ids: the copy you name is kept, the others are moved into sessions/.cm-repair-quarantine-<timestamp>/ — moved, never deleted. Without --keep duplicates are reported only.
bash
# see what would move (no writes at all)
dsh-config-manager sessions repair
# apply, mapping a source-machine prefix onto this machine
dsh-config-manager sessions repair --fix --map 'C:/Users/alice=D:/Work'

If the two machines use different DSH base paths (e.g. /opt/dsh/.dsh vs a Windows drive path), the backup records the source base path and the import rebases automatically every path that lives under it (session cwd, workspace path, …) onto your local one — no mapping to type. User mappings still apply afterwards, so you can override anything.

In the content picker, selecting sessions also selects the workspaces that own them (and unchecking a workspace unchecks its sessions).

Cross-machine restores need no extra step in the GUI: exporting sessions now carries the workspaces that own them, and the path mapping you fill in the import wizard rewrites both the workspace paths and the sessions' first-frame cwd (relocating the directories accordingly) before the sessions are attached to those workspaces.

Plugins installed but the backup doesn't see them? Check Settings → DSH Config Manager → About: it now shows which directory / profile the plugin list was read from, and how many plugins were detected. The list comes from $DSH_HOME/profiles/<profile>/package.json → dependencies (plus anything declared in dsh.profile.bundles that is not a dependency), where <profile> is resolved as config.profile → --profile → web. If the shown path is not the profile you installed into (Desktop builds may use a different profile or a different DSH_HOME), that is the cause — align --profile / DSH_HOME with it.

🌐 Behind a proxy? (GitHub login / sync)

Node's built-in fetch() does not read HTTP_PROXY / HTTPS_PROXY by default, so on networks where GitHub is only reachable through a local proxy, "Sign in with GitHub" would previously fail with 请求 GitHub 设备码失败:fetch failed even though your browser and git work fine.

The plugin now routes its own outbound requests through your proxy automatically — just make sure the proxy environment variables are visible to the DSH process:

bash
# macOS / Linux — before starting dsh
export HTTPS_PROXY=http://127.0.0.1:7897
export NO_PROXY=localhost,127.0.0.1
dsh web
powershell
# Windows PowerShell
$env:HTTPS_PROXY='http://127.0.0.1:7897'; dsh web

How it behaves:

  • Covers all plugin egress: GitHub API + device-flow login (fetch) and WebDAV sync (native http/https), including CONNECT tunnelling for https targets;
  • Zero impact when you have no proxy configured — no proxy variables means no behaviour change at all;
  • NO_PROXY is respected (*, exact host, example.com suffix, optional :port);
  • DSH_CONFIG_MANAGER_PROXY=off forces direct connections even when proxy variables exist;
  • Proxy credentials in the URL (if any) are used only for Proxy-Authorization and never logged; the startup log prints a redacted proxy summary so you can confirm whether routing is active;
  • This is plugin-private: it never changes global/process-wide network settings (unlike NODE_USE_ENV_PROXY, which affects the whole host process including model API calls).

Alternative (host-wide): set NODE_USE_ENV_PROXY=1 before starting DSH (Node 24+); note this also routes the host's own outbound traffic, not just this plugin's.

🤖 Agent tools (for AI assistants)

The plugin also registers 5 model tools that an AI agent (a DSH assistant session) can call directly — the same backup / snapshot / sync engines, no GUI needed:

ToolWhat it does
config_backupFull backup of DSH config to the local exports dir — no secrets by default; pass password for an encrypted backup. Returns ZIP name / size / included sections / encryption state
config_list_snapshotsList local rollback snapshots (id / created / source / status / entry count) for use with config_restore
config_restoreRestore to a snapshot. Default is a zero-write plan preview; pass confirm: true to actually execute (overwrites / deletes $DSH_HOME files and uninstalls plugins added during import — destructive, always preview first)
config_sync_pushPush config sync to the remote (Git / WebDAV) using the persisted channel config. Writing the remote is an explicit action; encryption / credentials require password and the engine forces encrypt
config_sync_pullPull a remote diff preview (zero-write: download + analyze only). Landing the diff requires the separate confirm-import pipeline

Once the plugin is installed the tools appear automatically in every agent session (hosts without an agent tools service silently skip registration). The agent calls them when the task matches — e.g. "back up my config", "what snapshots do I have", "restore to that snapshot", "sync to my repo" or "show me the remote diff". Safety invariants are built in: config_restore is dry-run by default, config_sync_pull never writes, config_sync_push is an explicit remote write, and secret values never enter tool inputs / outputs / logs.


🛡️ Security

  • The default backup contains no secret values — a hard invariant, enforced at export
  • Not exported by default: API Keys / passwords / tokens / cookies / sessions / device unique ID / logs & cache / plugin binaries
  • A ZIP is untrusted input: defends against Zip Slip, malicious paths, zip bombs, corrupt archives — any trigger rejects the whole file
  • Logs are fully redacted — secret values never reach logs
  • Encrypted backup (explicit opt-in): secrets are exported only as scrypt + AES-256-GCM ciphertext — random salt & IV per export, never plaintext; the password lives in memory only

🤝 Compatibility

StatusMeaning
✅ ExcellentSame platform, complete sections, supported schema
👍 GoodBackup from an older DSH
⚠️ PartialCross-platform / missing sections / backup newer than target
❌ UnsupportedSchema beyond the supported range (cannot import)

❓ FAQ

Q: Will my API Key be in the backup? Not by default. The default backup never contains any secret value — only records which keys you'll need to re-enter. If you explicitly choose an encrypted backup, secrets are included, but only as scrypt + AES-256-GCM ciphertext (random salt & IV per export) — never plaintext.

Q: Will importing overwrite my existing config? Not silently. Conflicts ask you to choose (Keep Current / Use Imported); the target is auto-backed-up and can roll back.

Q: Does it work across platforms (Windows → macOS)? Yes. Dead absolute paths are detected and remapped (batch replacement supported).

Q: Can a corrupted ZIP still be imported? No. A checksum mismatch rejects the import outright (protects against corruption or tampering).

Q: Will re-importing duplicate things? No. Items are deduplicated by stable IDs (plugin ID / MCP name / skill name…); existing items are skipped.

Q: Why is the console quiet after dsh web — how do I get the plugin logs back? By design. Routine progress logs (mount banner, scheduler skips, export/backup completion) are emitted at info, and the shipped default level is warn — so only warnings and errors reach the terminal. Set DSH_CONFIG_MANAGER_LOG_LEVEL=info (or debug) before starting DSH to bring the verbose lines back.

Q: Does importing an encrypted backup require the password? Yes. The import wizard asks for the export-time encryption password and verifies it before the import can proceed; the password is never saved — memory only. A wrong or missing password blocks the import (credentials are restored from the backup instead of being re-entered when the password is correct).


📋 Known limitations (user-facing)

  1. Installing / updating plugins or MCP takes effect after restarting DSH
  2. Some UI state is not migrated (e.g. task board data, panel widths — they live in the browser, not in DSH's config files)
  3. keybindings / workflow configs / commands — DSH has no such concepts, so nothing is exported for them. Global agent rules are covered by Agent Instructions (~/.dsh/AGENTS.md, injected into every session); per-project AGENTS.md/CLAUDE.md belong to each project's repo and are not migrated
  4. History/session migration is off by default (v1 copies files only)
  5. Encrypted backups: a lost password means the secrets.enc can't be decrypted (by design — keep your password safe)
  6. Snapshot restore is offline and honest: entries the offline engine can't restore (settings namespaces / patch lines when the snapshot has no whole-file backup, workspace records stored in DSH storages) are reported as skipped with a pointer to online rollback; credential values are never auto-written (manual re-entry hint only); old snapshots without a plugin baseline only get a hint to remove added plugins manually

💬 Feedback

Found a bug, a misaligned panel, a button that does nothing — or just have an idea? All of it is welcome. UI problems especially: they are the easiest thing to overlook and the part that real usage should decide.

What you want to sayWhere
🎨 UI problem: misaligned layout, broken styling, dark mode, scaling, a control that does nothingUI issue form — screenshot + browser version is enough
🐛 Something is broken / an error / wrong dataBug report
✨ New feature ideaFeature request
💬 Not sure whether it is a bug — just askingDiscussions
🔒 Security issue / leaked credentialPrivate security advisory (please do not open a public issue)

Report straight from the plugin: Settings → Backup & Migration → About → "Issues"; or hit Copy environment info on that page — plugin version / DSH version / platform are included, so you can paste it into the issue instead of typing version numbers.

Every report gets followed up: a new issue receives an immediate reply and the needs-triage label, and progress is visible in the labels (needs-info → confirmed → fixed). Fixed problems end up in CHANGELOG.md under the release that fixed them, tagged with the issue number (e.g. #38 / #43 / #45) — that is where a report finally lands.

⚠️ Please search for an existing issue first, and strip every API key / token / password — including the ones visible in screenshots and logs.

🙏 Contributors

  • lux-liang (Jialiang Liang) — PR #44: independently fixed the issue #43 "Back up now" false-success bug. Two details from that patch were more robust than the mainline implementation and have been adopted into main: (1) when failed comes back with an empty / whitespace-only error text, fall back to the generic message instead of rendering a dangling "Backup failed:"; (2) an unknown skipReason is mapped to a localized message rather than echoing the raw machine token. In addition, so that GitHub's contributor list records the contribution, commit 1248200 was landed on main through a "keep the commit, take the mainline tree" merge (122317b) — that merge takes none of its code (the resulting tree is byte-identical to the mainline) and exists purely to record authorship, so GitHub now counts this contribution instead of leaving it invisible behind a closed PR.
  • Bug reports: zhyx1996 (#38 sync "Export secrets" did nothing), IPF-Sinon (#39 the .credentials.yaml refs: block was not recognized — they also implemented and machine-tested a fix in their own fork), zerginlaw (#43 "Back up now" silently no-oped while toasting success). Each report drove one fix.

Maintainers & developers: see DEVELOPERS.md for build, testing, auto-publishing and full technical notes.


Product principles: better to migrate one config less than to break your existing config. Every import follows Analyze → Preview → Backup → Apply → Validate → Rollback(if needed); every secret follows never export by default / never log / never expose / never silently transfer.

将 Dsh Config Manager MCP 与多个 AI 模型配合使用

TypingMind 在工作区级别连接 MCP 工具,因此连接 Dsh Config Manager 后,您就可以在 TypingMind 中搭配不同的 AI 模型使用,无需为每个模型单独设置。 此 MCP 通过您设备上的 TypingMind MCP 连接器在本地运行。

本地连接器设置指南

如果 MCP 服务器需要访问您电脑上的本地文件、应用或私有资源,请选择此方式。

1

打开 MCP 设置

在 TypingMind 中,依次前往“设置”、“高级设置”和“模型上下文协议”,然后选择“设置连接器”。

  1. 在您的浏览器中打开 TypingMind。
  2. 点击“设置”图标。
  3. 进入“高级设置”。
  4. 打开“模型上下文协议”部分。
  5. 点击“设置连接器”,然后选择“此设备”。
TypingMind MCP 连接器设置界面,已选择“此设备”
2

运行连接器命令

选择“此设备”,从 TypingMind 复制命令并在终端中运行。使用 MCP 时,请保持该进程运行。

  1. 复制 TypingMind 显示的设置命令。
  2. 在 macOS 上打开“终端”,或在 Windows 上打开 Windows Terminal。
  3. 粘贴并运行命令。
  4. 如果终端询问您是否继续,请确认安装软件包。
  5. 使用 MCP 工具时,请勿关闭终端窗口或停止其中的连接器进程。
3

将 Dsh Config Manager 添加为服务器

当连接器状态为“就绪”时,点击“编辑服务器”,然后粘贴 MCP 服务器配置。

  1. 等待连接器状态显示为“就绪”。
  2. 点击“编辑服务器”。
  3. 粘贴 Dsh Config Manager MCP 服务器配置。
  4. 保存服务器列表。
  5. 如需确认连接器是否仍处于就绪状态,请刷新。
TypingMind MCP 设置界面,显示正在运行的服务器和“编辑服务器”按钮
{
  "mcpServers": {
    "dsh-config-manager": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

在不同模型中使用同一连接

保存服务器列表,打开“插件”,启用 Dsh Config Manager MCP 工具,然后在 TypingMind 中选择任意受支持的 AI 模型,即可在聊天中使用这些工具,或将其分配给智能体。

  1. 在 TypingMind 中打开“插件”页面。
  2. 启用 Dsh Config Manager MCP 工具。
  3. 开始聊天并选择您想使用的 AI 模型。
  4. 在聊天中使用 MCP 工具,或将其分配给 AI 智能体。
  5. 根据需要随时切换到其他 AI 模型,无需重新连接 MCP。
在 TypingMind 聊天中使用已启用的 MCP 工具和选定的 AI 模型
您能使用 Dsh Config Manager 帮我完成这项任务吗?
Dsh Config Manager
当然,我看过了。
以下是我使用 Dsh Config Manager 得到的结果。

常见问题

Dsh Config Manager MCP 服务器有什么用途?

Dsh Config Manager 是一个 MCP 服务器,可让兼容的 AI 客户端连接外部工具并获取上下文。在 TypingMind 中,只需添加一次此 MCP 服务器,即可在您的 AI 工作区中使用其工具。

可以在 TypingMind 中让多个 AI 模型使用 Dsh Config Manager MCP 吗?

可以。TypingMind 在工作区层面连接 MCP 工具,因此您无需为每个模型单独配置 MCP 服务器,就能在 Claude、ChatGPT、Gemini 或您在 TypingMind 中配置的其他 AI 模型中使用 Dsh Config Manager。

为什么在 TypingMind 中使用 Dsh Config Manager MCP?

TypingMind 将多个 AI 模型、提示词、插件、AI 智能体、API 密钥和 MCP 工具整合到同一个工作区中,是最出色的大语言模型聊天前端之一。连接 Dsh Config Manager 后,您可以在偏好的不同模型中使用其 MCP 工具,同时在 TypingMind 中井然有序地管理聊天工作流程。

如何将 Dsh Config Manager MCP 连接到 TypingMind?

Dsh Config Manager 通过 TypingMind 本地 MCP 连接器运行。当 MCP 服务器需要访问您计算机上的本地文件、桌面应用、命令行工具或私有资源时,这种方式最合适。

Dsh Config Manager MCP 在 TypingMind 中提供哪些工具?

Dsh Config Manager 提供 MCP 功能,您可以在 TypingMind 的插件页面启用这些功能,然后在聊天中使用,或将其分配给 AI 智能体。

使用 Dsh Config Manager MCP 需要向 TypingMind 提供我的 API 密钥吗?

不需要。TypingMind 采用本地优先的设计,让您自行选择模型提供商,并自行管理 API 密钥、提示词和 MCP 配置。如果 Dsh Config Manager 需要身份验证,请在创建连接时,为该 MCP 服务器添加所需的请求头、OAuth 设置或本地配置。

相关 MCP 服务器

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇