█

AI/TLDR

Buy me a coffee
Buy me a coffee

LaVague

Build AI web agents that turn a goal into real browser actions

Computer & Browser UseOpen source
Language
Python
$pip install lavague
IN SHORT

What is LaVague?

LaVague is an open-source Python framework for building AI web agents that automate tasks in a browser. It sits in the Computer & Browser Use category of the Agents & Automation tools and is open-source, written in Python. To get started: install LaVague.

Overview

LaVague is an open-source Python framework for building AI web agents that automate tasks in a browser. You give an agent an objective in plain language, such as "Go on the quicktour of PEFT," and it works out the steps needed and runs them on a real web page.

Each agent is made of two parts: a World Model that reads the current page and the objective and produces instructions, and an Action Engine that compiles those instructions into browser code and executes it over Selenium or Playwright. There is also a Chrome extension driver.

It is aimed at developers who want to automate web processes for their end users. Within the agent-frameworks space, LaVague sits in the computer- and browser-use niche, focusing on driving an actual browser rather than calling APIs. A related tool, LaVague QA, builds on the framework to turn Gherkin specs into web tests.

What it does

  • World Model that converts an objective plus the current page state into a set of instructions
  • Action Engine that compiles instructions into Selenium or Playwright code and runs them
  • Three driver options: Selenium WebDriver, Playwright, and a Chrome extension driver
  • Built-in contexts and customizable configuration for swapping models and settings
  • Token counter for estimating token usage and costs, plus logging and debugging tools
  • Optional interactive Gradio interface for trying agents from a UI

Getting started

Install the package, set your OpenAI API key, then build a web agent with a driver, a World Model, and an Action Engine. The default configuration uses OpenAI, so set OPENAI_API_KEY in your environment first.

Install LaVague

Install the framework from PyPI with pip.

bashbash
pip install lavague

Set your OpenAI API key

The default configuration uses the OpenAI API, so export a valid key in your local environment.

bashbash
export OPENAI_API_KEY=your-key-here

Build and run a web agent

Create a Selenium driver, a World Model, and an Action Engine, then give the agent a page and an objective in plain language.

pythonpython
from lavague.core import WorldModel, ActionEngine
from lavague.core.agents import WebAgent
from lavague.drivers.selenium import SeleniumDriver

selenium_driver = SeleniumDriver(headless=False)
world_model = WorldModel()
action_engine = ActionEngine(selenium_driver)
agent = WebAgent(world_model, action_engine)
agent.get("https://huggingface.co/docs")
agent.run("Go on the quicktour of PEFT")

# Launch Gradio Agent Demo
agent.demo("Go on the quicktour of PEFT")

Commands and code are distilled from the project's own documentation — always check the official repo for the latest.

When to use it

  • Automate repetitive web processes for end users by describing the goal instead of scripting each click
  • Navigate documentation or product pages to locate and follow a specific flow, such as a quicktour
  • Generate web tests from Gherkin specs using the LaVague QA tooling built on the framework
  • Prototype browser-use agents while estimating token cost with the built-in token counter

How LaVague compares

LaVague alongside other open-source computer & browser use tools AI/TLDR tracks, ranked by GitHub stars.

ToolStarsWhat it does
Browser Use★ 122kA Python library that lets agents control a real browser to read pages and complete tasks online from natural-language instructions.
Open Interpreter★ 69kA lightweight coding agent that runs code on your own computer to carry out tasks from natural-language requests.
Chrome DevTools MCP★ 59.9kThe Chrome team's MCP server that lets a coding agent control and inspect a live Chrome browser — performance traces, network requests, console messages and Puppeteer-backed automation.
agent-browser★ 54.8kVercel Labs' native Rust browser automation CLI for AI agents: accessibility-tree snapshots with element refs, a per-session CDP daemon, an MCP server and built-in agent skills.
UI-TARS Desktop★ 39.6kByteDance's multimodal agent stack and desktop app that controls a computer's graphical interface using vision-language models.
CloakBrowser★ 34.8kStealth Chromium build with source-level fingerprint patches that drops into Playwright or Puppeteer code, so agents and scrapers browse without tripping bot detection.
Cua★ 33.4kInfrastructure for computer-use agents, providing sandboxes and SDKs that let agents control full desktops on macOS, Linux, and Windows.
LaVague★ 6.4kBuild AI web agents that turn a goal into real browser actions