Gologin Agent Browser Skill
Use this skill when the task is mainly about controlling a live GoLogin browser session rather than scraping content. The public CLI is one product with two runtimes: cloud and local.
Core Rules
- Use this skill for browser automation, not for scraping-only tasks.
- If the user explicitly asks for
gologin-agent-browser, a cloud browser, a local Orbita profile, warmup, or a live browser session, stay inside this skill unless the requirement clearly changes. - Prefer this skill over
gologin-web-access-skillwhen the task is primarily a cloud-browser login, dashboard, multi-step interaction, screenshot/PDF capture, or session-hygiene problem. - Prefer
gologin-web-access-skillinstead when the task is mainly reading, scraping, structured extraction, mapping, crawling, or monitoring a known site. - Use
--runtime localwhen the task depends on a local Orbita profile, persistent cookies, warmup, native OS alignment, or repeated rendered-DOM navigation on this machine. - Use
--runtime cloudor the default cloud runtime for remote browser sessions, cloud parallelism, and workflows that should not run local Orbita. - The old
gologin-local-agent-browser-clipackage is deprecated. Thegologin-local-agent-browserbinary is now a compatibility alias fromgologin-agent-browser-cli@0.3.0+. - Before opening anything, decide whether the job should use an existing cloud profile, an existing local profile, or a temporary cloud session.
- For temporary cloud sessions, the proxy choices are: no proxy, a custom proxy host/port, or an existing preconfigured cloud profile. Do not invent free proxies and do not assume GoLogin country traffic is available without a real profile.
- Temporary cloud sessions use GoLogin backend defaults for browser line and viewport. If the user needs explicit browser version, country proxy, or screen settings, prefer an existing
--profile. - Prefer snapshot refs like
@e3aftersnapshot. - Refresh the snapshot after navigation or DOM-changing actions.
- Use semantic
findwhen stale refs or dynamic pages make raw refs unreliable. - Keep browser session work inside the
gologin-agent-browserCLI model. - Use explicit
--sessionids for independent parallel flows instead of serializing unrelated work. - End the task with
close,close --all, orsessions --prunewhen cloud slots need to be freed.
CLI Surface
Package:
gologin-agent-browser-cli
CLI:
gologin-agent-browsergologin-local-agent-browsercompatibility alias
Main command families:
- session lifecycle:
open,close,sessions,current - session hygiene:
close --all,sessions --prune - ref loop:
snapshot,click,type,fill - navigation helpers:
wait,scroll,scrollintoview - semantic helpers:
find,get - artifact helpers:
screenshot,pdf,upload - runtime selection:
--runtime cloud,--runtime local,--local,--cloud - local profile helpers:
profiles,profile,profile-create,profile-update,profile-import,profile-sync,profile-delete,run,batch,jobs,job
Setup
Expected environment variables:
GOLOGIN_TOKENGOLOGIN_PROFILE_IDoptionalGOLOGIN_DAEMON_PORToptionalGOLOGIN_CONNECT_BASEoptionalGOLOGIN_AGENT_BROWSER_RUNTIMEoptional (cloud,local, orauto)GOLOGIN_EXECUTABLE_PATHoptional for local Orbita runtime
Tool Map
| Skill tool | CLI command | Use when |
|---|---|---|
agent_browser_open |
gologin-agent-browser open <url> |
A browser session must start |
agent_browser_snapshot |
gologin-agent-browser snapshot |
The next actionable refs are needed |
agent_browser_click |
gologin-agent-browser click <target> |
A target should be clicked |
agent_browser_type |
gologin-agent-browser type <target> <text> |
Text should be typed into a target |
agent_browser_fill |
gologin-agent-browser fill <target> <text> |
An input should be filled in one step |
agent_browser_find |
gologin-agent-browser find ... |
Semantic targeting is more reliable than refs |
agent_browser_get |
gologin-agent-browser get <kind> [target] |
Data should be extracted from the page |
agent_browser_wait |
gologin-agent-browser wait ... |
The flow should wait on state, text, or load |
agent_browser_upload |
gologin-agent-browser upload <target> <file...> |
Files should be uploaded |
agent_browser_pdf |
gologin-agent-browser pdf <path> |
A PDF artifact is needed |
agent_browser_screenshot |
gologin-agent-browser screenshot <path> |
A screenshot artifact is needed |
agent_browser_close |
gologin-agent-browser close |
The session should end |
agent_browser_sessions |
gologin-agent-browser sessions |
All active sessions should be inspected |
agent_browser_current |
gologin-agent-browser current |
The active session summary is needed |
Operating Pattern
Ref Loop
- Open a session with
agent_browser_open. - Capture refs with
agent_browser_snapshot. - Act with
agent_browser_click,agent_browser_type, oragent_browser_fill. - If the result says
snapshot=stale, refresh withagent_browser_snapshot. - Repeat until the task is complete.
Semantic Loop
- Use
agent_browser_findwhen the page is dynamic or refs are brittle. - Use
agent_browser_getwhen a value, title, HTML, or URL should be read back. - Use
agent_browser_waitwhen the flow must pause for text, load state, or target availability.
Artifact Loop
- Use
agent_browser_screenshotwhen a visual artifact is needed. - Use
agent_browser_pdfwhen a document artifact is needed. - Use
agent_browser_uploadwhen the site requires file input.
Session Hygiene
- Use
agent_browser_sessionsearly when cloud slots may already be occupied. - Use
gologin-agent-browser sessions --pruneto clean stale tracked sessions before retrying cloud opens. - Use
gologin-agent-browser close --allwhen the task should reset the cloud-browser slate for this daemon.
Parallel Flow
- Assign explicit session ids such as
s1,s2, ands3when two or more cloud pages can run independently. - Inspect the slate first with
agent_browser_sessions. - Open each task with its own
--sessionvalue. - Snapshot and act inside each session independently.
- Close each session when it is no longer needed, or use
close --allto reset the current daemon.
Local Runtime Flow
- Use
gologin-agent-browser --runtime local doctor --jsonwhen local startup is unclear. - Use
gologin-agent-browser --runtime local profiles --remote --jsonwhen the user wants an existing profile. - Use
gologin-agent-browser --runtime local profile-create ...when a new local-profile workflow is needed. - Use
gologin-agent-browser --runtime local open <url> --profile <id>for local Orbita sessions. - Keep follow-up actions in the same runtime with
--runtime local, or use the compatibility aliasgologin-local-agent-browser.
Snapshot Discipline
- Refs are best-effort and local to the latest snapshot.
- Do not reuse old refs after navigation or heavy DOM changes.
- Prefer a fresh snapshot or semantic
findif a ref stops resolving.
References
- See
tools.mdfor command contracts. - See
examples/for short usage examples. - See
workflows/for repeatable browser patterns.