Follow-up to #106480. Sites that ask for a code after the password stopped the agent cold: the login classifier excludes one-time-code fields on purpose (a password must never land in an OTP box) and there was no tool for the second step, so the only move was to ask in chat. browser_vault_enter_code Fills the one-time code the current page asks for. Two sources, same invariant as passwords (the code goes to the page over the supervisor socket and never enters model context): - a TOTP seed on the login: local vault `otp_secret` (RFC 6238, stdlib, verified against the RFC test vectors), 1Password `op item get --otp`, Bitwarden `bw get totp`. Nobody is asked. - no seed: the surface prompts "Verification code for {site}"; the user types what their phone/email/app shows. Enter on empty / Skip declines and the tool returns code_declined ("do not ask again this turn"). no_code_field tells the model the site wants a passkey / hardware key / app approval: hand it to the user's device and wait for navigation. Per-digit OTP boxes (maxlength=1 pattern) get one digit each in DOM order. Surfaces CLI: sudo-style panel, code shown as typed (not a secret worth masking, typos must be visible), Enter submits, ESC/empty skips. Desktop: "Verification code for {site}" card via vault.code.request / vault.code.respond (gateway), owner-routed like the other vault prompts. Settings → Passwords & Logins: optional "Authenticator key" field on the add form (base32 or otpauth:// link); items with one show a "2FA auto" badge. `hermes vault add` asks for the same optional key. browser_vault_fill's result now says what to do next ("if the site asks for a verification code, call browser_vault_enter_code with this handle"). Six locales. Verified live (real model, local 2FA site that checks the TOTP; CLI PTY): A. login saved with authenticator key → signed in through 2FA, zero prompts, code/password absent from the transcript B. login without key → code panel → user types code → signed in C. panel dismissed → agent stops and explains, never asks in chat Unit: RFC 6238 vectors, seed normalisation, mint-without-asking, per-digit spread, decline, no-code-field; Desktop card test (owner routing, trim, Skip).
5.4 KiB
title, description
| title | description |
|---|---|
| Passwords & Logins | The agent signs into sites, pays and fills addresses for you without ever seeing a password. |
Passwords & Logins
Say "log into GitHub" and the agent signs in for you. The first time it reaches a sign-in page it has no login for, it asks you, right there, in a masked prompt. After that it just works. Passwords are encrypted on this machine and injected straight into the page; the model never sees them.
There is nothing to set up.
What it looks like
CLI / TUI
🔐 Save login for github.com
The agent reached a sign-in page with no saved login for this site.
Type the email / username you sign in with (shown), then Enter.
...
Now the password (hidden). It is encrypted on this machine, bound to
https://github.com, and filled into the page without the model ever seeing it.
Desktop — a "Save your github.com login?" card with an identifier field and a masked password field. Save & sign in stores it and continues; Don't save tells the agent to stop asking for this turn.
From then on the agent lists your saved logins, types the identifier itself and
fills the password through Hermes. The tool result it sees is
{filled_fields: 1, origin: "https://github.com"}; the password is also
registered with the redactor so a later page read cannot echo it back.
Two-factor codes
Sites that ask for a code after the password are handled the same way:
- Authenticator key saved with the login (the "setup key" or
otpauth://link a site shows when you enable 2FA; 1Password and Bitwarden items that hold a TOTP seed count too): Hermes generates the current code and enters it. Nobody is asked. Add the key in Settings → Passwords & Logins → Add orhermes vault add; the item shows a 2FA auto badge. - Code sent to your phone or email: a small prompt appears in your surface ("Verification code for github.com"), you type the code, Hermes enters it into the page. The code never enters the conversation either.
- Passkeys, hardware keys, app approvals ("tap Approve in Duo"): nothing to type. The agent tells you to complete it on your device and waits for the page to move on.
Already using 1Password or Bitwarden?
Nothing to enable. If the op or bw command-line tool is installed and signed
in, Hermes picks it up automatically and its website logins become fillable
alongside the local ones. The first time the agent needs one of those logins it
asks you to unlock the manager with your master password (masked prompt; once
per session, 30 minutes idle). Hermes hands the master password to the manager's
CLI through its non-interactive channel (op signin on stdin, bw unlock --passwordenv in the child's environment) and keeps only the session token in
memory. The agent never sees the master password, the token, or any login.
Prefer not to use a detected manager? hermes vault sources --disable bitwarden,
or the switch in Settings → Passwords & Logins.
Paying and filling addresses
Cards and addresses work the same way as logins: saved once (Settings →
Passwords & Logins → Add, or hermes vault add), bound to the checkout site,
and filled by the agent on that site only. Every card fill asks you first,
with the same approval prompt as a dangerous command; declining writes nothing.
Headless sessions (cron, webhooks, the API server) cannot confirm and are
refused, so a prompt injection that reaches a checkout page can ask, but it
cannot spend. Address fills need no confirmation.
Managing what's saved
- Desktop → Settings → Passwords & Logins: everything saved, the detected password managers with Unlock/Lock, Add, Remove.
- CLI:
hermes vault list,hermes vault add,hermes vault rm <handle>,hermes vault sources.
Items live encrypted under ~/.hermes/vault/ (Fernet key + vault file, both
0600), scoped to the profile. Labels, site origins and login identifiers are
visible metadata; passwords and card values never leave the vault except into
the page.
Headless sessions
Cron jobs, webhooks, the API server and hermes chat -q have nobody to answer a
prompt. Saved local logins keep working there; a locked password manager reports
unavailable_in_this_session and a missing login reports prompt_unavailable.
Unlock or save from an interactive session first, or give 1Password a service
account token (OP_SERVICE_ACCOUNT_TOKEN).
vault:
onepassword:
enabled: false # opt OUT of a detected manager (default: on when installed)
account: "" # `op --account` shorthand; empty = default
service_account_token_env: OP_SERVICE_ACCOUNT_TOKEN
bitwarden:
enabled: false
What this does and does not guarantee
Does: the password never enters the model's context through Hermes: not in tool results, logs, the session database, or the CLI arguments of any process. Fills happen over the supervised browser session's direct CDP socket and are refused unless the page origin exactly matches the saved origin, checked again inside the page immediately before the write.
Does not: protect against the page itself. Once a password is typed into a site, that site (and any script it runs) has it, exactly as when you type it yourself. On a cloud browser backend the vendor's browser sees the page like any other. The origin binding is the guard against filling on the wrong site, not against a compromised right one.