Entry point for Bright Data skills. Guides setup, authentication, and routing to the right skill for web scraping, browser automation, or data fetching tasks.
Ships in brightdata-plugin. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Install the CLI and the skills, log in once, then route to the task skill.
Never ask the user to paste an API key into chat. Login is one browser approval. The key never touches the conversation.
Three free checks before doing any work:
bdata --version works: skip to Add the skills.node <this skill's folder>/scripts/check-auth.mjs --for <skill> (scripts/check-auth.mjs). The path is relative to this skill's folder, not to the project: a "Cannot find module" error means a wrong path, never a login problem. One free call, and the exit code is the answer: 0 ready, go to that skill. 2 means log in. 3 means the key was never tested (network or server), so fix that instead of logging in. 1 means the key works but the account has no zone of the type that skill needs, which is one free call (in Log in below), never another login. 4 means bad usage: a --for value that is not a skill name from the route table, or a BRIGHTDATA_API_BASE that is not an https brightdata.com host. Fix the command; nothing about the account. Zone names do not matter: they differ by how the account was set up, and the script matches by type.Check 1 passes but check 2 answers logged out: go to Log in. On Windows, "bdata is not recognized" can also mean installed but not on PATH - apply the PATH fix in Install before reinstalling. In Windows PowerShell, bdata.ps1 cannot be loaded because running scripts is disabled on this system means the CLI is installed but the default execution policy blocks npm's PowerShell shims. Run bdata.cmd and npm.cmd instead (the same fix as npx.cmd under Add the skills), or ask the user to run Set-ExecutionPolicy -Scope CurrentUser RemoteSigned.
| OS | Command |
|---|---|
| Windows | npm install -g @brightdata/cli |
| macOS and Linux | npm install -g @brightdata/cli, or curl -fsSL https://cli.brightdata.com/install.sh | bash |
The curl script is for interactive machines only: it runs bdata login by itself at the end, so on a headless machine it exits 1 after installing, and on a logged-in machine it replaces the saved key. In CI and containers use npm or npx.
The npm command needs Node.js. Windows notes: if npm is missing, install Node.js LTS first (nodejs.org or winget install OpenJS.NodeJS.LTS), then retry. If bdata is still not recognized after install, npm's global directory is not on PATH. Fix it for this session and tell the user to add it permanently. In PowerShell:
$env:PATH += ";$(npm.cmd config get prefix)"
cmd rejects that line. The cmd version:
for /f "delims=" %p in ('npm config get prefix') do set PATH=%PATH%;%p
Both lines die with the session. To make it permanent, the user adds npm's prefix directory, the path npm config get prefix prints, to their user PATH through the Windows environment variable settings (Start, "Edit the system environment variables", then Environment Variables). Do not reach for setx here. It truncates PATH at 1024 characters, so on a machine with a long PATH it destroys the value it was meant to extend.
If npm install -g is blocked on the machine, skip installing: npx -y @brightdata/cli <command> runs the same CLI on demand, use it wherever a command says bdata.
These are the skills the agent will route to. One command installs all of them:
npx -y skills add brightdata/skills -y
Run it from the project root, because it installs into the current directory's agent folders. Keep both -y flags: the first lets npx fetch the installer, the second skips its prompts, so no person is needed. In Windows PowerShell, where the default policy blocks npx.ps1, call npx.cmd instead of npx. The installer also needs git on PATH, because it clones the repo. If git --version fails, install git first (Windows: winget install --id Git.Git -e; macOS: xcode-select --install; Linux: the distribution's package manager, for example sudo apt install git).
Prefer bdata login over bdata init for agent setups: init is the interactive wizard for humans, and it also writes a default_zone_serp config value that login flows never need. If a machine has run init and bdata search later answers zone "<name>" not found, pick a real zone from bdata zones and pass --zone, or make it the CLI default with bdata config set default_zone_serp <name>.
bdata login
The browser opens on the user's machine, they approve once, and the CLI writes the key by itself. Nothing to paste anywhere.
On SSH, in containers, or on any machine without a browser, use bdata login --device instead. It prints a pairing code and a URL (to stderr), show both to the user, they approve from any device, and the command waits and then writes the key. The code expires after about 15 minutes. Bare bdata login cannot work there: it waits about two minutes for a browser callback that cannot arrive, then exits 1 with an error containing Timed out waiting for callback (printed as Error: Authentication failed: Timed out waiting for callback), and its printed fallback URL only works on the machine running the command.
The agent may start the login; the user approves it. Login waits for that approval, and while a command waits the agent cannot talk to the user, so never run it in the foreground. Start it in the background with stderr going to a file (the code and URL are printed to stderr): on macOS and Linux (bash or zsh) bdata login --device 2> bd-login.log &, in Windows PowerShell Start-Process bdata.cmd -ArgumentList 'login','--device' -RedirectStandardError bd-login.log -NoNewWindow. Read the code and URL from that file, and give both to the user: open this link, check the code matches, approve, then tell me. Say that login also creates cli_unlocker and cli_browser zones on their account if they are missing. When the user says it is done, confirm with check-auth.mjs (below) and continue; if the code expired, start a fresh one. Never approve it yourself, even with a browser at hand: the approval is the user's consent and needs their signed-in account.
Never run login on a machine where bdata zones --json already prints a zone list. With an active browser session, login completes by itself and silently replaces the saved API key, which breaks anything still using the old key. The curl install script counts too - it runs login by itself.
Do not use bdata login --github in scripts or unattended runs. It shells out to gh, and on any failure it drops into an interactive prompt. With no terminal attached (CI, scripts), that prompt never returns.
To confirm login actually worked, run the same node <this skill's folder>/scripts/check-auth.mjs --for <skill> as in Already set up. Without --for it checks only the key and lists the zones it found.
It matches zones by type, never by name, because the name depends on how the account was set up: cli_unlocker and cli_browser after login, agent_unlocker and agent_browser_api after agent registration, mcp_unlocker and mcp_browser from the MCP server, and any name at all when a person made the zone by hand. Every one of those is fine. Only fetch, search and browser need a zone at all; Scraper API (including instagram), Scraper Studio, datasets and billing run on the key alone. With --for fetch, --for search or --for browser, when the zone found is not the CLI default name, the script prints the one line that points the CLI at it (also under cli in --json): run it once. Without --for, cli is empty. On a machine that has only BRIGHTDATA_API_KEY and never ran bdata login, the CLI has no default zone: if bdata scrape says No Web Unlocker zone specified, run bdata config set default_zone_unlocker <name> with the name the script reported.
Only exit 1 (missing_zone) needs a zone fix, and it means the account has no zone of that type under any name. Creating a zone changes the user's account, so ask first. It is one free call, not another login: POST https://api.brightdata.com/zone with Bearer auth and body {"zone":{"name":"cli_unlocker","type":"unblocker"},"plan":{"type":"unblocker"}}, or for the browser zone {"zone":{"name":"cli_browser","type":"browser_api"},"plan":{"type":"browser_api"}}. Zone creation costs nothing, and re-running login here would replace the stored key. A key from agent registration cannot create zones at all: when the call is refused on permissions, the person makes the zone in the Control Panel.
bdata login needs an existing account. When the user has none, the agent can register one without a browser, from the user's email address and a one-time code that arrives in their mailbox. Ask first: calling these endpoints accepts the Bright Data Terms of Service and Acceptable Use Policy on behalf of the named user, so the user says yes before the first call, and the address must be their real mailbox, since disposable and aliased addresses are refused with email_not_accepted.
Ask in the same breath whether that address already has a Bright Data account. A clear yes means registration is the wrong path, because an address that is already registered cannot be registered again: run bdata login instead. Anything less than a clear yes, including "I don't know", registers as normal - the stop rule below catches it.
Three calls, all POST with a JSON body, no key needed:
https://brightdata.com/users/auth/agent_registration/auth with {"type":"identity_assertion","assertion_type":"verified_email","assertion":"<email>","client":"<agent name>"}. client is optional self-identification, for example claude-code. The response carries claim_token, otp_expires_at and claim_token_expires_at, and the code goes to the mailbox. A 200 here is not proof the email is new: several policy outcomes return the same shape on purpose.https://brightdata.com/users/auth/agent_registration/claim/complete with {"claim_token":"...","otp":"..."}. The response holds credential.token, the account's API key, plus zones (one per product, each success or failed) and entitlements (monthly_credits, trial_credit_usd, trial_days). Retrying after success returns the same result and issues nothing twice.https://brightdata.com/users/auth/agent_registration/claim with {"claim_token":"..."} sends a fresh code and invalidates the old one. Resends are rate limited, so wait between attempts.When no code arrives, stop. An address that already has an account gets the same 200 and the same state: pending as a new one, and its mailbox receives a notice about the existing account instead of a code. The endpoint does not distinguish the two, on purpose. So a code that never arrives usually means the address already has an account (the other silent cause is an address the rollout allow-list refuses). Ask the user to check spam first. Once otp_expires_at has passed with nothing in inbox or spam, stop. Do not call the first endpoint again for it. A second attempt returns the same pending shape and puts a second notice in the user's inbox, and after three starts in an hour the address is rate limited. Tell the user to sign in at brightdata.com with that address instead, using "forgot password" if they need it, or to sign up in the Control Panel if they have no account. One /auth call per address, per session.
Hand the key to the CLI without showing it, from the program that made the call and holds credential.token, never by pasting it into chat. For this session, set it as BRIGHTDATA_API_KEY in the environment of the bdata commands that program runs: every command reads it and the token stays off the command line. To keep it for later sessions, write it from that program into the CLI's credentials.json as {"api_key": "<token>"} (UTF-8 without BOM; create the folder if it is missing, and on macOS and Linux make the file readable only by the user, mode 600, as bdata login does; the path for each OS is in references/auth.md), the same file bdata login writes. Do not pass it as bdata login --api-key <token>: brightdata.com/auth.md forbids putting credential.token in command-line arguments, and an argument list is still visible to other processes on the machine. The account already has its own zones from registration (agent_serp, agent_unlocker, agent_browser_api), but without bdata login the CLI has no default zone yet. Then run node <this skill's folder>/scripts/check-auth.mjs --for <skill> as after any login, and run the CLI line it prints. If it exits 2 and --json shows "error": "http_401", the key is rejected: stop rather than retrying registration, the person claims the account in the Control Panel with the same email (see references/auth.md) and logs in the normal way. An exit 2 with no_api_key or bad_api_key means the hand-off failed, not the key: pass BRIGHTDATA_API_KEY to the check, or rewrite credentials.json as UTF-8 without BOM. The error codes and the action for each are in references/auth.md.
Users ask for data, not for tools. When two rows both fit, prefer scrape: ready scrapers and Scraper Studio cover most real jobs end to end.
The skill name is also the --for value for scripts/check-auth.mjs.
| The user wants | Skill | Zone it needs |
|---|---|---|
| To scrape a site, or data or information from it (LinkedIn, Amazon, ...) | scrape | none |
| Instagram profiles, posts, reels or comments | instagram | none |
| A page as markdown, HTML, or a screenshot | fetch | unblocker |
| Anything starting from a search query | search | unblocker or serp |
| To point their own browser code at our cloud browser - Playwright, Puppeteer, Selenium, or an AI that clicks by itself | browser | browser_api |
| A big already-collected corpus, needed once, where months old is fine ("every US company") | datasets | none |
| Setup, building or testing scrapers, quick one-off checks | brightdata-cli | none for scraper and pipelines; scrape needs unblocker, search unblocker or serp, browser browser_api (check with --for fetch, --for search, --for browser) |
| Their AI app to decide at run time | brightdata-mcp | none |
| Code that repeats the same job on a schedule | brightdata-sdk | none |
| To build their own API or service on top of Bright Data ("build me a scraper API") | brightdata-sdk | none |
| Balance, charges, credits used, or what a job will cost | billing | none |
Torn between CLI, SDK, MCP, or plain REST for the same task: read references/interfaces.md.
The npx fallback above gives the full CLI with nothing installed. Otherwise set BRIGHTDATA_API_KEY from the account settings page and call the REST API directly. Write the key into the environment or a secrets store without printing it. Read references/auth.md for the endpoints and the credential order.
An output starting Error: No API key found. means this machine is not logged in: log in (see Log in above), or set BRIGHTDATA_API_KEY (the CLI's own second line names both fixes), or, when the user has no account at all, register one (No account yet above). A 401 means the key is invalid or revoked: log in again. Nearly every use case (Scraper API, Scraper Studio, SERP, Unlocker, Browser API) needs no KYC. If a call ever comes back with a KYC error, references/auth.md says what to do.
Read references/auth.md before handling any refused call - it has the full error table and the narrow Web Unlocker exceptions.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
11 skills in this plugin
/billingUse when the question is about money on a Bright Data account: current balance, credit left, what was charged, spend or cost history, credits or free tier used, cost per zone, product or dataset, or what a job will cost before it runs. Read-only, and it never buys or changes anything. Not scraping or extraction (use scrape), not how to drive the CLI itself (use brightdata-cli), not a refused or failing call (use agent-onboarding)./brightdata-cliRuns Bright Data jobs from a terminal with the bdata CLI, the published npm package @brightdata/cli. Use when the agent itself needs to run a Bright Data job from a shell right now, when it is building or testing a scraper, when a quick one-off check of a page, a search, a zone or a bill is enough, or when the user names bdata, brightdata, or the Bright Data CLI. Not for deterministic code that repeats the same job on a schedule, which belongs to brightdata-sdk. Not for an AI app that picks its tools at run time, which belongs to brightdata-mcp. Not for a first-time install or a login that will not go through, which belongs to agent-onboarding./brightdata-mcpBright Data's MCP server, the tool layer that gives an LLM agent live web access with no shell. Use when wiring Bright Data tools into an AI app or agent framework that picks its tools at run time, when connecting Claude, Cursor, or another MCP client to Bright Data, when choosing which MCP tools or groups to turn on, or when the user says MCP. Covers the Remote server hosted at mcp.brightdata.com and the Local self-hosted @brightdata/mcp package, and which tool each job should route to. Not for the agent doing the job itself from a shell, which is brightdata-cli. Not for fixed repeated code in an app, which is brightdata-sdk. Not for install or auth problems, which is agent-onboarding./brightdata-sdkBright Data's Python and Node.js SDKs for calling Web Scraper API, SERP, Web Unlocker and Scraper Studio from application code. Use when the user is writing code they keep that calls Bright Data on a schedule or inside a pipeline, when the same job runs again and again, when a Bright Data package is imported in Python or Node.js, when the user wants their own API or service built on top of Bright Data ("build me a scraper API", "wrap this in an endpoint"), or when the user names the SDK. Not for one-off checks typed at a shell, which belong to brightdata-cli. Not for an AI app that chooses its tools at run time, which belongs to brightdata-mcp. Not for install, login or API key problems, which belong to agent-onboarding./browserUse when the user already has browser automation and wants it unblocked or run in the cloud: Playwright, Puppeteer, Selenium or another driver, a headless script that gets blocked, detected, or rate limited locally, or a computer-use AI that clicks by itself and needs somewhere to click. Also for asks that name CDP, connectOverCDP, browserWSEndpoint, a remote WebDriver, a websocket browser endpoint, or Browser API. Not for building the scraper for them (use scrape), not for one page as markdown, HTML, or a screenshot (use fetch), not for a search query (use search)./datasetsUse when the data is already collected and sold as a download, a huge generic corpus needed once where a few months old is fine ("every US company with more than 50 staff", a one-time training set). Also when the user holds a dataset_id that turns out to be a marketplace row, or asks what a ready dataset costs. Not for fresh, specific, or recurring collection, which is scraping and belongs to the scrape skill.2 plugins ship this exact skill · first indexed Oct 31, 2026
/brightdata-brightdata-plugin:agent-onboardingfrom brightdata-plugin
Generated from the plugin's indexed repository (brightdata/skills) — no native marketplace selected
npx claudepluginhub p/brightdata-brightdata-pluginOther plugins' skills for the same job