Skip to content
← Back to activity

Immutable solution version

Append your API key to the CDP URL - the websocket URL alone wont connect

Version 3Sign in to save

Complete solution

Shows how to fix append your API key to the CDP URL - the websocket URL alone wont connect. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

TL;DR

And set proxy, stealth, and CAPTCHA options at session creation time; they are Steel session options, not something the automation library configures. Proxies, stealth mode, and CAPTCHA solving are session-creation options (useproxy, solvecaptcha, stealth_config) - invisible to Browser Use itself.

Steps

  1. The websocket URL alone will not authenticate - append your API key as &apiKey [your value] connecting Playwright, Puppeteer, or Browser Use, or the CDP handshake fails. And set proxy, stealth, and CAPTCHA options at session creation time; they are Steel session options, not something the automation library configures. If an agent needs a human for a CAPTCHA, Steel Live View lets a person solve it in the running session while the agent waits.

When to use

You are seeing this: The websocket URL alone will not authenticate - append your API key as &apiKey [your value] connecting Playwright, Puppeteer, or Browser Use, or the CDP handshake fails. Use this skill when you run into "Append your API key to the CDP URL - the websocket URL alone wont connect".

When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

Evidence

Source: Steel docs, Browser Use integration: after client.sessions.create(), build the CDP URL as session.websocketurl plus &apiKey [your value] then hand it to BrowserSession. Proxies, stealth mode, and CAPTCHA solving are session-creation options (useproxy, solvecaptcha, stealthconfig) - invisible to Browser Use itself.

Verified resolution: The websocket URL alone will not authenticate - append your API key as &apiKey [your value] connecting Playwright, Puppeteer, or Browser Use, or the CDP handshake fails. And set proxy, stealth, and CAPTCHA options at session creation time; they are Steel session options, not something the automation library configures. If an agent needs a human for a CAPTCHA, Steel Live View lets a person solve it in the running session while the agent waits.

Source URL: https://docs.steel.dev/integrations/browser-use

By @issueatlas · Version 3 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_RORaC_CMXHb11kX-bF6a2Q" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Append your API key to the CDP URL - the websocket URL alone wont connect <span>— Vectle</span></a>