AI agents and automation
Agentic browsers explained
An agentic browser is a browser that a language model operates on your behalf: it reads the page, decides, and clicks or types. This article explains the architecture, why these browsers run into CAPTCHAs, and where an API call fits.
What the term means
An agentic browser combines a browser engine with a model that decides what to do next. You give it a goal in plain language, such as "find the cheapest flight on these dates and stop before payment", and it navigates, reads results, fills forms and reports back. The category includes desktop browsers with a built in assistant that can act on pages, cloud services that run a browser for an agent, and open source libraries that connect a model to Playwright or the Chrome DevTools Protocol.
The difference from classic automation is who writes the steps. A Selenium or Playwright script has every click written by a developer. An agentic browser decides the steps at run time, which makes it flexible on pages it has never seen and less predictable on pages it has.
How an agentic browser works inside
Whatever the product, the loop has the same parts.
- Perception. The browser turns the current page into something the model can read: an accessibility tree, a list of numbered interactive elements, a screenshot, or a mix.
- Decision. The model receives the goal, the history so far and the current view, and picks an action: click element 14, type text into the search box, scroll, go back, or finish.
- Action. The browser layer executes that action through automation APIs and waits for the page to settle.
- Memory. Results and notes are kept so later steps can build on earlier ones.
Tools extend the loop. Besides clicking and typing, the model may be able to call functions you define, such as "save this row" or "solve the CAPTCHA on this page". That extension point is where most practical integrations happen. The AI agent entry covers the general concept.
Why agentic browsers meet CAPTCHAs
Sites do not know that a model is involved; they see a browser behaving in a particular way. Agentic browsers tend to trigger checks for reasons that follow from their design.
They run where bots run
Cloud hosted agent browsers operate from data center IPs and server hardware. Their graphics, fonts and timezone look like servers because they are servers. Desktop agentic browsers on your own machine have a big advantage here: they inherit your normal network and device.
They act in bursts
The model thinks for a few seconds, then the browser performs an action instantly. The rhythm of long pauses and machine precise clicks is unlike a person's steady reading and scrolling.
They go straight to sensitive steps
An agent asked to sign in or search goes directly to the login form or the search box. Sites put their checks on precisely those steps, so an agent reaches the CAPTCHA early and often.
What happens when the agent meets the challenge
Agentic browsers handle CAPTCHAs in one of three ways today. Some stop and hand control back to the person, which is the right default for consumer products acting on a user's own accounts. Some try to solve visually, by clicking the checkbox or reading image tiles from a screenshot; this occasionally works for simple checkboxes and mostly fails for grids and silent checks. And some call out to a dedicated service through a tool, which is where an API fits.
Where a solving API fits
A solving API is a narrow tool: given the page URL and the widget's parameters, it returns the token or cookie that the page expects. It fits the agentic loop as one more action the model can choose. The tool does the protocol work (read the site key, create a task, poll the result, place the token) and replies with a short instruction. The model never sees the image or the token; it only learns the page is ready to submit.
With GateSolver that tool is a plain HTTP integration. There is no SDK or plugin to install; the model's tool calls a function you write, the function sends JSON to /createTask and /getTaskResult, and your browser code places the answer. Common pairings are reCAPTCHA in forms at $0.56 per 1,000, Turnstile at $0.84, and the Cloudflare challenge page, which returns a cookie for a given proxy.
{
"name": "solve_captcha_on_page",
"description": "Solve the CAPTCHA widget on the current page and place the answer. Use once per widget, before submitting.",
"parameters": { "type": "object", "properties": {}, "required": [] }
}
A tool schema like this one, with no parameters, is deliberate: the function reads everything it needs from the live page, so the model cannot pass a wrong value. Many frameworks build such a schema for you from a decorated function.
Hosted, local and library based options
| Kind | Where the browser runs | Adding a solve tool |
|---|---|---|
| Desktop browser with an assistant | Your machine | Usually not extensible; the assistant asks you instead |
| Cloud browser service for agents | The provider's servers | Through your agent code that drives the session |
| Open source agent library | Wherever you run it | A custom action or tool in your own code |
For integration work, the open source route gives the most control: you own the loop, the tools and the browser profile. The Browser Use integration and the LangChain integration pages show working shapes.
Good practice for agentic browsing
- Keep one persistent profile per task so the agent looks like a returning visitor.
- Detect widgets in code and tell the model what is present, rather than asking it to spot them.
- Limit solves per page and per run so a confused agent cannot loop.
- Keep secrets, including the API key, out of prompts.
- Prefer a site's official API when it offers one for the data you need.
Responsible use
Agentic browsers are powerful enough to act in someone's name, which is exactly why scope matters. Acting on your own accounts, testing your own services, collecting public information and building accessibility aids are good uses. Creating accounts in bulk, posting spam or logging into other people's accounts are not, and they fall outside our terms. A well designed agent makes those boundaries part of its instructions.
Where this is heading
Sites and agent builders are both adapting. Some sites are starting to publish machine readable rules for agents, and bot management vendors are adding ways to recognize declared, well behaved agents. Until those settle, CAPTCHAs remain the main checkpoint, and a clean session plus a narrow solve tool is the practical way through for permitted work.
Common questions
Is an agentic browser the same as a headless browser?
No. A headless browser is a browser without a window. An agentic browser adds a model that decides the actions, and it may run headed or headless.
Can an agentic browser solve CAPTCHAs by looking at them?
Sometimes for a simple checkbox, rarely for image grids, and not at all for silent checks like reCAPTCHA v3. A token from an API is more dependable.
Do I need an SDK to connect GateSolver to an agent?
No. The agent tool calls two HTTP endpoints. Any language that can send JSON can implement it in a few dozen lines.
Why do hosted agent browsers see more CAPTCHAs than desktop ones?
They run on servers in data center networks, so their IP and device signals look less like ordinary visitors.
Should the agent stop and ask the user instead of solving?
For consumer assistants acting on personal accounts, asking is often the right choice. For automated jobs on permitted sites, a solve tool keeps the run going.
Keep reading
- AI browser agentLanguage model driven programs that open pages, click and type in a real browser, and what happens when they reach a CAPTCHA.
- Browser UseGive a Browser Use agent a solve action backed by the HTTP API, with version notes, loop limits and session tips.
- Why AI agents get blocked by CAPTCHAsWhat a site observes when a language model drives a browser, which signals raise a challenge, and the pattern that resolves it.
- What is the difference between AI agents and RPA?RPA replays fixed steps reliably; AI agents choose steps from a goal. Many teams combine both, keeping risky parts deterministic.