Use this when a Playwright connection to BrowserCat needs a third-party proxy or browser launch options. Pass the options as JSON in the `BrowserCat-Opts` header:

```js
import * as pw from 'playwright';

const key = process.env.BROWSERCAT_API_KEY;
const u = process.env.PROXY_USER;
const p = process.env.PROXY_PASSWORD;

const browser = await pw.chromium.connect(
  'wss://api.browsercat.com/connect',
  {
    headers: {
      'Api-Key': key,
      'BrowserCat-Opts': JSON.stringify({
        proxy: {
          server: 'http://proxy.example.com:8080',
          username: u,
          password: p,
          bypass: 'example.com',
        },
      }),
    },
  },
);
```

When a proxy is configured, `proxy.server` is required; username, password and bypass are optional. The bypass value is a comma-separated list of domain patterns matched by suffix. BrowserCat does not include a built-in proxy service.

The `region` option is a preference, not a guaranteed region pin: the current overview says sessions run near the request and explicit routing is on the roadmap. If a particular egress IP or region matters, configure a suitable third-party proxy and verify it separately. The example describes request shape; it does not guarantee that a proxy endpoint works for every account.