Skip to main content

crocbot browser

Manage crocbot’s browser control server and run browser actions (tabs, snapshots, screenshots, navigation, clicks, typing). Related:

Common flags

  • --url <gatewayWsUrl>: Gateway WebSocket URL (defaults to config).
  • --token <token>: Gateway token (if required).
  • --timeout <ms>: request timeout (ms).
  • --browser-profile <name>: choose a browser profile (default from config).
  • --json: machine-readable output (where supported).

Quick start (local)

crocbot browser --browser-profile chrome tabs
crocbot browser --browser-profile croc start
crocbot browser --browser-profile croc open https://example.com
crocbot browser --browser-profile croc snapshot

Profiles

Profiles are named browser routing configs. In practice:
  • croc: launches/attaches to a dedicated crocbot-managed Chrome instance (isolated user data dir).
  • chrome: controls your existing Chrome tab(s) via the Chrome extension relay.
crocbot browser profiles
crocbot browser create-profile --name work --color "#FF5A36"
crocbot browser delete-profile --name work
Use a specific profile:
crocbot browser --browser-profile work tabs

Tabs

crocbot browser tabs
crocbot browser open https://aiwithapex.mintlify.app
crocbot browser focus <targetId>
crocbot browser close <targetId>

Snapshot / screenshot / actions

Snapshot:
crocbot browser snapshot
Screenshot:
crocbot browser screenshot
Navigate/click/type (ref-based UI automation):
crocbot browser navigate https://example.com
crocbot browser click <ref>
crocbot browser type <ref> "hello"

Chrome extension relay (attach via toolbar button)

This mode lets the agent control an existing Chrome tab that you attach manually (it does not auto-attach). Install the unpacked extension to a stable path:
crocbot browser extension install
crocbot browser extension path
Then Chrome → chrome://extensions → enable “Developer mode” → “Load unpacked” → select the printed folder. Full guide: Chrome extension

Remote browser control (node host proxy)

If the Gateway runs on a different machine than the browser, run a node host on the machine that has Chrome/Brave/Edge/Chromium. The Gateway will proxy browser actions to that node (no separate browser control server required). Use gateway.nodes.browser.mode to control auto-routing and gateway.nodes.browser.node to pin a specific node if multiple are connected. Security + remote setup: Browser tool, Remote access, Tailscale, Security