Sessions and auth
Sessions
Section titled “Sessions”agent-browser-ff session new <name> [--persistent]agent-browser-ff session listagent-browser-ff session use <name>agent-browser-ff session close <name>Pass --session <name> on any command to target a session without switching. See Daemon and sessions.
Storage state
Section titled “Storage state”agent-browser-ff state save auth.jsonagent-browser-ff state load auth.jsonCredentials are encrypted at rest. The vault key is held in the OS keychain (macOS Keychain, Windows Credential Manager, libsecret on Linux). Without a keychain, a passphrase-derived key (scrypt) is used, prompted on a TTY or read from AGENT_BROWSER_FF_VAULT_PASSPHRASE.
agent-browser-ff vault add <key> [--username <u>] [--totp]agent-browser-ff vault listagent-browser-ff vault remove <key>agent-browser-ff vault fill <ref> <key>.username|<key>.password|<key>.totp| Rule | Detail |
|---|---|
| No argv secrets | vault add reads the password from stdin or a TTY prompt, never from arguments |
| Quiet fills | vault fill prints only filled <key>.password into @eN |
| TOTP | <key>.totp generates the current code from a stored seed |
| Errors | Vault problems exit with code 7 |
Secrets never appear in stdout, --json output, logs, error messages, macro files, history, or screenshots of password fields.
A login flow
Section titled “A login flow”agent-browser-ff session new work --persistentagent-browser-ff open https://example.com/login --session workagent-browser-ff snapshot --session workagent-browser-ff vault fill @e2 example.username --session workagent-browser-ff vault fill @e3 example.password --session workagent-browser-ff click @e4 --session workTurn it into a macro
Section titled “Turn it into a macro”Capture the flow, then reuse it:
agent-browser-ff macro from-history example-login --last 6agent-browser-ff login example --macro example-loginLogin macro variables are named username, password and totp. macro from-history produces exactly those when you used vault fill, so login works without edits.
Limits
Section titled “Limits”Use agent-browser-ff only on sites and accounts you are authorized to access. If a CAPTCHA or bot check blocks a site you do not own, stop rather than trying to defeat it.