Introduction¶
DeepSeek Harness (DSH) agent development requires managing a large number of accounts, passwords, and API keys. Traditional approaches—writing them down in local notes or exposing them directly to the model context—have both security and usability issues. DSH’s plugin architecture allows this kind of need to be addressed by community plugins. This article introduces a local credential vault plugin: it stores credentials in the browser’s localStorage, the Host only receives masked metadata, and it provides a default-masked Agent reading tool.
Plugin Overview¶
This is a DeepSeek Harness sidebar plugin, published by maintainer mysterycode-liwen, classified under admin-security. It centralizes credentials such as accounts/passwords, API keys, and recovery codes on the local machine, providing access password, idle auto-lock, health audit, and encrypted backup capabilities. It also allows Harness to read credential information through an Agent tool in a masked view.
Core Features¶
Sidebar Credential Panel¶
After installation, a “Credential Vault” entry appears in the sidebar. Clicking it reveals three independent credential forms:
- Account/Password: Title / Account / Password / Login URL / Notes
- API Key: Title / Platform / Key / Base URL / Expiry Date / Notes
- Other: Title / Arbitrary Text (e.g., recovery codes, licenses) / Notes
Supports search, type filtering, and sorting by most recently updated / name / type. With a large number of entries, browse via a scrollable list. Each credential entry can be shown/hidden, copied to clipboard, edited, or deleted.
Password Generator¶
Click “⚙ Generate” next to the account/password fields to generate a strong password using cryptographically secure random numbers (Web Crypto). You can set length and character types, avoid easily confused characters, and see real-time strength feedback. The generated result can be directly filled into the form or copied. This feature is only available for account/password type entries.
Health Audit¶
Click “🛡 Health Audit” to scan all credentials, listing weak passwords/empty keys, reused credentials, expired/near-expiry issues, sorted by severity. Clicking an entry jumps directly to the edit page.
Access and Import/Export¶
There is an “Access” button next to the Login URL / Base URL fields, which opens the URL in DSH’s built-in browser by default. Import/Export supports four formats:
- Encrypted backup: All plaintext is encrypted with AES-GCM using your configured password; a password is required to import. Suitable for backup/migration.
- JSON backup: Retains all fields (plaintext).
- CSV: UTF-8 with BOM, opens directly in Excel/WPS, Chinese headers with commonly used columns first.
- Markdown cards: One card per credential entry, empty fields are automatically omitted.
On import, the format is auto-detected. If an encrypted backup is encountered, you will be prompted to enter the password for decryption. Supports merge or replace.
Settings Page¶
The settings page allows you to enable/change the access password, reset security question, enable idle auto-lock (toggle on/off and set duration), access audit (view in-memory log of model metadata reads), and check plugin version and updates.
Installation and Enablement¶
Install via npm (recommended):
dsh plugin --profile desktop add @mysterycode-liwen/dsh-credential-vault
You can also search for credential vault in DSH’s “Settings → Plugins → Plugin Marketplace” (visible after the marketplace index is refreshed).
After installation, please restart DSH or disable and re-enable the plugin in plugin management to ensure Host-side tool registration succeeds.
Typical Usage¶
- Install the plugin and restart DSH.
- In the sidebar, click “Credential Vault”, then click “+” to add a new account/password entry.
- Go to “Settings → Credential Vault” to decide whether to enable the access password and idle auto-lock.
- In DSH, have the Agent call the
dsh_credential_vault_readtool, which returns only the masked view by default.
Security Notes¶
- Plaintext is stored only in the browser’s localStorage—unencrypted and not synced across devices. The Host has no disk mirror; snapshots are memory-only and cleared on restart.
- The plugin performs no network uploads. Browser-to-Host sync transmits only masked metadata; key plaintext never leaves the browser.
- The Agent tool
dsh_credential_vault_readalways displays passwords/API keys/text bodies as••••••••. TherevealSecretsparameter has been disabled, and plaintext never enters the model context. - Encrypted backup export derives an AES-GCM key via PBKDF2-SHA256 (210,000 iterations) using the configured password to encrypt all plaintext. The file contains no plaintext; the password is not stored and is unrecoverable if lost.
- Full exports (JSON/CSV/Markdown) contain plaintext passwords/API keys. Handle them with the same care as passwords themselves and delete promptly after use. For cross-platform or offsite backups, prefer the encrypted backup.
- The access audit is an in-memory ring buffer (up to 200 entries), recording only metadata such as tool name / operation / query parameters / entry count. No plaintext is included, and it is cleared on restart.
- The access password and idle lock are UI-layer protections. For drive-level encryption, use BitLocker/FileVault or similar.
FAQ¶
I can’t find it in the sidebar or settings after installing: Most likely the browser-side module didn’t mount. The id in window.__ModuleLoader__.load({ id }) in client.js must equal the name in package.json. DSH looks up modules in the browser module table by package name. Restart DSH first after installing; if it’s still missing, run npm run check (see release notes).
The Agent says the dsh_credential_vault_read tool doesn’t exist: Host-side tools are registered when the Harness starts. Restart the Harness or disable and re-enable the plugin in plugin management.
Where is the data stored? Will it be lost if I switch machines or reinstall? Plaintext is stored only in the browser’s localStorage. The Host only has an in-memory masked snapshot (cleared on restart; there is no longer a vault.json mirror file). Switching machines won’t carry data over automatically. Use “Export → Encrypted Backup” to generate an encrypted file (remember the password), then import it on the new machine and enter the same password to decrypt.
Which export format should I choose? Encrypted backup (recommended for backup/migration)—all plaintext is encrypted with AES-GCM using your password, and the file contains no plaintext. JSON has the most complete fields, including plaintext. CSV has UTF-8 BOM; double-click in Excel/WPS and Chinese displays correctly. Markdown produces one card per credential entry with Chinese labels in a two-column layout. Import auto-detects the format.
Does it support multi-device sync? No, and it’s not planned. This plugin’s positioning is “a local vault that stays off the cloud.”
Is dsh-credential-vault on npm this project? No. That’s another author’s package. This project is only published under the @mysterycode-liwen/dsh-credential-vault scope.
Applicable Scenarios and Cautions¶
Suitable for DSH users who need to centrally manage credentials such as accounts/passwords, API keys, and recovery codes. Before installing, review the source code and license. The plugin runs with the current DSH process permissions—do not use it on public/shared computers.
Conclusion¶
The Credential Vault plugin provides DSH with a local, masked, and controllable credential management solution, suitable for scenarios that require balancing security and usability. See the catalog page and GitHub repository for full documentation.