For the complete documentation index, see llms.txt. This page is also available as Markdown.

Start using Agent Browser

A beginner's guide for purchasing and using Oxylabs Agent Browser to automate browsing for AI agents and web scraping.

Creating a Agent Browser user

  1. Create a dashboard account and navigate to Pricing.

  2. Choose a pricing plan that fits your needs. Every new account also gets a welcome credit to spend right away. See How pricing and billing work for details.

  3. Create an Agent Browser instance in the dashboard. You're required to name the instance before you can confirm it.

  4. Your username and password are generated automatically and can be viewed anytime in the instance settings.

Making your first request

You can connect to Agent Browser using Playwright, Puppeteer, or any tools that support the Chrome DevTools Protocol (CDP). Additionally, you can integrate directly with AI applications through the Model Context Protocol (MCP), enabling full automation of your browsing workflows.

Let’s try a basic connection to the Agent Browser using Playwright.

Playwright example in Python

Install the Playwright library through your terminal:

pip install playwright

Use your Agent Browser credentials and run the code:

from playwright.sync_api import sync_playwright

username = "your-username"
password = "your-password"
endpoint = "hb.oxylabs.io"
browser_url = f"wss://{username}:{password}@{endpoint}"

with sync_playwright() as p:
    browser = p.chromium.connect_over_cdp(browser_url)
    page = browser.new_page()
    page.goto('https://oxylabs.io/')
    print(page.title())
    browser.close()

Playwright example in JavaScript

Install the Playwright library through your terminal:

Enter your Agent Browser credentials and run the code:

For more information and examples on using the Agent Browser, visit our extensive documentation or contact our support team at support@oxylabs.io.

Additional free features

  • Built-in proxy servers for routing requests through specific geographic locations.

  • Country, city and state-level geotargeting for pinpointing the exact location your session runs from.

  • Session inspection and recording for visual debugging of browser automation sessions.

  • Specifying device type for handling responsive layouts, mobile content, and CAPTCHAs or UI elements.

  • CAPTCHA handling and dynamic manual triggering for dynamic, post-load CAPTCHAs.

Last updated

Was this helpful?