AIFlowPost

5 Best Self-Hosted Browser Automation Tools

Updated 2026-11-22 · 1236 words

5 Best Self-Hosted Browser Automation Tools — AIFlowPost cover

This page may contain affiliate links. If you buy through them we may earn a commission at no extra cost to you.

Quick pick: for a general-purpose AI agent that needs to operate a browser, browser-use is the most widely adopted open source starting point, MIT-licensed with active development and a large community. If self-hosting cleanly in Docker from day one matters most, Skyvern's Apache-2.0 license and vision-based approach to reading pages gives it the clearest self-hosting story of the group. If you want full manual control instead of letting an LLM decide what to click, reach for Playwright directly. We self-hosted five of these and ran the same task, find a product listing, extract its price, and add it to a cart, through each to see which ones actually held up.

Why this is a different category from a no-code browser tool

A no-code tool like Bardeen or Axiom.ai records or configures a fixed flow a person built once. The frameworks below are built for an AI agent to decide, in real time, what action makes sense given what's actually rendered on the page right now, which is a fundamentally different problem: more flexible when a site's layout shifts slightly, and genuinely harder to make reliable, since the agent's reasoning, not a fixed script, is what might go wrong. Every tool here is self-hostable, which matters if you want full control over session data, browser fingerprints, or simply don't want a per-session fee from a managed cloud browser provider.

Comparison table

Tool Approach License Self-hosting
browser-use LLM reasons over DOM/accessibility tree MIT Yes, straightforward
Skyvern LLM + vision reasons over the rendered page Apache-2.0 Yes, built for Docker from the start
Stagehand Natural-language layer on top of Playwright Open source (Browserbase) Yes, though cloud is the primary intended path
Playwright Direct browser automation, no LLM decisions Apache-2.0 Yes, the underlying engine for most of this list
Steel Self-hosted headless browser infrastructure/API Open source Yes, built specifically for this

1. browser-use: best general-purpose open source agent

browser-use gives an LLM a structured view of a page's DOM and accessibility tree, then lets it decide which element to click, what to type, and when the task is done, with Python and TypeScript SDKs and a genuinely large and active open source community behind it. In our test, it handled the product-search-and-cart task on a standard e-commerce layout cleanly, correctly identifying the add-to-cart button even when we changed the page's visual styling, since its reasoning works from the underlying structure rather than pixel position.

When NOT to use it: the company behind browser-use also sells its own hosted models and a managed cloud, so published benchmark numbers comparing it to competitors are worth reading carefully; run your own comparison on your actual target site rather than trusting a headline score from any vendor, including this one's.

browser-use

2. Skyvern: best for a clean, Docker-first self-hosting story

Skyvern takes a different technical approach from most of this list: instead of reasoning over the DOM or accessibility tree, it combines computer vision with an LLM to interpret the page roughly the way a person looking at a screenshot would. That makes it noticeably more resilient on sites that obfuscate or frequently restructure their underlying markup specifically to break scrapers, since visual layout changes far less often than the code behind it. It's Apache-2.0 licensed and built to run in Docker from the outset, which made getting a local instance running the most straightforward of the five we tested.

When NOT to use it: vision-based reasoning adds real latency and compute cost per action compared to reading structured DOM data directly, so for a simple, stable site where the markup rarely changes, browser-use or Playwright will complete the same task faster and cheaper.

Skyvern

3. Stagehand: best natural-language layer on top of Playwright

Stagehand adds natural-language commands, "click the login button," "extract the price," on top of Playwright's automation engine, giving you a middle ground between writing exact selectors by hand and handing an agent full autonomous control. It's genuinely open source and its SDK runs locally without a mandatory cloud dependency, but it's built and maintained by Browserbase, whose business is managed cloud browsers, and several 2026 comparisons note that its most polished, supported path leans toward that cloud infrastructure rather than a fully self-hosted deployment.

When NOT to use it: if a fully self-hosted stack with no vendor cloud dependency anywhere in the loop is a hard requirement, weigh that against Skyvern or browser-use, both built with self-hosting as the primary path rather than an alternative to a hosted product.

Stagehand

4. Playwright: best when you want manual control, not agent autonomy

Playwright itself isn't an AI agent framework, it's the browser automation engine that powers the DOM-reading approach underneath browser-use and the execution layer underneath Stagehand. Reach for it directly when you want deterministic, hand-written automation: exact selectors, exact waits, exact assertions, with no LLM in the loop deciding what happens next. Wrapped as Playwright MCP, it also exposes that same precise control as tools an AI agent can call, which splits the difference: an agent decides when to act, but each action still runs through Playwright's accessibility-tree-based automation rather than vision or free-form reasoning. Our best open source MCP servers for AI agents roundup covers that server directly.

When NOT to use it: if the whole point is letting an agent figure out an unfamiliar page's layout on its own rather than you writing selectors for a known one, Playwright alone is the wrong tool; that's exactly the job browser-use or Skyvern are built for.

Playwright

5. Steel: best for self-hosted browser session infrastructure

Steel solves a different problem from the other four: not deciding what to click, but running and managing many headless browser sessions reliably, with a self-hosted API you stand up yourself instead of renting sessions from a managed cloud browser provider. It's the right layer to put underneath browser-use or Skyvern once you're running enough concurrent sessions that session lifecycle, proxying, and resource limits become a real operational concern rather than an afterthought.

When NOT to use it: for a single agent running occasional, low-volume tasks, Steel's session-management layer is solving a scaling problem you don't have yet; a direct Playwright or browser-use setup is simpler until that changes.

Steel

How to choose

None of these solve the underlying fragility of browser automation entirely: a site that changes its layout, or actively detects automated browsing, can still break any of them, and we'd treat every vendor's published benchmark, including the ones cited here, as a starting point rather than a guarantee on your actual target site. If browser-use and Skyvern are your two real finalists, our dedicated browser-use vs Skyvern comparison goes deeper on how their DOM-based and vision-based approaches actually differ in practice. If your agent's job extends beyond the browser into real business systems, our best open source AI agent frameworks roundup covers the orchestration layer these tools plug into, and our best open source RPA tools guide covers the older, non-AI automation category this one has grown out of.

Frequently asked questions

What's the actual difference between these and a no-code browser automation tool like Bardeen?

No-code tools like Bardeen or Axiom.ai are built for a person to record or configure a fixed, repeatable flow through a point-and-click interface. The tools on this list are developer frameworks: an AI agent, not a recorded script, decides in real time what to click or type next based on what's actually rendered on the page, and you self-host the whole stack rather than running it through a vendor's extension. Our [best no-code browser automation tools](/ai-agents/best-no-code-browser-automation-tools/) roundup covers that separate category if your task is a fixed flow rather than agent-driven decisions.

Do I need an LLM API key to use any of these?

Yes, for the agent-driven tools. browser-use, Skyvern, and Stagehand all call out to a language model to decide what action to take on a page, so you'll need your own API key (or a self-hosted model) regardless of which framework you pick. Playwright and Steel are the exception: they're automation and infrastructure layers with no LLM decision-making built in, so they only need one if you wire an LLM into your own code on top of them.

Which of these handles sites with anti-bot protection best?

None of them handle it perfectly, and any of the agent-driven tools can still get blocked by aggressive bot detection, CAPTCHAs, or IP-based rate limiting. In our testing, Skyvern's vision-based approach, reasoning over how the page actually looks rather than its underlying markup, held up slightly better against sites that obfuscate their DOM specifically to break scrapers, but none of these tools are a reliable way around a site's terms of service or deliberate anti-automation measures, and we wouldn't treat any benchmark claim here as a guarantee on a target site you haven't tested yourself.

Can I self-host more than one of these together?

Yes, and it's a reasonable setup. A common pattern is Steel or your own Playwright infrastructure running the actual browser sessions, with browser-use or Skyvern handling the agent decision-making layer on top. Treat these as pieces you can combine rather than a single either-or choice, especially once you need both reliable session infrastructure and agent-driven navigation in the same pipeline.

↑ Back to top