Bitwarden
Bitwarden holds passwords, authenticator codes, and ordinary passkeys. The account is dub@podval.org on https://bitwarden.com. Chrome's password manager stays off, so
Google does not become a second vault. PINs and recovery codes are not written in this note. Which
application on a hardware key does what is in [[YubiKey]].
Table of Contents
Install
Arch packages bitwarden 2026.3.1 (desktop) and bitwarden-cli 2026.2.0
(bw). Desktop state is ~/.config/Bitwarden. CLI state is ~/.config/Bitwarden CLI.
What lives where
Ordinary site logins, their authenticator codes, and their passkeys stay in the vault. A passkey in the vault syncs with it and is as safe as the vault.
An account that should survive a lookalike page gets a hardware security key. That registration is FIDO, in the browser, not the CLI. The same account gets a backup key, and the site's recovery code lives somewhere other than only inside the vault. A recovery code that exists only in the vault is unreachable when two-step is what is blocking login.
Chrome still shows a passkey picker. For an ordinary site, pick the Bitwarden extension. For an account with a hardware key, pick the security key.
[[X Money]] is the case where the extension takes a passkey request and does not hand it back.
CLI login
bw and the desktop app do not share an unlock. The CLI cannot offer a security key, a
passkey, or Duo. In bw 2026.2.0, supportsWebAuthn() and supportsDuo() are hard-coded false. The interactive menu offers only the methods the account has
that this CLI can perform: an authenticator code, an email code, or YubiKey. YubiKey in that menu is the
OTP string typed by a key. It is not a FIDO touch, and it does not use the FIDO PIN or the OpenPGP PIN.
This account's CLI two-step method is YubiKey. Both hardware keys have their OTP registered, so either
one can answer that prompt. Both are also registered as FIDO2 security keys for the website. The CLI
cannot use the FIDO2 method.
$ bw login
The prompts are the email address, the master password, then the two-step method and its code. A new device may also ask for a code sent to the login email. Do not put the master password or a two-step code on the command line.
Touch a key only when the prompt is the YubiKey code, and only a key whose OTP is registered on the account. A backup key does not count until its own OTP is registered. A touch on the email, master-password, or authenticator prompt types the OTP string into that field, and Bitwarden rejects it. An authenticator or email code is typed by hand.
On success the CLI prints a BW_SESSION export. Run that export in the same shell. The
session key is what unlocks the vault for later bw commands in that shell. It is a secret.
bw status then reports unlocked.
Closing the shell drops the session key. The account stays logged in and bw status
reports locked. bw unlock asks for the master password again, prints a new
session key, and does not ask for two-step. bw logout returns unauthenticated,
and the next bw login asks for two-step again.
If the account's only two-step method is WebAuthn, the CLI reports that no provider is available. Create an API key in the web vault, then:
$ bw login --apikey
$ bw unlock
--apikey prompts for the client id and client secret. bw unlock prompts for
the master password.
Backlinks
YubiKey10
- ...e private homelab inventory, not in this note. PINs live in [[Bitwarden]] , not here.
- Only for the [[Bitwarden]] CLI, and only if that account method is turned on. Not used...
- No. Those codes live in [[Bitwarden]] . Can be disabled.
- ...FIDO2 PIN and both OpenPGP PINs are set. The values are in [[Bitwarden]] . OTP slot 1 is the factory Yubico OTP, registered on the [[...
- ...]]. OTP slot 1 is the factory Yubico OTP, registered on the [[Bitwarden]] account. Slot 2 is empty. The 5C has not been changed to ma...
- ...2. Both physical keys are registered on Google, GitHub, the [[Bitwarden]] account, and Cloudflare, the registrar. Backup codes for th...
- ...lare, the registrar. Backup codes for those accounts are in [[Bitwarden]] . A second-factor security key uses no slot. A passkey is a...
- ...h passkeys stay in the vault, and how bw login works, is in [[Bitwarden]] .
- A static password in an OTP slot is a bad substitute for [[Bitwarden]] . The key types it into whatever is focused. OATH copies the...
- ...wn in the table above, factory slot 1 OTP registered on the [[Bitwarden]] account, and OpenPGP key 5643F2497D805A8B. That key is Ed25...