openbrowser

Give an AI agent a browser to click, type, navigate, and extract data autonomously.

Overview

openbrowser is an AI-powered autonomous web browsing framework for TypeScript that gives an agent a browser to click, type, navigate, and extract data on websites. It is built on Playwright and supports OpenAI, Anthropic, and Google models through the Vercel AI SDK.

The framework is organized as a monorepo with a core library, a command-line interface, and a sandboxed execution package. Developers can describe a task in natural language and let the agent work through it, or they can use the interactive REPL and browser commands for debugging and prototyping.

What sets openbrowser apart is its production-oriented feature set: stall detection, cost tracking, session management, replay recording, and sandboxed execution with CPU and memory monitoring, timeouts, and domain restrictions. It is open source under the MIT license and works with your own API keys.

Best for

  • TypeScript developers
  • AI engineers
  • Test automation engineers
  • Web scraping developers
  • QA engineers
  • Automation specialists

How to use

  1. Install dependencies with bun install.
  2. Copy the example environment file and add your API keys.
  3. Run an agent with a natural language task using the run command.
  4. Optionally choose the model and provider, headless mode, and maximum steps.
  5. Open an interactive session with the interactive command for debugging or exploration.

What it can do

Autonomous task execution

Describe a task in natural language and the agent navigates the web, clicking, typing, scrolling, and extracting data without manual scripting. The agent is driven by a model from OpenAI, Anthropic, or Google, and the provider and model can be switched with a flag.

Interactive REPL

Open a live browser session with a browser prompt and issue commands one at a time. The documented examples include opening a URL, extracting stories, clicking elements, and capturing screenshots. The REPL is positioned for debugging, prototyping, and exploration.

Browser command set

Run discrete browser actions from the command line: open a URL, click an element, type into an input, capture a screenshot, evaluate JavaScript, extract content as markdown, and show current URL, title, and tabs. You can also list active browser sessions.

Sandboxed execution

Run agents in resource-limited environments with CPU and memory monitoring, timeouts, domain restrictions, and step limits. The sandbox reports metrics such as steps, URLs visited, and CPU time.

Agent configuration controls

Adjust the step limit, actions per step, failure threshold, screenshot inclusion in agent context, conversation token budget, and allowed or blocked URLs. Viewport settings control headless mode, window dimensions, security relaxation, proxy configuration, and cookie files for persistent sessions.

Recording and debugging

Environment variables direct traces and recordings to configurable paths, and agent settings control whether screenshots are included in the agent context. Cost tracking is visible during runs and can be hidden with a flag.

Library and CLI access

Use the core library to construct an agent with a viewport, model, task, and settings, or run agents and browser commands through the CLI. Input is not limited to websites; documented examples include search and extraction, form completion, and multi-step workflows.

How it works

Agents run on Playwright with a model from OpenAI, Anthropic, or Google selected through the Vercel AI SDK. Setup involves installing dependencies, adding at least one provider API key to the environment file, and running the CLI or constructing an agent in code with a viewport, model, task, and settings.

Browser control flows through the core library and CLI, with an optional sandbox that enforces timeouts, memory limits, domain restrictions, and step limits. Humans decide the task and settings, review agent output and metrics, and approve how agents are configured and where they are allowed to navigate.

Autonomous

The framework is documented as autonomously completing tasks on websites by clicking, typing, navigating, and extracting data after a natural language task is described.

Where it fits

  • Search a site and extract information such as a product price.
  • Fill out a form such as a newsletter signup with provided details.
  • Complete a multi-step workflow such as finding a repository and starring it.
  • Extract page content as markdown for later use.

How to evaluate

  1. Confirm you have an API key for at least one supported provider, since at least one is required in the environment variables
  2. Check whether the model provider you plan to use is among those listed as supported out of the box
  3. Review the sandbox limits (timeout, memory, domain restrictions) to confirm they match your execution environment
  4. Verify the default agent settings such as step limit, failure threshold, and context window suit your workloads
  5. Decide whether you need the library, the CLI, or the sandbox package, as these are separate parts of the monorepo

Our take

Open Browser is an MIT-licensed framework that gives an agent control of a Playwright browser so it can complete web tasks from a natural-language description. It offers several provider options through the Vercel AI SDK, and you supply your own API keys. Beyond the core agent, the project includes a CLI, an interactive REPL, and a sandbox with resource limits and monitoring. Its production features, such as stall detection, cost tracking, session management, and replay recording, are relevant if you plan to run agents beyond experimentation.

Alternatives

AgentPricingAutonomyBest for
hermes-agent—SupervisedAI researchers, Developers, System administrators, DevOps engineers, Technical founders
deer-flow—SupervisedSoftware developers, AI and agent engineers, Research engineers, Technical teams building agent workflows, Data pipeline builders
OpenMausBot—SupervisedDevelopers and engineers, Technical founders and small product teams, DevOps and IT administrators, Operations specialists who coordinate recurring tasks, AI power users comfortable with command-line tools
Toonflow-app—SupervisedShort drama creators, Comic video producers, Storyboard artists, Previsualization artists, Video editors, Independent animators, Content studio operators
rowboat—SupervisedSoftware engineers, Engineering managers, Product managers, Support teams, Operations leads, Founders, Research and knowledge workers
artemis—SupervisedMobile QA engineers, Test automation engineers, AI coding assistant users, Android developers, CI and DevOps engineers

FAQ

What does Open Browser actually do?
It lets an AI agent operate a browser to carry out tasks described in natural language, including clicking, typing, navigating, and extracting data.
Which AI providers can I use?
The documentation lists OpenAI, Anthropic, and Google as supported providers and says these work out of the box through the Vercel AI SDK.
Do I need my own API keys?
Yes. The setup instructions tell you to create an environment file with your provider keys, and at least one key is required.
Can I try it in a live browser session?
Yes. The interactive REPL drops you into a live browser prompt where you can issue commands such as opening a page, extracting content, clicking, and taking screenshots.
How can I limit what an agent does?
Agent settings include a step limit, a failure threshold, and allowed or blocked URL lists, while the sandbox adds timeouts, memory limits, and domain restrictions.
What is in the repository besides the core library?
The project is a monorepo with the core library, a command-line interface, and a sandbox package for resource-limited execution. It is MIT licensed and extensible.
How do I get started?
Install dependencies with bun, copy the example environment file and add your API keys, then run an agent task or start the interactive session from the command line.
Is there a cost to using it?
The software itself is open source under the MIT license, and usage costs depend on the model provider you choose. The agent includes cost tracking, which you can hide with a command-line option.

Comments

No comments yet.

Embed a listing badge

Featured on AI Agents Marketplace
<a href="https://aiagentsmarketplace.dev/agents/openbrowser"><img src="https://aiagentsmarketplace.dev/badges/featured.svg" alt="Featured on AI Agents Marketplace" width="262" height="36"></a>
See badge options