Store Credentials
Add a credential entry to the vault using a logical profile name:GSD_BROWSER_VAULT_KEY. Never pass raw credentials in agent prompts or CLI history — store them once here and reference the profile name everywhere else.
Log In Automatically
Use a stored credential profile to navigate to the configured login page and complete the form automatically:vault-login command navigates to the URL stored in the profile, finds the login form, fills the username and password fields with the stored values, and submits the form. No credentials appear in your shell history or process list.
In MCP mode, use the
browser_vault_login tool with the same profile parameter. The robust_login_flow built-in prompt also integrates with the vault automatically.Save and Restore Session State
After a successful login, save the authenticated browser context so future runs can skip the login step entirely:Save the session state
List Vault Profiles
List all stored credential profiles (values are never shown):Full Authenticated Automation Workflow
Best Practices for AI Agents
Never pass credentials in prompts
Store credentials with
vault-save during initial setup. In all agent prompts and MCP calls, reference the vault profile name — the agent never sees the actual password.Use restore-state to skip login
For repeated automation runs, restore a saved session instead of logging in each time. This is faster and eliminates the risk of triggering bot-detection on the login page.
Re-login when sessions expire
Session state has a finite lifetime. When
restore-state followed by a navigate lands on the login page, repeat the vault-login → save-state cycle to refresh the stored state.Validate redaction before sharing
Run
gsd-browser recording-validate on any evidence bundle that was captured in an authenticated session. The validator confirms that cookies and tokens were stripped before export.