@ulpi/browse

CLI Flags

All command-line flags for @ulpi/browse.

Session & Profile

FlagDescription
--session <id>Named session — isolates tabs, refs, cookies. Auto-persists on close.
--profile <name>Persistent browser profile — own Chromium instance, full state across runs.
--state <path>Load state file (cookies/storage) before first command.

Output

FlagDescription
--contextAppend [context] state delta to write command responses (URL, title, tabs, dialogs, errors).
--jsonWrap output as {success, data, command}.
--content-boundariesWrap page content in nonce-delimited markers (prompt injection defense).
--max-output <n>Truncate output to N characters.

Browser

FlagDescription
--headedRun browser in headed (visible) mode.
--cdp <port>Connect to Chrome on a specific debugging port.
--connectAuto-discover and connect to a running Chrome instance.
--chromeUse system Chrome with real user profile. Shortcut for --runtime chrome --headed.
--runtime <name>Browser engine: playwright (default), rebrowser (stealth), lightpanda, camoufox (anti-detection Firefox), chrome (system Chrome).
--camoufox-profile <name>Named camoufox config profile from .browse/camoufox-profiles/<name>.json. Only applies when starting a new server — ignored if a server is already running. Stop the server first with browse stop to switch profiles.
--provider <name>Cloud browser provider: browserbase, browserless.

Integration

FlagDescription
--mcpRun as MCP (Model Context Protocol) server for Cursor, Claude Desktop, Windsurf.

Native App Automation

FlagDescription
--platform android|ios|macosTarget platform (default: browser).
--app <name>App package name (Android), bundle ID (iOS), or process name (macOS).
--device <serial>Device serial (Android) or simulator UDID (iOS).
--visibleOpen simulator/emulator window (default: headless). Used with sim start.

Security

FlagDescription
--allowed-domains <d,d>Comma-separated domain allowlist. Blocks navigation and resources outside the list.

On this page