Introduction¶
The core philosophy of DeepSeek Harness (DSH) is “Everything is a plugin.” When developing or using agents, scenarios requiring access to password vaults, API keys, or TOTP codes are frequent. The traditional method of manual copy-pasting is inefficient and poses security risks.
buvkb/dsh-vaultwarden is a plugin that connects to Vaultwarden or Bitwarden servers. It does not rely on the local bw CLI but communicates directly with the server via REST API and SignalR protocols, providing DSH with real-time synchronization, read/write tools, and a visual item browsing panel.
Core Capabilities¶
The plugin provides the following core features:
- Real-time Sync Engine: Supports WebSocket (SignalR) push, reflecting server changes instantly locally. If WebSocket is unavailable (e.g., not allowed by reverse proxy or older servers), it automatically degrades to polling (30–120 seconds) and automatically upgrades back to WebSocket when available. Supports rate-limiting auto-backoff.
- 9 Global Tools: Including search, fetch field, status check, force sync, folder management, restore item, create, update, and delete items.
- System Prompt Injection: Can inject guidance globally, prompting the model to search the credential vault for information first instead of directly asking the user.
- Item Browsing Panel: Provides a hierarchical partition menu (All, Favorites, Logins, Types, Folders, Archive, Trash), supporting search, list display, detail view, and TOTP countdown (SVG icon).
- Authentication Channel: The panel fetches data via the
/apiconnection RPC, utilizing the operator’s already authenticated session; the plugin does not create its own HTTP routes. - Configuration Form: Supports 12 configuration fields covering server address, login credentials, sync strategy, permission tiers, and session management.
Configuration¶
The plugin supports configuration via the DSH settings interface, environment variables, or a combination of both.
1. DSH Settings Interface
Configure under Settings → Plugins → Plugin Configuration → Bitwarden / Vaultwarden Vault. The master password and API key are write-only fields.
serverUrl: Server address, e.g.,https://vault.example.com.email: Login email, must match the account, used as the KDF salt.masterPassword: Master password used to decrypt the vault.apiKeyClientId/apiKeyClientSecret: Optional. Use API key login to bypass Two-Step Login.websocket: Enable WebSocket real-time notifications (enabled by default).pollIntervalSeconds: Fallback polling interval when WebSocket is unavailable (default 300 seconds).cacheMinutes: Duration of in-memory cache after unlocking (default 30 minutes).localCache: Local encrypted cache (enabled by default) for fast startup and change detection.deviceIdentifier: Optional device identifier. If left blank, it is deterministically derived from “Server + Email”.accessMode: Write permission control.readonly(default, rejects write-back),ask(requires user confirmation),auto(direct write-back). This restriction only applies to model tools; manual operations via the panel are not restricted.sessionDays: Number of days to retain the login session (default 30).repromptGrantMinutes: Memory duration for re-verifying entries (default 5 minutes).
2. Environment Variables
Supports the following environment variables (with or without the DSH_ prefix):
SERVER_URL, EMAIL, MASTER_PASSWORD, CLIENT_ID, CLIENT_SECRET, DEVICE_ID.
Usage¶
The plugin provides various tools for the model to call.
1. Search and Fetch
* bitwarden_find: Search items. Supports queries by name, username, URL, notes, etc. Passwords, archived, and trashed items are excluded by default.
bitwarden_find { "query": "github" }
bitwarden_get: Fetch fields of a specific item.
bitwarden_get { "id": "…", "field": "password" }
bitwarden_get { "id": "…", "field": "totp", "waitFresh": true }
bitwarden_status: Check status.
bitwarden_status { "refresh": true }
2. Sync and Maintenance
* bitwarden_sync: Force synchronization.
bitwarden_sync { }
bitwarden_folders: Get folder list.
bitwarden_folders { }
bitwarden_restore: Restore from trash.
bitwarden_restore { "id": "…" }
3. Write Operations
Write operations require accessMode to be ask or auto.
* bitwarden_create: Create a new item.
bitwarden_create { "name": "New Site", "username": "…", "password": "…" }
bitwarden_update: Update an item.
bitwarden_update { "id": "…", "password": "newpassword" }
bitwarden_delete: Delete item (soft delete).
bitwarden_delete { "id": "…" }
TOTP Usage Note:
TOTP codes are valid for only 30 seconds. If waitFresh is used, the plugin will wait for a window with at least minRemaining seconds (default 20) remaining before returning, to avoid getting a code that is about to expire. The freshFor field returns the number of seconds remaining for the code.
Notes¶
- Node Version: Requires Node.js >= 22.
- Dependencies: Does not rely on the
bwCLI; uses Node built-in modules except for the optionalhash-wasm(Argon2id KDF). - Permissions: The plugin runs with the permissions of the current DSH process. Check source code and licenses before installation.
- Panel Permissions: Panel operations are executed via RPC of the authenticated session and are not restricted by
accessModewrite permissions, but please operate with caution. - Permanent Deletion: Neither the panel nor RPC provides an entry for permanent deletion. Permanent deletion requires using the
bitwarden_deletetool withpermanent: trueandconfirm: true.
Conclusion¶
dsh-vaultwarden integrates Bitwarden/Vaultwarden into the DSH workflow through WebSocket real-time sync and convenient tool interfaces, making it suitable for agent scenarios that require frequent access to credentials.