How to use Deadbolt, a peer-to-peer password manager in Rust Anomaly released Deadbolt, an open-source MIT-licensed password manager written in Rust that syncs vaults directly between devices over iroh with no accounts or central server, and the author tested dev build 0.0.0-dev-278 on a MacBook Pro. The build installs two binaries, deadbolt (24 MB) and deadbolt-enclave (143 KB, which uses Apple's Secure Enclave for Touch ID unlock), and each paired device holds its own local passphrase wrapping a 256-bit device root key rather than sharing one master password. Deadbolt remains in alpha with no stable release and mobile apps still in progress, but its CLI already brokers secrets into commands via deadbolt run, inject and read, sends one-time peer-to-peer secret links, and exposes a built-in MCP server that returns metadata and deadbolt ask commands instead of raw values. How to use Deadbolt, a peer-to-peer password manager in Rust By Flavio https://flaviocopes.com/about/ Install Anomaly's Deadbolt on macOS or Linux, pair devices over iroh with no cloud account, run commands with brokered secrets, send one-time links, and connect AI agents over MCP. Most password managers ask you to create an account on someone else’s server, before you can save a single login. Your vault is encrypted before it leaves your machine, sure, but you still depend on a company’s cloud to sync your devices, manage your subscription, and stay online. Deadbolt https://github.com/anomalyco/deadbolt by Anomaly the team behind OpenCode is taking a completely different route. It’s an open-source, MIT-licensed password manager written in Rust where your devices sync directly with each other over iroh https://www.iroh.computer , with no accounts and no central server. I installed the dev build deadbolt 0.0.0-dev-278 on my MacBook Pro to put it through a real test: creating a vault, pairing a second local device over iroh, auditing passwords offline, brokering API keys into a shell command without letting the child process see the real token, sending a one-time peer-to-peer secret link, and inspecting its built-in MCP server. Deadbolt is still in alpha, so there is no stable release yet, and mobile apps are still in progress. But even at this stage, the CLI and secret-brokering design already solve problems I’ve been thinking about for months. Let’s walk through how to install it, how the peer-to-peer model works, and how to use each part from the terminal. How Deadbolt compares to hosted managers and .env files Before we run any commands, it’s useful to see where Deadbolt fits in compared to tools you might already use, like 1Password or a local .env file. | Feature | Deadbolt 0.0.0-dev-278 | Hosted managers 1Password / Bitwarden | Plain .env file | |---|---|---|---| | Account or vendor server | None | Required unless self-hosting Bitwarden | None | | Device sync | Direct peer-to-peer over iroh, plus optional blind S3, R2, or WebDAV remote | Vendor cloud | Manual copy | | Device passphrases | Separate local passphrase per device plus Touch ID on macOS | One master password across devices | None plaintext on disk | | Command secret injection | deadbolt run , inject , and read with output masking and process taint | op run / op inject / 1Password Environments https://flaviocopes.com/1password-environments/ | Loaded directly into process.env | | HTTP / AWS secret brokering | Built in via deadbolt run --broker and deadbolt ask | Not built in for arbitrary local CLI routes | None | | AI agent MCP server | Built in deadbolt mcp , returns metadata and deadbolt ask commands, never raw values | Separate integrations | Agents can read .env directly | | Mobile apps & Safari AutoFill | In progress macOS, Linux, Chromium unpacked extension today | Mature across desktop and mobile | N/A | | License | MIT | Proprietary 1Password / AGPL-3.0 Bitwarden | N/A | Notice one architectural choice in that table that caught my eye right away. Every device you pair has its own local passphrase wrapping its own local 256-bit device root key instead of sharing one master password across your machines. Install Deadbolt Because Deadbolt has not cut a stable release yet, the install script needs DEADBOLT CHANNEL=dev to pull the latest build from the dev branch. Run this in your terminal on macOS or Linux x64 or arm64 : curl -fsSL https://deadbolt.pw/install | DEADBOLT CHANNEL=dev sh The script checks the SHA-256 hash of the download and installs deadbolt in ~/.local/bin you can override the target directory with DEADBOLT INSTALL . On my Apple Silicon Mac, it installed 2 binaries in that folder: deadbolt 24 MB and deadbolt-enclave 143 KB, the tiny signed helper that talks to Apple’s Secure Enclave to quickly unlock using Touch ID . You can also install the CLI using Bun or npm: bun add -g @deadbolt/cli@dev or npm i -g @deadbolt/cli@dev If you want the native desktop app on macOS, Anomaly ships a universal Deadbolt.app DMG from the repository README https://github.com/anomalyco/deadbolt . On Linux with glibc 2.28+, deadbolt app opens the desktop UI from the same install. Check that the CLI is on your PATH : deadbolt --version Create your first vault and recovery kit Everything in Deadbolt talks to a local background daemon over a Unix domain socket. You don’t need to start it by hand, as the first command will start it for you. Let’s initialize a vault named personal , and give this machine a clear name so we can recognize it later when pairing other devices: deadbolt init personal --device-name macbook-pro When you run init in an interactive terminal, Deadbolt will ask for a local passphrase for this device it will reject passphrases shorter than 8 characters, and it checks the strength of the passphrase using zxcvbn . For scripts or tests, you can pass --passphrase-stdin or set DEADBOLT PASSPHRASE . Once it finishes, check the daemon state with deadbolt status : deadbolt status Here’s what deadbolt init and deadbolt status printed in my terminal: See those 24 words printed during init ? That’s your recovery kit. Deadbolt only shows those words once. Unlike a cloud password manager, there is no “Forgot password” link, and there’s no vendor database that has a copy of your vault. Those 24 words derive a top-level recovery key class = 0 that outranks every individual device. If you ever lose all your devices, those 24 words and a copy of your encrypted vault frames, for example from a blind S3 or Cloudflare R2 remote are what you’ll use to run deadbolt recover and rebuild the vault from scratch. If you look at the Deadbolt data directory on disk, every folder is locked to 0700 and every file to 0600 if file permissions in the terminal are unfamiliar, my free CLI Handbook https://flaviocopes.com/ebooks/cli-commands-handbook/ covers chmod , pipes, exit codes and more in detail . Inside v/