Oxylabs Headless Browser
Teaches Claude to drive Oxylabs' remote anti-detect Chrome over CDP with Playwright or Puppeteer for scraping bot-protected sites.
Web & APIIntermediate★ 874⑂ 2AI score 8/10Last updated: Sep 24, 2026
What it does
- Gives the exact rules for building the
wss://USER:PASS@hb.oxylabs.ioendpoint and connecting via PlaywrightconnectOverCDPor Puppeteerconnect, including the percent-encoding pitfall that causes most 401s. - Separates retryable failures (429, 5xx,
CDP_BAD_PROXY, early disconnects) from fatal ones (400/401/403) and enforces exponential backoff, password redaction in logs, resource blocking, andbrowser.close()infinally. - Documents account limits (10 sessions/s, 100 concurrent, 5 named sessions, 5 profiles, 10 recordings) and the correct use of
session_name,o_profile, and sticky residential IDs. - Provides an escalation ladder for DataDome/Cloudflare/Akamai blocks: fresh session → broader geo → mobile device → slower pacing → live VNC inspection → propose persistent profiles to the user.
- Lists restricted verticals that fail with CDP error
1337 Invalid target.
Who it's for
- Data-collection engineers with an existing Oxylabs Headless Browser / Unblocker subscription.
- Anyone whose
WebFetchcalls fail on JavaScript-rendered or bot-walled pages. - Teams letting Claude write scrapers who want guardrails against leaked sessions and blind retry loops.
Examples
- "Render this product page from a US IP and extract the price" → minimal Playwright script with
?p_cc=US, images/fonts blocked, hard timeouts. - "I keep hitting a 403 wall" → checks for the
X-Error-Descriptionheader to tell an Oxylabs-side error from a target block, then walks one rung up the escalation ladder per attempt. - "Keep a logged-in session across daily jobs" → proposes a one-time setup run with
o_profile_save=trueplus read-only consumer runs, flagging the 5-profile cap.
· · · Install guide · · ·
Try it now, no install
Paste this into Claude to use the skill without installing anything.
Read the instructions in this file and follow them to help me: https://raw.githubusercontent.com/oxylabs/agent-skills/HEAD/skills/headless-browser/SKILL.md What I want: (describe your task here)
If Claude can't open the link, open it yourself and paste the contents instead.
↓ If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on Claude Skill Mart. Copy the skills/headless-browser folder from the GitHub repo oxylabs/agent-skills into my ~/.claude/skills/headless-browser/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/oxylabs/agent-skills.git && mkdir -p ~/.claude/skills && cp -r agent-skills/skills/headless-browser ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal.
- Clone the repo:
git clone https://github.com/oxylabs/agent-skills.git - Create the skills directory:
mkdir -p ~/.claude/skills - Copy the skill:
cp -r agent-skills/skills/headless-browser ~/.claude/skills/ - Export your Oxylabs credentials:
export OXY_UNBLOCKER_USERNAME=...andexport OXY_UNBLOCKER_PASSWORD=...(add them to your shell profile to persist). - Install a CDP client in your project:
npm i playwrightorpip install playwright. - Restart Claude Code and try: "Use the Oxylabs headless browser to render this URL and extract the data."
View source on GitHub ↗License: MIT