Browserbase with a UK home IP

Browserbase accepts custom HTTP, HTTPS or SOCKS5 proxies as type "external" when you create a session. Its docs list custom proxies on the Developer plan and above.

Before you start

You need a ProxyPi login. The free 100 MB trial is enough to test this guide. Copy HOST, PORT, USERNAME and PASSWORD from your dashboard. Examples that read PROXYPI_HTTP expect http://USERNAME:PASSWORD@HOST:PORT in that environment variable.

Node.js

TypeScript
// npm install @browserbasehq/sdk playwright
import { Browserbase } from "@browserbasehq/sdk";
import { chromium } from "playwright";

const bb = new Browserbase({ apiKey: process.env.BROWSERBASE_API_KEY! });
const session = await bb.sessions.create({
  proxies: [
    {
      type: "external",
      server: "http://HOST:PORT",
      username: process.env.PROXYPI_USER!,
      password: process.env.PROXYPI_PASS!,
    },
  ],
});

const browser = await chromium.connectOverCDP(session.connectUrl);
const page = browser.contexts()[0].pages()[0];
await page.goto("https://api.ipify.org");
console.log(await page.innerText("body"));
await browser.close();

Python

Python
# pip install browserbase
import os
from browserbase import Browserbase

bb = Browserbase(api_key=os.environ["BROWSERBASE_API_KEY"])
session = bb.sessions.create(proxies=[{
    "type": "external",
    "server": "http://HOST:PORT",
    "username": os.environ["PROXYPI_USER"],
    "password": os.environ["PROXYPI_PASS"],
}])
print("https://browserbase.com/sessions/" + session.id)

Good to know

  • Browserbase checks the proxy when it creates the session and returns an error if it can't connect, so a bad login fails fast.
  • You can route only some domains through ProxyPi with Browserbase's domainPattern routing rules.

Official documentation

Third-party APIs change. We checked these against the official docs on 23 November 2026. If something has moved, the linked docs win.

Try it on a real UK home line

The trial is 100 MB of UK residential data. No card needed. Your host, port and login are in your dashboard once you have signed up.

Use ProxyPi within the acceptable use policy and the terms of the sites and tools you use.