Use this file to discover all available pages before exploring further.
Gologin Agent Browser CLI turns Gologin Cloud Browser into a persistent, scriptable runtime for AI agents. It provides compact page snapshots, ref-based interaction, session memory, and shell-friendly output.Unlike writing Puppeteer/Playwright code from scratch, this CLI gives agents a ready-made command surface for browser automation — no boilerplate, no session management code.
gologin-agent-browser CLI — 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
Transport is local only:
Unix socket at ${TMPDIR:-/tmp}/gologin-agent-browser.sock
Localhost HTTP on 127.0.0.1:${GOLOGIN_DAEMON_PORT:-44777}
If you do not provide a profile ID, the daemon creates a temporary Gologin cloud profile through the API.
snapshot prints a compact page view and assigns refs like @e1, @e2, @e3 to interactive elements. You act on them directly:
gologin-agent-browser snapshot# output shows page content with refs like @e1, @e2, @e3...gologin-agent-browser click @e3gologin-agent-browser type @e5 "search query"gologin-agent-browser fill @e7 "username"
Refs are best-effort and should be regenerated after navigation or major DOM changes. On dynamic pages, find is usually a better fallback than stale refs.
export GOLOGIN_TOKEN='your_token'# open a page in cloud browsergologin-agent-browser open https://example.com# read the page as a compact snapshotgologin-agent-browser snapshot# interact with elementsgologin-agent-browser click @e3gologin-agent-browser type @e5 "hello world"# take a screenshotgologin-agent-browser screenshot ./page.png# close the sessiongologin-agent-browser close
# use different profiles with different geosfor profile in us_profile de_profile jp_profile; do gologin-agent-browser open https://competitor.com --profile $profile gologin-agent-browser wait 3000 gologin-agent-browser screenshot ./${profile}-homepage.png gologin-agent-browser closedone