本地开发与集成(2/2)
Complete reference for all browser configuration options — launch args, proxy, viewport, user data, and CDP settings.
The Browser instance also provides all Actor methods for direct browser control (page management, element interactions, etc.).
Core Settings
cdp_url: CDP URL for connecting to existing browser instance (e.g.,"http://localhost:9222")
Display & Appearance
headless(default:None): Run browser without UI. Auto-detects based on display availability (True/False/None)window_size: Browser window size for headful mode. Use dict{'width': 1920, 'height': 1080}orViewportSizeobjectwindow_position(default:{'width': 0, 'height': 0}): Window position from top-left corner in pixelsviewport: Content area size, same format aswindow_size. Use{'width': 1280, 'height': 720}orViewportSizeobjectno_viewport(default:None): Disable viewport emulation, content fits to window sizedevice_scale_factor: Device scale factor (DPI). Set to2.0or3.0for high-resolution screenshots
Browser Behavior
keep_alive(default:None): Keep browser running after agent completesallowed_domains: Restrict navigation to specific domains. Domain pattern formats:'example.com'- Matches onlyhttps://example.com/*'*.example.com'- Matcheshttps://example.com/*and any subdomainhttps://*.example.com/*'http*://example.com'- Matches bothhttp://andhttps://protocols'chrome-extension://*'- Matches any Chrome extension URL- Security: Wildcards in TLD (e.g.,
example.*) are not allowed for security - Use list like
['*.google.com', 'https://example.com', 'chrome-extension://*'] - Performance: Lists with 100+ domains are automatically optimized to sets for O(1) lookup. Pattern matching is disabled for optimized lists. Both
www.example.comandexample.comvariants are checked automatically. prohibited_domains: Block navigation to specific domains. Uses same pattern formats asallowed_domains. When bothallowed_domainsandprohibited_domainsare set,allowed_domainstakes precedence. Examples:['pornhub.com', '*.gambling-site.net']- Block specific sites and all subdomains['https://explicit-content.org']- Block specific protocol/domain combination- Performance: Lists with 100+ domains are automatically optimized to sets for O(1) lookup (same as
allowed_domains) enable_default_extensions(default:True): Load automation extensions (uBlock Origin, cookie handlers, ClearURLs)cross_origin_iframes(default:False): Enable cross-origin iframe support (may cause complexity)is_local(default:True): Whether this is a local browser instance. Set toFalsefor remote browsers. If we have aexecutable_pathset, it will be automatically set toTrue. This can affect your download behavior.
User Data & Profiles
user_data_dir(default: auto-generated temp): Directory for browser profile data. UseNonefor incognito modeprofile_directory(default:'Default'): Chrome profile subdirectory name ('Profile 1','Work Profile', etc.)storage_state: Browser storage state (cookies, localStorage). Can be file path string or dict object
Network & Security
-
proxy: Proxy configuration usingProxySettings(server='http://host:8080', bypass='localhost,127.0.0.1', username='user', password='pass') -
permissions(default:['clipboardReadWrite', 'notifications']): Browser permissions to grant. Use list like['camera', 'microphone', 'geolocation'] -
headers: Additional HTTP headers for connect requests (remote browsers only)
Browser Launch
executable_path: Path to browser executable for custom installations. Platform examples:- macOS:
'/Applications/Google Chrome.app/Contents/MacOS/Google Chrome' - Windows:
'C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe' - Linux:
'/usr/bin/google-chrome' channel: Browser channel ('chromium','chrome','chrome-beta','msedge', etc.)args: Additional command-line arguments for the browser. Use list format:['--disable-gpu', '--custom-flag=value', '--another-flag']env: Environment variables for browser process. Use dict like{'DISPLAY': ':0', 'LANG': 'en_US.UTF-8', 'CUSTOM_VAR': 'test'}chromium_sandbox(default:Trueexcept in Docker): Enable Chromium sandboxing for securitydevtools(default:False): Open DevTools panel automatically (requiresheadless=False)ignore_default_args: List of default args to disable, orTrueto disable all. Use list like['--enable-automation', '--disable-extensions']
Timing & Performance
minimum_wait_page_load_time(default:0.25): Minimum time to wait before capturing page state in secondswait_for_network_idle_page_load_time(default:0.5): Time to wait for network activity to cease in secondswait_between_actions(default:0.1): Time to wait between agent actions in seconds
AI Integration
highlight_elements(default:True): Highlight interactive elements for AI visionpaint_order_filtering(default:True): Enable paint order filtering to optimize DOM tree by removing elements hidden behind others. Slightly experimental
Downloads & Files
accept_downloads(default:True): Automatically accept all downloadsdownloads_path: Directory for downloaded files. Use string like'./downloads'orPathobjectauto_download_pdfs(default:True): Automatically download PDFs instead of viewing in browser
Device Emulation
user_agent: Custom user agent string. Example:'Mozilla/5.0 (iPhone; CPU iPhone OS 14_0 like Mac OS X)'screen: Screen size information, same format aswindow_size
Recording & Debugging
Video recording requires additional optional dependencies. If these are not installed, no video will be saved and no error will be raised.
Install with:
pip install "browser-use[video]"
or:
pip install "imageio[ffmpeg]" numpy
record_video_dir: Directory to save video recordings as.mp4filesrecord_video_size(default:ViewportSize): The frame size (width, height) of the video recording.record_video_framerate(default:30): The framerate to use for the video recording.record_har_path: Path to save network trace files as.harformattraces_dir: Directory to save complete trace files for debuggingrecord_har_content(default:'embed'): HAR content mode ('omit','embed','attach')record_har_mode(default:'full'): HAR recording mode ('full','minimal')
Advanced Options
disable_security(default:False): ⚠️ NOT RECOMMENDED - Disables all browser security featuresdeterministic_rendering(default:False): ⚠️ NOT RECOMMENDED - Forces consistent rendering but reduces performance
Outdated BrowserProfile
For backward compatibility, you can pass all the parameters from above to the BrowserProfile and then to the Browser.
from browser_use import BrowserProfile
profile = BrowserProfile(headless=False)
browser = Browser(browser_profile=profile)
Browser vs BrowserSession
Browser is an alias for BrowserSession - they are exactly the same class:
Use Browser for cleaner, more intuitive code.
Class Methods
Browser.from_system_chrome()
Creates a Browser instance using your system's Chrome installation and profile. Automatically detects Chrome executable and user data directory for your platform.
from browser_use import Browser
# Auto-select first available profile
browser = Browser.from_system_chrome()
# Or specify a profile
browser = Browser.from_system_chrome(profile_directory='Profile 1')
Parameters:
profile_directory(default:None): Chrome profile to use ('Default','Profile 1', etc.). IfNone, auto-selects the first available profile.**kwargs: Additional arguments passed toBrowser()constructor (e.g.,headless=False)
Returns: Browser instance configured to use your system Chrome
Raises: RuntimeError if Chrome is not found on your system
Note: You may need to fully close Chrome before using this, so Chrome profiles aren't used by multiple instances simultaneously.
Browser.list_chrome_profiles()
Lists available Chrome profiles on the system.
from browser_use import Browser
profiles = Browser.list_chrome_profiles()
for p in profiles:
print(f"{p['directory']}: {p['name']}")
# Output:
# Profile 1: Work
# Profile 5: Personal
Returns: List of dicts with 'directory' and 'name' keys
Example return value:
[
{'directory': 'Default', 'name': 'Person 1'},
{'directory': 'Profile 1', 'name': 'Work'},
{'directory': 'Profile 5', 'name': 'Personal'}
]
Monitor news websites and extract articles with sentiment analysis using browser agents and Google Gemini.
This demo requires browser-use v0.7.7+.
<video />
Features
- Agent visits any news website automatically
- Finds and clicks the most recent headline article
- Extracts title, URL, posting time, and full content
- Generates short/long summaries with sentiment analysis
- Persistent deduplication across monitoring sessions
Setup
Make sure the newest version of browser-use is installed:
pip install -U browser-use
Export your Gemini API key, get it from: Google AI Studio
export GOOGLE_API_KEY='your-google-api-key-here'
Clone the repo, cd to the app
git clone https://github.com/browser-use/browser-use.git
cd browser-use/examples/apps/news-use
Usage Examples
# One-time extraction - Get the latest article and exit
python news_monitor.py --once
# Monitor Bloomberg continuously (default)
python news_monitor.py
# Monitor TechCrunch every 60 seconds
python news_monitor.py --url https://techcrunch.com --interval 60
# Debug mode - See browser in action
python news_monitor.py --once --debug
Output Format
Articles are displayed with timestamp, sentiment emoji, and summary:
[2025-09-11 02:49:21] - 🟢 - Klarna's IPO raises $1.4B, benefiting existing investors
[2025-09-11 02:54:15] - 🔴 - Tech layoffs continue as major firms cut workforce
[2025-09-11 02:59:33] - 🟡 - Federal Reserve maintains interest rates unchanged
Sentiment Indicators:
- 🟢 Positive - Good news, growth, success stories
- 🟡 Neutral - Factual reporting, announcements, updates
- 🔴 Negative - Challenges, losses, negative events
Data Persistence
All extracted articles are saved to news_data.json with complete metadata:
{
"hash": "a1b2c3d4...",
"pulled_at": "2025-09-11T02:49:21Z",
"data": {
"title": "Klarna's IPO pops, raising $1.4B",
"url": "https://techcrunch.com/2025/09/11/klarna-ipo/",
"posting_time": "12:11 PM PDT · September 10, 2025",
"short_summary": "Klarna's IPO raises $1.4B, benefiting existing investors like Sequoia.",
"long_summary": "Fintech Klarna successfully IPO'd on the NYSE...",
"sentiment": "positive"
}
}
Programmatic Usage
import asyncio
from news_monitor import extract_latest_article
async def main():
# Extract latest article from any news site
result = await extract_latest_article(
site_url="https://techcrunch.com",
debug=False
)
if result["status"] == "success":
article = result["data"]
print(f"📰 {article['title']}")
print(f"😊 Sentiment: {article['sentiment']}")
print(f"📝 Summary: {article['short_summary']}")
asyncio.run(main())
Advanced Configuration
# Custom monitoring with filters
async def monitor_with_filters():
while True:
result = await extract_latest_article("https://bloomberg.com")
if result["status"] == "success":
article = result["data"]
# Only alert on negative market news
if article["sentiment"] == "negative" and "market" in article["title"].lower():
send_alert(article)
await asyncio.sleep(300) # Check every 5 minutes
Source Code
Full implementation: https://github.com/browser-use/browser-use/tree/main/examples/apps/news-use
Complete observability with OpenLIT tracing.
Overview
Browser Use has native integration with OpenLIT - an open-source opentelemetry-native platform that provides complete, granular traces for every task your browser-use agent performs—from high-level agent invocations down to individual browser actions.
Read more about OpenLIT in the OpenLIT docs.
Setup
Install OpenLIT alongside Browser Use:
pip install openlit browser-use
Usage
OpenLIT provides automatic, comprehensive instrumentation with zero code changes beyond initialization:
from browser_use import Agent, Browser, ChatOpenAI
import asyncio
import openlit
# Initialize OpenLIT - that's it!
openlit.init()
async def main():
browser = Browser()
llm = ChatOpenAI(
model="gpt-4o",
)
agent = Agent(
task="Find the number trending post on Hacker news",
llm=llm,
browser=browser,
)
history = await agent.run()
return history
if __name__ == "__main__":
history = asyncio.run(main())
Viewing Traces
OpenLIT provides a powerful dashboard where you can:
Monitor Execution Flows
See the complete execution tree with timing information for every span. Click on any invoke_model span to see the exact prompt sent to the LLM and the complete response with agent reasoning.
Track Costs and Token Usage
- Cost breakdown by agent, task, and model
- Token usage per LLM call with full input/output visibility
- Compare costs across different LLM providers
- Identify expensive prompts and optimize them
Debug Failures with Agent Thoughts
When an automation fails, you can:
- See exactly which step failed
- Read the agent's thinking at the failure point
- Check the browser state and available elements
- Analyze whether the failure was due to bad reasoning or bad information
- Fix the root cause with full context
Performance Optimization
- Identify slow steps (LLM calls vs browser actions vs HTTP requests)
- Compare execution times across runs
- Optimize max_steps and max_actions_per_step
- Track HTTP request latency for page navigations
Configuration
Custom OpenTelemetry Endpoint Configuration
import openlit
# Configure custom OTLP endpoints
openlit.init(
otlp_endpoint="http://localhost:4318",
application_name="my-browser-automation",
environment="production"
)
Environment Variables
You can also configure OpenLIT via environment variables:
export OTEL_EXPORTER_OTLP_ENDPOINT="http://localhost:4318"
export OTEL_SERVICE_NAME="browser-automation"
export OTEL_ENVIRONMENT="production"
Self-Hosted OpenLIT
If you prefer to keep your data on-premises:
# Using Docker
docker run -d \
-p 4318:4318 \
-p 3000:3000 \
openlit/openlit:latest
# Access dashboard at http://localhost:3000
Integration with Existing Tools
OpenLIT uses OpenTelemetry internally, so it integrates seamlessly with:
- Jaeger - Distributed tracing visualization
- Prometheus - Metrics collection and alerting
- Grafana - Custom dashboards and analytics
- Datadog - APM and log management
- New Relic - Full-stack observability
- Elastic APM - Application performance monitoring
Simply configure OpenLIT to export to your existing OTLP-compatible endpoint.
Trace agent execution steps and capture browser session recordings.
Overview
Browser Use has a native integration with Laminar - open-source platform for monitoring and analyzing error patterns in AI agents. Laminar SDK automatically captures agent execution steps, costs and browser session recordings of Browser Use agent. Browser session recordings allow developers to see full video replay of the browser session, which is useful for debugging Browser Use agent.
Setup
Install Laminar python SDK.
pip install lmnr
Register on Laminar Cloud or self-host Laminar, create a project and get the project API key from your project settings. Set the LMNR_PROJECT_API_KEY environment variable.
export LMNR_PROJECT_API_KEY=<your-project-api-key>
Usage
Initialize Laminar at the top of your project, and both Browser Use agent traces and session recordings will be automatically captured.
from browser_use import Agent, ChatGoogle
import asyncio
from lmnr import Laminar
import os
# At initialization time, Laminar auto-instruments
# Browser Use and any browser you use (local or remote)
Laminar.initialize(project_api_key=os.getenv('LMNR_PROJECT_API_KEY'))
async def main():
agent = Agent(
task="go to ycombinator.com, summarize 3 startups from the latest batch",
llm=ChatGoogle(model="gemini-2.5-flash"),
)
await agent.run()
asyncio.run(main())
Viewing Traces
You can view traces in the Laminar UI by going to the traces tab in your project. When you select a trace, you can see both the browser session recording and the agent execution steps.
Timeline of the browser session is synced with the agent execution steps. In the trace view, you can also see the agent's current step, the tool it is using, and the tool's input and output.
<img alt="Laminar" />
Laminar
To learn more about how you can trace and evaluate your Browser Use agent with Laminar, check out Laminar docs.
Browser Use Cloud Authentication
Browser Use can sync your agent runs to the cloud for easy viewing and sharing. Authentication is required to protect your data.
Quick Setup
# Authenticate once to enable cloud sync for all future runs
browser-use auth
# Or if using module directly:
python -m browser_use.cli auth
Note: Cloud sync is enabled by default. If you have disabled it, you can re-enable with export BROWSER_USE_CLOUD_SYNC=true.
Manual Authentication
# Authenticate from code after task completion
from browser_use import Agent
agent = Agent(task="your task")
await agent.run()
# Later, authenticate for future runs
await agent.authenticate_cloud_sync()
Reset Authentication
# Force re-authentication with a different account
rm ~/.config/browseruse/cloud_auth.json
browser-use auth
Note: Authentication uses OAuth Device Flow - you must complete the auth process while the command is running. Links expire when the polling stops.
AI-powered WhatsApp message scheduler using browser agents and Gemini. Schedule personalized messages in natural language.
This demo requires browser-use v0.7.7+.
<video />
Features
- Agent logs into WhatsApp Web automatically
- Parses natural language scheduling instructions
- Composes personalized messages using AI
- Schedules messages for future delivery or sends immediately
- Persistent session (no repeated QR scanning)
Setup
Make sure the newest version of browser-use is installed:
pip install -U browser-use
Export your Gemini API key, get it from: Google AI Studio
export GOOGLE_API_KEY='your-gemini-api-key-here'
Clone the repo and cd into the app folder
git clone https://github.com/browser-use/browser-use.git
cd browser-use/examples/apps/msg-use
Initial Login
First-time setup requires QR code scanning:
python login.py
- Scan QR code when browser opens
- Session will be saved for future use
Normal Usage
- Edit your schedule in
messages.txt:
- Send "Hi" to Magnus on the 13.06 at 18:15
- Tell hinge date (Camila) at 20:00 that I miss her
- Send happy birthday message to sister on the 15.06
- Remind mom to pick up the car next tuesday
- Test mode - See what will be sent:
python scheduler.py --test
- Run scheduler:
python scheduler.py
# Debug Mode - See the browser in action
python scheduler.py --debug
# Auto Mode - Respond to unread messages every ~30 minutes
python scheduler.py --auto
Programmatic Usage
import asyncio
from scheduler import schedule_messages
async def main():
messages = [
"Send hello to John at 15:30",
"Remind Sarah about meeting tomorrow at 9am"
]
await schedule_messages(messages, debug=False)
asyncio.run(main())
Example Output
The scheduler processes natural language and outputs structured results:
[
{
"contact": "Magnus",
"original_message": "Hi",
"composed_message": "Hi",
"scheduled_time": "2025-06-13 18:15"
},
{
"contact": "Camila",
"original_message": "I miss her",
"composed_message": "I miss you ❤️",
"scheduled_time": "2025-06-14 20:00"
},
{
"contact": "sister",
"original_message": "happy birthday message",
"composed_message": "Happy birthday! 🎉 Wishing you an amazing day, sis! Hope you have the best birthday ever! ❤️🎂🎈",
"scheduled_time": "2025-06-15 09:00"
}
]
Source Code
Full implementation: https://github.com/browser-use/browser-use/tree/main/examples/apps/msg-use
Generate Instagram image ads and TikTok video ads from landing pages using browser agents, Google's Nano Banana 🍌, and Veo3.
This demo requires browser-use v0.7.6+.
<video />
Features
- Agent visits your target website
- Captures brand name, tagline, and key selling points
- Takes a clean screenshot for design reference
- Creates scroll-stopping Instagram image ads with 🍌
- Generates viral TikTok video ads with Veo3
- Supports parallel generation of multiple ads
Setup
Make sure the newest version of browser-use is installed (with screenshot functionality):
pip install -U browser-use
Export your Gemini API key, get it from: Google AI Studio
export GOOGLE_API_KEY='your-google-api-key-here'
Clone the repo and cd into the app folder
git clone https://github.com/browser-use/browser-use.git
cd browser-use/examples/apps/ad-use
Normal Usage
# Basic - Generate Instagram image ad (default)
python ad_generator.py --url https://www.apple.com/iphone-16-pro/
# Generate TikTok video ad with Veo3
python ad_generator.py --tiktok --url https://www.apple.com/iphone-16-pro/
# Generate multiple ads in parallel
python ad_generator.py --instagram --count 3 --url https://www.apple.com/iphone-16-pro/
python ad_generator.py --tiktok --count 2 --url https://www.apple.com/iphone-16-pro/
# Debug Mode - See the browser in action
python ad_generator.py --url https://www.apple.com/iphone-16-pro/ --debug
Command Line Options
--url: Landing page URL to analyze--instagram: Generate Instagram image ad (default if no flag specified)--tiktok: Generate TikTok video ad using Veo3--count N: Generate N ads in parallel (default: 1)--debug: Show browser window and enable verbose logging
Programmatic Usage
import asyncio
from ad_generator import create_ad_from_landing_page
async def main():
results = await create_ad_from_landing_page(
url="https://your-landing-page.com",
debug=False
)
print(f"Generated ads: {results}")
asyncio.run(main())
Output
Generated ads are saved in the output/ directory with:
- PNG image files (ad_timestamp.png) - Instagram ads generated with Gemini 2.5 Flash Image
- MP4 video files (ad_timestamp.mp4) - TikTok ads generated with Veo3
- Analysis files (analysis_timestamp.txt) - Browser agent analysis and prompts used
- Landing page screenshots (landing_page_timestamp.png) - Reference screenshots
Source Code
Full implementation: https://github.com/browser-use/browser-use/tree/main/examples/apps/ad-use
Connect to remote browsers via CDP — use with the Cloud, Browserbase, or any remote Chrome instance.
Browser-Use Cloud Browser or CDP URL
The easiest way to use a cloud browser is with the built-in Browser-Use cloud service:
from browser_use import Agent, Browser, ChatBrowserUse
# Simple: Use Browser-Use cloud browser service
browser = Browser(
use_cloud=True, # Automatically provisions a cloud browser
)
# Advanced: Configure cloud browser parameters
# Managed browsers include CAPTCHA handling; some sites may still block automation
browser = Browser(
cloud_profile_id='your-profile-id', # Optional: specific browser profile
cloud_proxy_country_code='us', # Optional: proxy location (us, uk, fr, it, jp, au, de, fi, ca, in)
cloud_timeout=30, # Optional: requested session timeout in minutes (up to 240)
)
# Or use a CDP URL from any cloud browser provider
browser = Browser(
cdp_url="http://remote-server:9222" # Get a CDP URL from any provider
)
agent = Agent(
task="Your task here",
llm=ChatBrowserUse(),
browser=browser,
)
Prerequisites:
- Get an API key from cloud.browser-use.com
- Set BROWSER_USE_API_KEY environment variable
Cloud Browser Parameters:
cloud_profile_id: UUID of a browser profile (optional, uses default if not specified)cloud_proxy_country_code: Country code for proxy location - supports: us, uk, fr, it, jp, au, de, fi, ca, incloud_timeout: Requested session timeout in minutes, up to 240. Credit balance and account eligibility still apply; this is not a promise of free usage for that duration.
Benefits:
- ✅ No local browser setup required
- ✅ Scalable and fast cloud infrastructure
- ✅ Automatic provisioning and teardown
- ✅ Built-in authentication handling
- ✅ Optimized for browser automation
- ✅ Global proxy support for geo-restricted content
Third-Party Cloud Browsers
You can pass in a CDP URL from any remote browser
Proxy Connection
from browser_use import Agent, Browser, ChatBrowserUse
from browser_use.browser import ProxySettings
browser = Browser(
headless=False,
proxy=ProxySettings(
server="http://proxy-server:8080",
username="proxy-user",
password="proxy-pass"
),
cdp_url="http://remote-server:9222"
)
agent = Agent(
task="Your task here",
llm=ChatBrowserUse(),
browser=browser,
)
Optimize agent performance for maximum speed and efficiency.
import asyncio
from dotenv import load_dotenv
load_dotenv()
from browser_use import Agent, BrowserProfile
# Speed optimization instructions for the model
SPEED_OPTIMIZATION_PROMPT = """
Speed optimization instructions:
- Be extremely concise and direct in your responses
- Get to the goal as quickly as possible
- Use multi-action sequences whenever possible to reduce steps
"""
async def main():
# 1. Use fast LLM - Llama 4 on Groq for ultra-fast inference
from browser_use import ChatGroq
llm = ChatGroq(
model='meta-llama/llama-4-maverick-17b-128e-instruct',
temperature=0.0,
)
# from browser_use import ChatGoogle
# llm = ChatGoogle(model='gemini-flash-lite-latest')
# 2. Create speed-optimized browser profile
browser_profile = BrowserProfile(
minimum_wait_page_load_time=0.1,
wait_between_actions=0.1,
headless=False,
)
# 3. Define a speed-focused task
task = """
1. Go to reddit https://www.reddit.com/search/?q=browser+agent&type=communities
2. Click directly on the first 5 communities to open each in new tabs
3. Find out what the latest post is about, and switch directly to the next tab
4. Return the latest post summary for each page
"""
# 4. Create agent with all speed optimizations
agent = Agent(
task=task,
llm=llm,
flash_mode=True, # Disables thinking in the LLM output for maximum speed
browser_profile=browser_profile,
extend_system_message=SPEED_OPTIMIZATION_PROMPT,
)
await agent.run()
if __name__ == '__main__':
asyncio.run(main())
Speed Optimization Techniques
1. Fast LLM Models
# Groq - Ultra-fast inference
from browser_use import ChatGroq
llm = ChatGroq(model='meta-llama/llama-4-maverick-17b-128e-instruct')
# Google Gemini Flash - Optimized for speed
from browser_use import ChatGoogle
llm = ChatGoogle(model='gemini-flash-lite-latest')
2. Browser Optimizations
browser_profile = BrowserProfile(
minimum_wait_page_load_time=0.1, # Reduce wait time
wait_between_actions=0.1, # Faster action execution
headless=True, # No GUI overhead
)
3. Agent Optimizations
agent = Agent(
task=task,
llm=llm,
flash_mode=True, # Skip LLM thinking process
extend_system_message=SPEED_PROMPT, # Optimize LLM behavior
)
Install Browser Use as an agent skill. Drop browser automation, cloud, QA, and payments into Claude Code, Cursor, and any agent that supports SKILL.md.
Browser Use ships a set of agent skills — self-contained SKILL.md bundles that teach a coding agent (Claude Code, Cursor, OpenClaw, Hermes, and others) how to use Browser Use. Each skill is installable from skills.sh with one command.
Install
Every skill installs through the skills CLI with the same pattern — swap in the skill name with --skill:
npx skills add https://github.com/browser-use/browser-use --skill <name>
For example, to install the QA skill:
npx skills add https://github.com/browser-use/browser-use --skill qa
The skills CLI drops the skill into your agent's skills directory (e.g. .claude/skills/ for Claude Code). Your agent picks it up automatically — no extra wiring.
Available skills
Drive a browser directly from the CLI — navigate, click, fill forms, screenshot, and extract data.
Reference for Browser Use Cloud — the hosted REST API (v2 & v3) and the Python/TypeScript SDKs.
Reference for writing Python against the `browser-use` library — Agent, Browser, Tools, and more.
QA-test any site or local dev server and return a 1–5 quality score with evidence.
Control a headless browser from a sandboxed remote machine (cloud VMs, CI, coding agents).
Pay for Browser Use Cloud per request from a crypto wallet — no signup or API key.
Source
All skills live in the skills/ directory of the browser-use repo.
