Bitwarden Secrets
Unlocks a Vaultwarden or Bitwarden vault from Paseo for named secrets and injected environment variables
Unlocks a Vaultwarden or Bitwarden vault from Paseo and gives an agent a named secret as a short-lived
file path instead of the value. The agent asks for an item name, gets a 0600 file that disappears
after the configured lifetime, and never sees the secret in the tool result.
How it works
An Unlock surface opens from the plugin settings, a sidebar row, or the Command Center. The
sidebar row and a composer pill show whether the vault is open, updated live; draft composers show
the same state in their control row. The master
password reaches the CLI through its environment, never through arguments, a settings file, or a log
line. The session key returned by the unlock stays in daemon memory and is forgotten after the
configured lifetime, 30 minutes by default; 0 keeps it until Paseo restarts. Vaultwarden has no
server-side session expiry, so the plugin enforces the limit itself. The optional Remember the
unlock switch also writes the key to a 0600 file under the daemon home, so a restart comes back
unlocked; locking or the end of the lifetime deletes it.
Three tools are attached to every Paseo agent on the daemon: secret_get writes an item's password
to a file and returns its path, secret_list returns the allowlist, and secret_lock locks the
vault and deletes the files. Item names can also be mapped to environment variables; every starting
agent then receives them, which is how model API keys reach a provider without a file. A host-to-item
mapping gives agents a Git credential helper for pushes, backed by a localhost endpoint. A locked
vault injects nothing and the agent starts without those variables; the plugin then sends a
notification that opens its unlock screen. Only item names you mapped are served; anything else is refused
before the CLI runs. Every handed-out secret adds one line to an audit log with the time, the agent
ID, and the item name.
Setup
The daemon machine needs Node 22, and the Bitwarden CLI ships as a production dependency of the
plugin. Enter the Vaultwarden or Bitwarden base URL, the user's email, the collection ID, and the
item mappings in the plugin settings, then unlock with the master password. The server URL must use
HTTPS: the Bitwarden CLI refuses plain HTTP. A private CA has to be trusted by the daemon process
through NODE_EXTRA_CA_CERTS. With two-step login enabled, put the vault's API key into
BW_CLIENTID and BW_CLIENTSECRET on the daemon and turn on API-key login; the master password is
still required to unlock. Agents receive Paseo tools only when the daemon sets
daemon.mcp.injectIntoAgents to true.
Settings and data
The settings document holds the server URL, email, collection ID, the environment and Git mappings, the per-project overrides, the unlock lifetime, the remember switch, the file lifetime, and the display options. It holds no secret. The plugin writes only locally: the handed-out secret files, the audit log under the daemon home, and the Bitwarden CLI's own encrypted vault cache. It sends nothing anywhere except to the configured Vaultwarden or Bitwarden server.
Limits
A handed-out file is plaintext on disk until it expires, and anything running as the daemon user can read it during that window. With Remember the unlock on, the session key is a readable file for as long as it lives, and it opens everything the Vaultwarden user can see. After an unlock, the session key reads everything the Vaultwarden user can see; the collection and the allowlist narrow what this plugin hands out, not what the key can open. The audit log is a plain file, not tamper-proof. The plugin never claims to protect a secret from the agent process itself.





