Install
openclaw skills install browser-secureClawHub Security found sensitive or high-impact capabilities. Review the scan results before using.
Secure browser automation with Chrome profile support, vault integration, approval gates, and comprehensive audit logging. Use for authenticated sites, sensitive operations, or compliance requirements.
openclaw skills install browser-secureSecure browser automation with vault-backed credentials, approval gates, and audit trails.
"Never trust, always verify, encrypt everything, audit all actions"
# Open the welcome page (default when no URL provided)
browser-secure navigate
# Navigate to a public site
browser-secure navigate https://example.com
# Navigate with auto-vault credential discovery
browser-secure navigate https://app.neilpatel.com/ --auto-vault
# Navigate to an authenticated site (pre-configured)
browser-secure navigate https://nytimes.com --site=nytimes
# Perform actions (fully automated)
browser-secure act "click the login button"
browser-secure extract "get the article headlines"
# Use interactive mode (with approval prompts)
browser-secure navigate https://bank.com --interactive
# Close and cleanup
browser-secure close
The --auto-vault flag enables interactive credential discovery from your password manager:
browser-secure navigate https://app.neilpatel.com/ --auto-vault
This will:
app.neilpatel.com → neilpatel)🔍 Auto-discovering credentials for app.neilpatel.com...
📋 Found 2 matching credential(s) in Bitwarden:
1) Neil Patel Account
Username: user@example.com
2) Ubersuggest API Key
n) None of these - try another vault
m) Manually enter credentials
Select credential to use (1-2, n, or m): 1
🔐 Retrieving credentials for neilpatel...
Save this credential mapping for future use? (y/n): y
✅ Saved credential mapping for "neilpatel" to ~/.browser-secure/config.yaml
Default vault provider set to: Bitwarden
After saving, you can use the simpler command next time:
browser-secure navigate https://app.neilpatel.com/ --site=neilpatel
Create isolated Chrome profiles for secure automation with automatic welcome page setup:
# Create a new profile with welcome page
browser-secure profile --create "Funny Name"
# Create and immediately launch Chrome
browser-secure profile --create "The Crustacean Station 🦞" --launch
# List all Chrome profiles
browser-secure profile --list
When you create a new profile, it opens with a custom welcome page that guides you through:
| Aspect | Personal Profile | Automation Profile |
|---|---|---|
| Extensions | Your personal ones | Only automation extensions |
| Cookies | Personal logins | Isolated session state |
| Security | Shared with daily browsing | Locked down, audited |
| Cleanup | Manual | Automatic session timeout |
Browser Secure can use your existing Chrome profiles, giving you access to saved cookies, session state, and existing website logins.
browser-secure navigate https://example.com --list-profiles
Output:
📋 Available Chrome profiles:
1. Person 1 ★
ID: Default
Path: /Users/river/Library/Application Support/Google/Chrome/Default
2. Work
ID: Profile 1
Path: /Users/river/Library/Application Support/Google/Chrome/Profile 1
# By profile ID
browser-secure navigate https://gmail.com --profile "Default"
browser-secure navigate https://gmail.com --profile "Profile 1"
# Interactively select
browser-secure navigate https://gmail.com --profile select
| Mode | Cookies | Logins | Extensions | Use Case |
|---|---|---|---|---|
| Incognito (default) | ❌ None | ❌ None | ❌ None | Secure, isolated testing |
| Chrome Profile | ✅ Yes | ✅ Yes | ✅ Yes | Access existing sessions |
Chrome holds an exclusive lock on its user data directory. When you pass
--profile, browser-secure needs to quit any running Chrome instance first
before it can reuse that profile's cookies, logins, and extensions.
What to expect the first time you use --profile:
osascript 'tell application "Google Chrome" to quit' on macOS;
SIGTERM via pkill on Linux). Chrome saves session state normally.browser-secure close or session timeout), the
launched Chrome closes too. You have to relaunch Chrome yourself
afterwards — browser-secure won't reopen it for you.Save your work before running anything with --profile. In-flight
tabs, unsubmitted form data, and anything not persisted will be handled
by Chrome's normal shutdown (session restore will bring tabs back on
next launch, but form data typically won't survive).
Unattended mode requires an explicit opt-in:
# Interactive — you'll be prompted to approve the quit
browser-secure navigate https://gmail.com --profile Default
# Unattended — must pass --close-chrome, otherwise throws
browser-secure navigate https://gmail.com --profile Default --unattended --close-chrome
Without --close-chrome in unattended mode, browser-secure errors out
rather than silently closing your Chrome.
Security Note: When --profile is set, Chrome launches against the real
profile directory, so it will update cookies, history, preferences, and
session storage in that profile as it normally would. For true isolation
run without --profile (default), or create a dedicated automation
profile (browser-secure profile --create …) rather than pointing at
your personal Default profile.
By default, each navigate command launches a new Chrome instance and closes it after the task. This is secure but slow on repeated tasks.
Daemon mode keeps Chrome running persistently with a debug port, so subsequent tasks open new tabs in the same Chrome session — cookies, logins, and state are preserved across tasks.
# Start the daemon (one-time per session)
browser-secure daemon start --profile Default
# Run multiple tasks — each opens a new tab in the same Chrome
browser-secure navigate https://mail.google.com
browser-secure navigate https://github.com
browser-secure act "click the notifications icon"
# Stop when done
browser-secure daemon stop
navigate with a profile → connects to daemon if one is running for that profile; opens a new tab in the existing Chrome.daemon stop cleanly terminates the Chrome daemon process.browser-secure daemon start # Start with Default profile
browser-secure daemon start --profile Default # Explicit
browser-secure daemon status # Show daemon status
browser-secure daemon stop # Stop daemon
browser-secure status # Shows daemon + session info
Daemon: RUNNING
Profile: Default [Default]
PID: 12345
Uptime: 5m 32s
Started: 2026-03-31T08:00:00.000Z
Session: INACTIVE
On macOS, Chrome cannot start as a separate debugging instance when it is the default browser. The daemon automatically handles this by:
Your tabs in normal Chrome are unaffected by the daemon.
The easiest way—just ask Clawdbot:
Hey Clawdbot, install browser-secure for me
Clawdbot will handle everything: check prerequisites, auto-install dependencies, build, and configure.
If you prefer full control or are developing on the tool:
# Clone the repository
git clone https://github.com/openclaw/openclaw.git
cd openclaw/skills/browser-secure
# Run interactive setup
npm run setup
This will:
The setup automatically handles:
brew is available (recommended vault)brew is available (optional)After setup, configure your preferred vault using environment variables (recommended) or direct CLI login:
Unlock the vault manually and pass the session token via environment — your master password never touches disk.
# Bitwarden (recommended - free)
brew install bitwarden-cli # if not auto-installed
bw login
export BW_SESSION=$(bw unlock --raw)
# 1Password (if you have a subscription)
brew install 1password-cli # if not auto-installed
op signin
# Test vault access
browser-secure vault --list
⚠️ Security Note:
.envstores credentials in plaintext. Only use this on trusted, private machines. Prefer Option A whenever possible.The
.envfile lives in the parent skills/ directory (one level abovebrowser-secure/), not inside this skill. This keeps credentials out of the skill's source tree. Override withBROWSER_SECURE_ENV=/path/.env.
cd ~/.openclaw/workspace/skills
cp .env.example .env
chmod 600 .env
# Edit .env with your credentials
Session Token (preferred — no master password on disk):
# skills/.env
BW_SESSION=$(bw unlock --raw) # paste the output
Full Automation (API Key + Master Password — highest risk):
# skills/.env — only on a trusted, single-user host
BW_CLIENTID=user.xxx-xxx
BW_CLIENTSECRET=your-secret-here
BW_PASSWORD=your-master-password
How it works:
BW_CLIENTID/BW_CLIENTSECRET → Authenticates with Bitwarden (replaces username/password)BW_PASSWORD → Decrypts your vault (required for automated access)browser-secure --version
browser-secure navigate https://example.com
browser-secure screenshot
browser-secure close
Recommended — free for personal use, open source, cross-platform.
# Install
brew install bitwarden-cli
# Setup .env file (lives in parent skills/ dir, not inside this skill)
cd ~/.openclaw/workspace/skills
cp .env.example .env
chmod 600 .env
# Edit .env and add:
# BW_CLIENTID=your-api-key-id
# BW_CLIENTSECRET=your-api-key-secret
# BW_PASSWORD=your-master-password
# Use - credentials auto-loaded from .env
browser-secure navigate https://app.neilpatel.com/ --auto-vault
Authentication vs Unlock:
BW_CLIENTID/BW_CLIENTSECRET) → Logs you into BitwardenBW_PASSWORD) → Decrypts your vault contentsGet API Key: https://vault.bitwarden.com/#/settings/security/keys
Alternative — if you already have a 1Password subscription.
# Install
brew install 1password-cli
# Login
op signin
eval $(op signin)
# Use
browser-secure navigate https://app.neilpatel.com/ --auto-vault
Fallback — store credentials in macOS Keychain (no cloud sync).
Emergency fallback — set credentials via env vars:
export BROWSER_SECURE_NEILPATEL_USERNAME="user@example.com"
export BROWSER_SECURE_NEILPATEL_PASSWORD="secret"
browser-secure navigate https://app.neilpatel.com/
| Command | Description |
|---|---|
navigate | Open welcome page (default when no URL provided) |
navigate <url> | Navigate to a URL |
navigate <url> --profile <id> | Use specific Chrome profile |
navigate <url> --profile select | Interactively choose Chrome profile |
navigate <url> --list-profiles | List available Chrome profiles |
navigate <url> --auto-vault | Auto-discover credentials (Bitwarden → 1Password → manual) |
navigate <url> --site=<name> | Use pre-configured site credentials |
profile --create <name> | Create new Chrome profile with welcome page |
profile --create <name> --launch | Create profile and launch Chrome |
profile --list | List all Chrome profiles |
act "<instruction>" | Natural language action |
extract "<instruction>" | Extract data from page |
screenshot | Take screenshot |
close | Close browser and cleanup |
status | Show session status |
audit | View audit logs |
When you run browser-secure navigate without a URL, it opens the welcome page located at:
~/.openclaw/workspace/skills/browser-secure/assets/welcome.html
The welcome page provides:
Pro tip: Use the welcome page as your starting point for new profiles:
# Create a profile, then immediately open welcome page
browser-secure profile --create "Work Automation" --launch
# Then in another terminal:
browser-secure navigate # Opens welcome page in the active session
browser-secure operates in unattended mode by default, making it ideal for agent automation while preserving safety guardrails.
# All commands run unattended by default - no interactive prompts
browser-secure navigate https://example.com
browser-secure act "fill the search form"
browser-secure extract "get all links"
In this mode:
--skip-approval or --interactiveFor sensitive operations, use --interactive to enable approval prompts:
# Enable tiered approval gates
browser-secure navigate https://bank.com --interactive
# Approve individual actions
browser-secure act "transfer $1000" --interactive
Approval tiers in interactive mode:
| Tier | Actions | Approval |
|---|---|---|
| Read-only | navigate, screenshot, extract | None |
| Form fill | type, select, click | Prompt |
| Authentication | fill_password, submit_login | Always |
| Destructive | delete, purchase | 2FA required |
# Skip ALL approvals including destructive (DANGEROUS)
browser-secure act "delete account" --skip-approval
⚠️ Warning: --skip-approval bypasses all safety checks. Use only in fully automated, sandboxed environments.
--profile{
"event": "BROWSER_SECURE_SESSION",
"sessionId": "bs-20260211054500-abc123",
"site": "nytimes.com",
"actions": [...],
"chainHash": "sha256:..."
}
Browser-secure makes network calls in exactly two places:
http://localhost:<port>/json/version) while the daemon starts. Never leaves the machine.security.audit.mode is set to webhook and security.audit.webhook.url is configured in ~/.browser-secure/config.yaml, finalized audit sessions are POSTed to that URL. Leave mode: "file" (the default) to keep all audit data local.No telemetry, no phone-home, no remote config fetch.
| Variable | Purpose |
|---|---|
BROWSER_SECURE_CONFIG | Config file path |
BW_CLIENTID | Bitwarden API key ID (for automation) |
BW_CLIENTSECRET | Bitwarden API key secret (for automation) |
BW_PASSWORD | Bitwarden master password (alternative) |
BW_SESSION | Bitwarden session token (legacy) |
OP_SERVICE_ACCOUNT_TOKEN | 1Password service account |
BROWSER_SECURE_{SITE}_PASSWORD | Env-based credentials |
| Feature | browser-automation | browser-secure |
|---|---|---|
| Credentials | CLI (exposed) | Vault-backed |
| Chrome Profiles | ❌ No | ✅ Yes (with cookies/logins) |
| Approval | None | Tiered gates |
| Audit | None | Full trail |
| Session timeout | None | 30 min default |
| Network | Unrestricted | Allow-list |
| Best for | Quick tasks | Sensitive/authenticated |
Chrome keychain prompt on first run: This is normal! When Playwright launches Chrome for the first time, macOS asks if Chrome can access your keychain. You can click "Deny" since browser-secure manages credentials through your vault, not Chrome's built-in storage.
Vault not found: Install the CLI for your preferred vault:
brew install bitwarden-clibrew install 1password-cliBitwarden "Vault is locked":
BW_CLIENTID and BW_CLIENTSECRET are set correctlyexport BW_SESSION=$(bw unlock --raw)Bitwarden API key not working: Ensure your API key has access to the vault items you need. API keys are created at: https://vault.bitwarden.com/#/settings/security/keys
Site not configured: Use --auto-vault for interactive setup, or add manually to ~/.browser-secure/config.yaml
Session expired: Default 30-minute TTL, restart with --timeout
Approval required: Use -y for non-interactive (careful!)
Profile not found: Run browser-secure navigate https://example.com --list-profiles to see available profiles
Chrome profile in use: Close Chrome before using --profile option (Chrome locks profile when running)