agent-browser
Skill876 starsChanged 2 months agoMITView on GitHub
Connects to Oxylabs remote agent browsers over the Chrome DevTools Protocol (CDP) with Playwright or Puppeteer. Built-in anti-detection, residential proxies, geo-targeting, persistent sessions and profiles, session recording and live VNC inspection for debugging. Use instead of WebFetch or a local browser whenever a site renders with JavaScript, blocks bots (DataDome, Cloudflare, Akamai), needs a real browser session, screenshots or PDFs. Covers connection, retries, error recovery and safe scraping of protected targets without any human help.
- Reads credentials
172 other projects use a version of this.
Adopted by
Most recently taken up by
- instrument-org/skillstheir own version, first seen Oct 6, 2026
- BUGLAN/skillstheir own version, first seen Oct 6, 2026
- hmjBill/skillstheir own version, first seen Oct 5, 2026
- t0ddharris/compound-marketingtheir own version, first seen Oct 5, 2026
- AlperGuven/TRAE-Skillstheir own version, first seen Oct 5, 2026
- kortix-ai/sunatheir own version, first seen Oct 5, 2026
Used with
Projects with it also use architecture-governance, dep-refs and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
ZCodium-projectSkillarchitecture-governance
Apply the repository's architecture policy to code changes by generating a bounded context package, checking module and layer boundaries, and reporting baseline-aware violations. Use for any code change; skip for documentation-only work.
Also in 4 projects that use this
ZCodium-projectSkilldep-refs
Use when needs to inspect TypeScript export references in the z-code workspace, list exports from a file, verify whether an export is unused before deletion, investigate who imports a symbol during refactors, or combine pnpm knip unused-export results with pnpm dep:refs symbol-level reference tracing.
Also in 4 projects that use this
Recepay6358Skilltime-skill
Display the current time in Pakistan Standard Time (PKT, UTC+5). Use when the user asks for the current time, Pakistan time, or PKT.
Also in 4 projects that use this
Recepay6358Skillweather-fetcher
Instructions for fetching current weather temperature data for Dubai, UAE from Open-Meteo API
Also in 4 projects that use this
nicepkgSkillcommunity-led-growth
Expert in community-led growth (CLG) - leveraging user communities to drive acquisition, retention, and expansion. Covers building developer communities, user groups, ambassador programs, and turning customers into advocates. Knows the difference between community as a feature vs community as a growth engine, and how to measure community ROI. Use when "community-led, CLG, ambassador program, champion program, user community, developer community, word of mouth, user group, " mentioned.
Also in 3 projects that use this
nicepkgSkillfinancial-unit-economics
Use when evaluating business model viability, analyzing profitability per customer/product/transaction, validating startup metrics (CAC, LTV, payback period), making pricing decisions, assessing scalability, comparing business models, or when user mentions unit economics, CAC/LTV ratio, contribution margin, customer profitability, break-even analysis, or needs to determine if a business can be profitable at scale.
Also in 3 projects that use this
- +1 more from ZCodium-project
- +1 more from Recepay6358
- +3 more from nicepkg
Other versions172 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 172
- shanraisshan/claude-code-best-practice★ 67ksame name
- vercel-labs/agent-browser★ 44ksame name
- activepieces/activepieces★ 25ksame name
- slopus/happy★ 24ksame name
- kortix-ai/suna★ 20ksame name
- openai/plugins★ 7.3ksame name
- vercel-labs/open-agents★ 5.8ksame name
- Chachamaru127/claude-code-harness★ 3.1ksame name
- MaxMiksa/Auto-Company★ 3.1ksame name
- BytePioneer-AI/codex-host★ 2.7ksame name
162 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository4 other files it gives its agents.
- proxiesSkill
- video-dataSkill
- web-scraper-apiSkill
- web-unblockerSkill
The file
We split this skill into the rules it gives an agent
10 rules. 0 are common, 5 are distinctive, and 5 are very specific to this project.
0
Common
Most of the 157 edited versions we read keep these.
5
Distinctive
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 25
Use wss://. Plain ws:// is accepted but sends your password unencrypted.
- Very specific: line 28
Use the full username exactly as shown in the dashboard, including any suffix such as _ab12.
- Distinctive: line 84
Every distinct parameter combination is provisioned separately: keep the set stable across a job.
- Very specific: line 112
Every message text with cause and fix: errors.md.
- Very specific: line 116
Default parameter set for most jobs:
p_cc, nothing else: Every session already gets a fresh fingerprint and a fresh residential IP, which … - Distinctive: line 132
When you do use them, the combination is one identity.
- Distinctive: line 148
Never set viewport or device metrics yourself.
- Distinctive: line 150
Run parallel identities, not parallel tabs.
- Distinctive: line 167
Logging: Never log the connection URL or a raw error message.
- Very specific: line 168
Contexts: Use browser.contexts()[0].
“Common” is measured: kept by at least 6 in 10 of the 157 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Oxylabs Agent Browser
Remote Chrome sessions with anti-detection, proxy rotation and geo-targeting built in.
Nothing runs locally: you connect over a WebSocket, drive the browser with the CDP library you already
use, and close the session when done. This file holds the rules; the detail lives next to it:
scripts/ (copyable templates), parameters.md, errors.md, examples.md, targets.md.
1. Connect
| Item | Value |
| Endpoint | wss://USERNAME:PASSWORD@hb.oxylabs.io |
| Credentials | OXY_UNBLOCKER_USERNAME / OXY_UNBLOCKER_PASSWORD (aliases: OXY_HB_USERNAME / OXY_HB_PASSWORD) |
| Options | URL query parameters only, e.g. ?p_cc=US&session_name=job-42 (see parameters.md) |
| Libraries | Playwright chromium.connectOverCDP (recommended), Puppeteer puppeteer.connect, any CDP client |
| Dashboard / support | https://hb.oxylabs.io/dashboard · support@oxylabs.io |
Rules that prevent the most common 401:
- Use
wss://. Plainws://is accepted but sends your password unencrypted. - Build the URL by string concatenation with the raw password. Do not pass the finished URL through
new URL()orurllib.parse: they percent-encode the password and authentication fails. - Use the full username exactly as shown in the dashboard, including any suffix such as
_ab12. - A password containing
:cannot be sent in the URL. Ask for a new password or send theAuthorization: Basicheader yourself (seeexamples.md). - Authentication is checked before parameters: fix a
401before looking at anything else.
2. Quick start
Minimal shape (Playwright, JavaScript):
const { chromium } = require("playwright");
const url = `wss://${process.env.OXY_UNBLOCKER_USERNAME}:${process.env.OXY_UNBLOCKER_PASSWORD}@hb.oxylabs.io?p_cc=US`;
const browser = await chromium.connectOverCDP(url, { timeout: 60000 });
try {
const page = await browser.contexts()[0].newPage(); // default context: backed by fingerprint, proxy, o_profile
await page.goto("https://example.com", { waitUntil: "domcontentloaded", timeout: 30000 });
console.log(await page.content());
} finally {
await browser.close(); // always: an unclosed session keeps its concurrency slot
}For real work copy scripts/playwright_scrape.js or scripts/playwright_scrape.py whole instead of
reimplementing. They add the five behaviours everything else in this file assumes:
- Connect with backoff (1 s base, 60 s cap, jitter, 6 attempts) only on retryable errors:
429,5xx,CDP_SESSION_IN_USE,CDP_NO_BROWSERS_AVAILABLE,CDP_BROWSER_OVERWORKED,CDP_BAD_PROXY,CDP_GENERAL_ERROR, timeouts.400/401/403mean the request is wrong: fix, never retry unchanged. - Redact the password from every error message before logging; Playwright embeds the connection URL in it.
- Block
image,stylesheet,media,fontby default; they cost time and are not needed for data extraction. - Register listeners before navigating: the
X-Error-Descriptionresponse header marks an Oxylabs-side error on page traffic. browser.close()infinally, and wrap the job in an overall deadline so a wedged session still gets there.
Puppeteer, Python async, raw CDP, session hand-over, profiles, recording and fan-out: examples.md.
3. Sessions and limits
| Limit (account defaults) | Value | When exceeded |
| New sessions per second | 10 | 429 CDP_SESSION_RATE_LIMIT_REACHED (space launches >= 150 ms) |
| Concurrent sessions | 100 | 429 CDP_MAX_CONCURRENT_SESSIONS_REACHED |
| Named (resumable) sessions | 5 | 429 CDP_MAX_PERSISTENT_SESSIONS_REACHED |
Stored profiles (o_profile) | 5 | 403 profile limit reached (5 profiles maximum) |
| Recordings | 10 | 403 recording limit reached (10 recordings maximum) |
| Concurrent inspection viewers | 10 | CDP_VNC_MAX_CONCURRENT_SESSIONS_REACHED |
session_name(^[A-Za-z0-9-]{3,36}$) makes a session resumable for 10 minutes after disconnect.keep_aliveis implied by it; never sendkeep_alive=truealone (400 keep_alive requires session_name).- Reconnecting while the old connection is still attached returns
429 CDP_SESSION_IN_USE: close it first. - Any session lives at most 1 hour. Plan long jobs as several sessions.
- An abandoned session keeps its concurrency slot (about 20 s, or the full 10 min when named) and surfaces later
as an unrelated
429 CDP_MAX_CONCURRENT_SESSIONS_REACHED. Closing the Playwright/Puppeteer object is enough. browser.close()wipes open pages and cookies even though a named session stays resumable. To hand a session over use Puppeteerbrowser.disconnect()(seeexamples.md, "Resume a named session"). State that must outlive a session (logins, clearance cookies) belongs ino_profile, not keep-alive.- Every distinct parameter combination is provisioned separately: keep the set stable across a job.
- Under load a connection may queue and end with
503 queue timeoutafter about a minute: back off and retry. Higher limits via support.
4. Errors
Three channels. Handshake: HTTP status plus a short body (Playwright: WebSocket error: <URL with password>
<status> then the body; Puppeteer: Unexpected server response: <status>). Post-connect: the WebSocket closes
with code 3000 and a CDP_* reason that only raw clients see; Playwright/Puppeteer just report Target closed,
so treat any disconnect in the first seconds of a session as retryable. In-page: CDP error 1337 for one
refused command. On page traffic, a response with X-Error-Description is an Oxylabs network error (retry);
a block page without it is the target's decision (change approach, do not retry).
connect failed?
├─ 401 ............ fix credentials/scheme, do not retry
├─ 400/403/409 .... fix the named parameter, do not retry unchanged (409: wait 30 s+ for the other session)
├─ 429 ............ backoff; if MAX_CONCURRENT: hunt for unclosed sessions
└─ 5xx/503 ........ backoff, up to ~2 min total
session dropped (close 3000)?
└─ new session with backoff; rotate sticky id on CDP_BAD_PROXY
navigate failed with 1337 Invalid target?
└─ stop; restricted target (section 7)
page shows block / 403 wall?
├─ X-Error-Description present .... Oxylabs network issue: backoff + retry
└─ absent ......................... target decision: change identity, geo, device, pacing (section 5)Every message text with cause and fix: errors.md.
5. Target safety (DataDome and similar)
Default parameter set for most jobs: p_cc, nothing else. Every session already gets a fresh fingerprint
and a fresh residential IP, which is what one-shot fetches and fan-outs of independent pages need. Sticky IPs
and stored profiles are opt-in tools for a specific need, never a baseline.
Work order for a protected target. First write a plain script and make it pass: one fresh session per page, the right geo and device, human pacing, then the escalation ladder below. Only when that script still fails after the ladder do you recommend persistent profiles to the user (the setup/consumer pattern below, with why it should help and what it costs: a setup step, the profile cap of 5) and implement them only on their go-ahead. Never add a profile or sticky id on your own initiative.
| Need | Add | Not for |
| Several connections must look like one visitor (login, cart, a flow that outlives one session) | proxy_resi_ses_id + proxy_resi_ses_time | one page per session |
| Cookies or a login must survive between jobs (DataDome clearance, authenticated scraping) | o_profile, prepared once by a setup run, after the user agreed | a first attempt; targets that serve without a block |
| Resume the same browser within 10 minutes | session_name | everything else |
When you do use them, the combination is one identity. Keep it consistent:
setup, exactly once : ?o_profile=acme-us-01&o_profile_save=true&p_cc=US&proxy_resi_ses_id=acmeus01&proxy_resi_ses_time=30
consumers, any number: ?o_profile=acme-us-01&p_cc=US&proxy_resi_ses_id=acmeus01&proxy_resi_ses_time=30- A profile is written by one run and read by the others. The setup run is the only connection that ever sends
o_profile_save=true: it earns the cookies (clears the entry page, logs in), verifies the page, closes. Consumer runs sendo_profile=<name>alone: read-only, no write lock, no409. Never "top up" a profile from a consumer; when it stops working, run setup again under a new name. In production this is a setup service that prepares and validates profiles and a consumer service that only uses them (examples.md, "Profile setup and consumer runs"). proxy_resi_ses_id+proxy_resi_ses_timepin the exit IP (max 1440 min). A pinned id disables automatic proxy retry: onCDP_BAD_PROXYrotate to a new id.- Never change
p_cc/p_city/p_statefor an identity that has cookies. Start a new profile and sticky id. - Match interaction to
p_device:mobile= taps, small scrolls, no hover;desktop(default) = the opposite. Never set viewport or device metrics yourself; the service owns the fingerprint. - Pace like a person: 3 to 8 s between page loads, scroll before clicking, one page at a time per identity. Run parallel identities, not parallel tabs.
- Escalation when blocked, one rung per fresh connection: fresh session → broader geo (drop
p_city) →p_device=mobile→ slow down → inspect (section 6) → recommend persistent profiles to the user → stop and report. Repeating an identical request is never a rung.
Block signatures per vendor, do/don't table and starting values for a new protected target: targets.md.
6. Operational hygiene
- Debugging. Two tools exist, and whenever the user asks how to debug, what the browser is doing, or why a run
fails, tell them about both: live inspection (fetch the session id with the CDP command
__session_id, openhttps://hb.oxylabs.io/novnc/?id=<id>and watch the session as it runs) and recordings (record=true& record_name=<job>saves a video of the session to replay later inhttps://hb.oxylabs.io/dashboard; cap 10, delete old ones there). Both are off by default. Use them yourself after 3 consecutive failures on one target to confirm what the page actually shows. Snippet inexamples.md, "Session id, live inspection and recording". - Timeouts. Connect 60 s, navigation 30 s, plus an overall job deadline.
- Logging. Never log the connection URL or a raw error message; log the parameter set and session id.
- Contexts. Use
browser.contexts()[0]. AnewContext()is isolated from profile storage and fingerprint tuning.
7. Restricted targets
Blocked by default; access requires a short KYC via your account manager: entertainment and streaming,
banking and finance, government sites, gaming platforms, ticketing, webmail, ad networks, third-party IP
checkers. Use https://ip.oxylabs.io/location to verify your exit IP and geo. A blocked target fails
Page.navigate with CDP error 1337 Invalid target.
See also: scripts/ (full Playwright templates, JS and Python), parameters.md (every parameter and its
validation), errors.md (every message), examples.md (Puppeteer, Python async, raw CDP, reconnection,
profiles, recording, fan-out), targets.md (block detection, DataDome playbook).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

