2026-01-15 05:30:02 +00:00
---
2026-03-15 23:56:08 -07:00
summary: "CLI reference for `openclaw browser` (profiles, tabs, actions, Chrome MCP, and CDP)"
2026-01-15 05:30:02 +00:00
read_when:
2026-01-30 03:15:10 +01:00
- You use `openclaw browser` and want examples for common tasks
2026-01-27 03:23:42 +00:00
- You want to control a browser running on another machine via a node host
2026-03-15 23:56:08 -07:00
- You want to attach to your local signed-in Chrome via Chrome MCP
2026-01-31 16:04:03 -05:00
title: "browser"
2026-01-15 05:30:02 +00:00
---
2026-01-30 03:15:10 +01:00
# `openclaw browser`
2026-01-15 05:30:02 +00:00
2026-01-30 03:15:10 +01:00
Manage OpenClaw’ s browser control server and run browser actions (tabs, snapshots, screenshots, navigation, clicks, typing).
2026-01-15 05:30:02 +00:00
Related:
2026-01-31 21:13:13 +09:00
2026-01-15 05:30:02 +00:00
- Browser tool + API: [Browser tool ](/tools/browser )
## Common flags
2026-01-27 03:23:42 +00:00
- `--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).
2026-01-15 05:30:02 +00:00
- `--json` : machine-readable output (where supported).
## Quick start (local)
```bash
2026-03-14 04:15:25 +00:00
openclaw browser profiles
2026-01-30 03:15:10 +01:00
openclaw browser --browser-profile openclaw start
openclaw browser --browser-profile openclaw open https://example.com
openclaw browser --browser-profile openclaw snapshot
2026-01-15 05:30:02 +00:00
```
## Profiles
2026-01-15 08:26:23 +00:00
Profiles are named browser routing configs. In practice:
2026-01-31 21:13:13 +09:00
2026-03-15 23:56:08 -07:00
- `openclaw` : launches or attaches to a dedicated OpenClaw-managed Chrome instance (isolated user data dir).
2026-03-14 04:15:25 +00:00
- `user` : controls your existing signed-in Chrome session via Chrome DevTools MCP.
2026-03-15 23:56:08 -07:00
- custom CDP profiles: point at a local or remote CDP endpoint.
2026-01-15 05:30:02 +00:00
```bash
2026-01-30 03:15:10 +01:00
openclaw browser profiles
openclaw browser create-profile --name work --color "#FF5A36 "
2026-03-15 23:56:08 -07:00
openclaw browser create-profile --name chrome-live --driver existing-session
2026-01-30 03:15:10 +01:00
openclaw browser delete-profile --name work
2026-01-15 05:30:02 +00:00
```
Use a specific profile:
```bash
2026-01-30 03:15:10 +01:00
openclaw browser --browser-profile work tabs
2026-01-15 05:30:02 +00:00
```
## Tabs
```bash
2026-01-30 03:15:10 +01:00
openclaw browser tabs
openclaw browser open https://docs.openclaw.ai
openclaw browser focus < targetId >
openclaw browser close < targetId >
2026-01-15 05:30:02 +00:00
```
## Snapshot / screenshot / actions
Snapshot:
```bash
2026-01-30 03:15:10 +01:00
openclaw browser snapshot
2026-01-15 05:30:02 +00:00
```
Screenshot:
```bash
2026-01-30 03:15:10 +01:00
openclaw browser screenshot
2026-01-15 05:30:02 +00:00
```
Navigate/click/type (ref-based UI automation):
```bash
2026-01-30 03:15:10 +01:00
openclaw browser navigate https://example.com
openclaw browser click < ref >
openclaw browser type < ref > "hello"
2026-01-15 05:30:02 +00:00
```
2026-03-15 23:56:08 -07:00
## Existing Chrome via MCP
2026-01-15 05:30:02 +00:00
2026-03-15 23:56:08 -07:00
Use the built-in `user` profile, or create your own `existing-session` profile:
2026-01-15 05:30:02 +00:00
```bash
2026-03-15 23:56:08 -07:00
openclaw browser --browser-profile user tabs
openclaw browser create-profile --name chrome-live --driver existing-session
2026-03-16 14:21:22 +01:00
openclaw browser create-profile --name brave-live --driver existing-session --user-data-dir "~/Library/Application Support/BraveSoftware/Brave-Browser"
2026-03-15 23:56:08 -07:00
openclaw browser --browser-profile chrome-live tabs
2026-01-15 05:30:02 +00:00
```
2026-03-15 23:56:08 -07:00
This path is host-only. For Docker, headless servers, Browserless, or other remote setups, use a CDP profile instead.
2026-01-15 05:30:02 +00:00
2026-01-27 03:23:42 +00:00
## Remote browser control (node host proxy)
2026-01-15 05:30:02 +00:00
2026-01-27 03:23:42 +00:00
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).
2026-01-15 05:30:02 +00:00
2026-01-27 03:23:42 +00:00
Use `gateway.nodes.browser.mode` to control auto-routing and `gateway.nodes.browser.node` to pin a specific node if multiple are connected.
2026-01-15 05:30:02 +00:00
2026-01-27 03:23:42 +00:00
Security + remote setup: [Browser tool ](/tools/browser ), [Remote access ](/gateway/remote ), [Tailscale ](/gateway/tailscale ), [Security ](/gateway/security )