Why cloud browser
Local browser automation has hard limits for agent workflows:- Local browsers are easier to detect
- No profile-based fingerprinting
- No persistent cloud browser profiles
- No built-in proxy layer
- Hard to standardize across agents and environments
- Cloud browser runtime instead of a local process
- Gologin profiles as the session identity layer
- Proxy-aware sessions
- Anti-detect capabilities inherited from Gologin
- A persistent daemon that keeps sessions alive across CLI calls
Install
Credentials
Get a token
- Sign up or log in at gologin.com
- Open API & MCP in the dashboard
- Open the API tab
- Click New Token
- Copy the generated access token
Config file
~/.gologin-agent-browser/config.json
Architecture
Two parts:gologin-agent-browserCLI — parses commands, auto-starts daemon, prints compact output- Persistent local daemon — owns live browser sessions, connects to Gologin Cloud Browser through Playwright
connectOverCDP, keeps the active page in memory, builds snapshots, resolves refs, tracks session metadata
- Unix socket at
${TMPDIR:-/tmp}/gologin-agent-browser.sock - Localhost HTTP on
127.0.0.1:${GOLOGIN_DAEMON_PORT:-44777}
How refs work
snapshot prints a compact page view and assigns refs like @e1, @e2, @e3 to interactive elements. You act on them directly:
find is usually a better fallback than stale refs.
Quick start
Agent loop example
A typical AI agent loop:Full command reference
Diagnostics
Session management
Page reading
Interaction
Keyboard and scroll
Navigation
Tabs
Cookies and storage
Advanced
Aliases
Use cases and examples
Check if your site passes anti-detect tests
Log into a web app and extract dashboard data
Fill out a multi-step form
Take screenshots of competitor pages
Search on a site that blocks scraping
Some sites require JavaScript execution, login, or interaction before showing results. Use the browser to search:Save and restore session state
Export cookies and storage to reuse across sessions:Parallel sessions
Use explicit--session IDs for independent cloud tasks. Clean up with close --all or sessions --prune --older-than-ms.
Proxy rules
- Preconfigured profiles: proxy is set on the profile via Gologin dashboard or API
- Temporary profiles: support no proxy or custom proxy host/port
--proxy-countryis only available for preconfigured profiles
Related
- Gologin Web Access CLI — unified CLI (scraping + browser)
- Local Agent Browser CLI — local Orbita alternative
- Cloud Browser Getting Started — Puppeteer/Playwright examples
- AI Skills — plug-and-play skills for Claude Code
npm package
gologin-agent-browser-cli
Source code
GologinLabs/agent-browser