Overview
Run the open-source Browser Use agent in your own Chrome to compare flights on airline or travel sites, carry your chosen fare to the checkout page, and stop there so you review and pay yourself.
Problem or Objective
- Which agents compare flights, fares and hotels against your rules?
- Which agents find availability and help book restaurants, travel or appointments?
More in Travel and Bookings
AI Agents and Models
Tools and Integrations
- Tools
- Browser Use · Google Chrome · Python
- Prerequisites
- Python, the Browser Use library, Google Chrome on your computer, and a model provider API key or a local model. A travel site whose terms allow this kind of use.
How It Works
Install the Browser Use Python library and connect it to the Chrome you already have open, with a model provider key or a local model. First read the terms of the airline or travel site you want to use and skip any site that forbids automated access. Give the agent a task with your route, dates, number of travellers, cabin, bag needs and budget, and limit it to that site with allowed domains. Ask it to compare the options, return a short table with times, stops, fare rules and the full price, and end the task; you choose a fare and start a new run. In the second run, have it select the fare you picked and fill in only the traveller name and contact details you provide, then stop on the payment page and end its task. You review the checkout page in the open Chrome window, then enter payment details and confirm the booking yourself. The task tells the agent to stop at any CAPTCHA, block or login challenge; you then decide whether to continue by hand.
Implementation Workflow
Steps assembled from the agents, tools and prompt of this entry. Adapt them to your own setup.
- Choose the agentSet up Browser Use.
- Connect the toolsConnect the tools this workflow relies on: Browser Use, Google Chrome, Python.
- Check the prerequisitesPython, the Browser Use library, Google Chrome on your computer, and a model provider API key or a local model. A travel site whose terms allow this kind of use.
- Gather your detailsCollect what the prompt asks for: Airline or travel site whose terms you checked, Departure city or airport, Arrival city or airport, Outbound date, Return date, Number and type of travellers, Cabin class, Bag needs, How many options to return, Most you will pay in total.
- Run the starter promptPaste the starter prompt below into Browser Use and adapt it to your case.
- Check against the documentationCompare what you get with the documentation at github.com before you rely on it.
Practical Starter Prompt: Compare flights and stop at checkout
Fill the fields to adapt the prompt. Empty fields stay as visible [placeholders].
On [Airline or travel site whose terms you checked] only, search flights from [Departure city or airport] to [Arrival city or airport] departing [Outbound date] and returning [Return date] for [Number and type of travellers], [Cabin class] class, with [Bag needs]. Return the [How many options to return] best options under [Most you will pay in total] as a table: airline, departure and arrival times, stops, fare rules and full price including fees. Do not select a fare, sign in, enter payment details or buy anything. If you meet a CAPTCHA, block or login challenge, stop and tell me. Ask me before any step beyond this search.Run it with the Browser Use library on your own local Chrome. After you choose, start a second task that selects your fare, fills in only the names and contact details you give it, and ends on the payment page. Review the checkout page in Chrome, then pay and confirm yourself.
Expected Results and Benefits
This is a suggested workflow, not a reported result. The points below are what the cited documentation says the tools can do.
This is a suggested workflow, not a reported outcome. The Browser Use README describes an open-source agent that does tasks in a real browser, including the Chrome you have open with your logins. It does not show a flight search, and travel sites change often or restrict automation, so how far the agent gets on a given site is untested here.
Limitations and Considerations
The agent never pays: keep payment details out of the task and out of the agent, and finish checkout yourself. Many airline and travel sites restrict automated access in their terms; check them first, and stop at any CAPTCHA or block rather than trying to get around it. Fares and seats can change between the search and checkout, so review the checkout page before paying. Traveller names and contact details you put in the task are sent to your model provider. The library is free, but model inference costs money with most providers. Results depend on your setup and were not independently reproduced by Top 200 Repos.
GitHub Repositories
AI Agent Repository
Source code of the agent that does the work.
Related Videos
About browser-use/browser-use
Browser Use Agent Tutorial: Automate Web Tasks with AI (opens in a new tab)
Published by the project’s official channel.
Watch on YouTube (opens in a new tab)Independent creators. Listing a video implies no endorsement, sponsorship or partnership.
Sources
- Navigate the web like a human does. (opens in a new tab)
Project documentation · github.com · Undated · Source checked 25 Nov 2026, 11:57 UTC
What this source supports
- The CLI and Python library can each connect to a local or cloud browser.
- `Browser('chrome')` drives the Chrome you have open, with your logins; `Browser('chrome', profile='Work')` uses a copy of that profile; `Browser('chromium', user_data_dir='~/bu-profile')` keeps its own logins between runs.
- Model inference and hosted browsers are separate: API providers, including `ChatBrowserUse`, and Browser Use Cloud charge for usage.
