Skip to content
Dashboard
Integrations

Browser-Use

Connect Browser-Use AI web agents to Lightcone cloud browsers.

Browser-Use is an open-source framework that makes websites accessible to AI agents. Connect it to Lightcone’s cloud browsers for scalable, stealth-enabled web automation.

Terminal window
pip install browser-use tzafon playwright
playwright install chromium
from browser_use import Agent
from langchain_openai import ChatOpenAI
from tzafon import Lightcone
from playwright.async_api import async_playwright
async def main():
# Create a Lightcone browser session
client = Lightcone()
session = client.computers.create(kind="browser")
cdp_url = session.endpoints.get("cdp")
# Connect Playwright to the Lightcone browser
pw = await async_playwright().start()
browser = await pw.chromium.connect_over_cdp(cdp_url)
# Create a Browser-Use agent on the remote browser
agent = Agent(
task="Search for 'machine learning' on Wikipedia and summarize the first paragraph",
llm=ChatOpenAI(model="gpt-4o"),
browser=browser,
)
result = await agent.run()
print(result)
await browser.close()
await pw.stop()
client.computers.delete(session.id)
import asyncio
asyncio.run(main())

By default, Browser-Use runs a local Chromium browser. Connecting it to Lightcone gives you:

  • Cloud execution — No local browser needed; scale to many concurrent agents
  • Stealth mode — Lightcone’s anti-detection features help agents access sites that block automation
  • Residential proxies — Rotate IPs to avoid rate limiting
  • Session persistence — Save and restore login state across agent runs

Browser-Use uses Playwright internally. Lightcone exposes a Chrome DevTools Protocol (CDP) endpoint for each browser session. You connect Playwright to Lightcone’s CDP URL instead of launching a local browser, and Browser-Use operates on the remote session transparently.