The cloud browser for AI agents, built to scale.
Connect Playwright, Puppeteer or the Spider SDK to a remote browser Spider runs, and let your agent drive it.
Get an API keyCalls, 3 of the 7 recorded
await browser.goto("https://books.toscrape.com/" )await browser.page.click('a[href*="travel_2"]')const row = await browser.page.extractFields({ heading: "h1", results: "form.form-horizontal strong", title: { selector: "article.product_pod h3 a", attribute: "title", }, price: "article.product_pod .price_color", stock: "article.product_pod .availability",})Returns, in 107 ms
- heading
- "Travel"
- results
- "11"
- title
- "It's Only the Himalayas"
- price
- "£45.17"
- stock
- "In stock"
Recorded Nov 17, 2026 with spider-browser 0.3.0 (npm) against books.toscrape.com, a public sandbox site. Read the docs
In Browser Fidelity Bench V1, Spider passed 80/80 tasks on Sep 18, 2026, each a real page on a protected production site.
Pay as you go, from $1 per GB of bandwidth plus $0.0001 per minute a request runs.
One session, recorded call by call.
Recorded on Nov 17, 2026 with the spider-browser npm SDK against books.toscrape.com, a public sandbox site: seven calls, 7.4 seconds, 1.625 credits.
init
Attaches to a browser that is already running and returns a session.
const browser = new SpiderBrowser({
apiKey: process.env.SPIDER_API_KEY,
})
await browser.init()
key = os.environ["SPIDER_API_KEY"]
browser = SpiderBrowser(
SpiderBrowserOptions(api_key=key)
)
await browser.init()
let key = std::env::var("SPIDER_API_KEY")
.expect("SPIDER_API_KEY");
let mut browser = SpiderBrowser::new(
SpiderBrowserOptions::new(key),
);
browser.init().await?;
Returns
void
- Elapsed
- 1.343 s
- Credits
- 0.0277
- Cost
- $0.00000277
goto
Loads a URL in the session.
await browser.goto(
"https://books.toscrape.com/",
)
await browser.goto(
"https://books.toscrape.com/"
)
browser
.goto("https://books.toscrape.com/")
.await?;
Returns
void
- Elapsed
- 3.215 s
- Credits
- 0.1769
- Cost
- $0.00001769
observe
Lists the elements on the page with their selectors, and ran with no model key.
const elements = await browser.observe()
elements = await browser.observe()
let elements =
browser.observe(None).await?;
Returns 114 elements, the first 4
- "Books to Scrape"
- 232 × 36 at 58, 51
- "Home"
- 38 × 16 at 103, 169
- "Books"
- 235 × 40 at 108, 235
- "Travel"
- 37 × 16 at 133, 277
- Elapsed
- 4.817 s
- Credits
- 0.6964
- Cost
- $0.00006964
click
Clicks a selector, here the Travel category link.
await browser.page.click(
'a[href*="travel_2"]',
)
for (let i = 0; i < 40; i++) {
const url = await browser.page.url()
if (url.includes("travel_2")) break
await sleep(50)
}
await browser.page.waitForSelector(
"article.product_pod",
)
await browser.page.click(
'a[href*="travel_2"]'
)
for _ in range(40):
url = await browser.page.url()
if "travel_2" in url:
break
await asyncio.sleep(0.05)
await browser.page.wait_for_selector(
"article.product_pod"
)
browser
.page()
.click(r#"a[href*="travel_2"]"#)
.await?;
for _ in 0..40 {
let url = browser.page().url().await?;
if url.contains("travel_2") {
break;
}
sleep(Duration::from_millis(50)).await;
}
browser
.page()
.wait_for_selector(
"article.product_pod",
5000,
)
.await?;
In plain words, on your model key
await browser.act("Open the Travel category")
await browser.act("Open the Travel category")
browser.act("Open the Travel category").await?;
Lands on
- url
- https://books.toscrape.com/catalogue/category/books/travel_2/index.html
- title
- Travel | Books to Scrape - Sandbox
- Elapsed
- 6.999 s
- Credits
- 0.8822
- Cost
- $0.00008822
extractFields
Reads named fields by selector.
const row = await browser.page.extractFields({
heading: "h1",
results: "form.form-horizontal strong",
title: {
selector: "article.product_pod h3 a",
attribute: "title",
},
price: "article.product_pod .price_color",
stock: "article.product_pod .availability",
})
row = await browser.page.extract_fields({
"heading": "h1",
"results": "form.form-horizontal strong",
"title": {
"selector": "article.product_pod h3 a",
"attribute": "title",
},
"price": "article.product_pod .price_color",
"stock": "article.product_pod .availability",
})
let row = browser.page().extract_fields(&[
("heading", "h1".into()),
("results", "form.form-horizontal strong".into()),
("title", FieldSelector::Attr {
selector: "article.product_pod h3 a",
attribute: "title",
}),
("price", "article.product_pod .price_color".into()),
("stock", "article.product_pod .availability".into()),
]).await?;
In plain words, on your model key
await browser.extract("The first book", { schema: Book })
await browser.extract("The first book", Book)
let book: Book = browser.extract("The first book").await?;
Returns
- heading
- "Travel"
- results
- "11"
- title
- "It's Only the Himalayas"
- price
- "£45.17"
- stock
- "In stock"
- Elapsed
- 7.150 s
- Credits
- 0.9095
- Cost
- $0.00009095
content
Returns the rendered HTML.
const html = await browser.page.content()
html = await browser.page.content()
let html = browser
.page()
.content(8000, 1000)
.await?;
Returns
- html
- 36,758 bytes
- Elapsed
- 7.380 s
- Credits
- 1.6220
- Cost
- $0.00016220
close
Ends the session and the meter.
const credits =
await browser.getSessionCredits()
await browser.close()
credits = (
await browser.get_session_credits()
)
await browser.close()
let credits =
browser.session_credits_used();
browser.close();
Returns
- credits
- 1.625
- Elapsed
- 7.423 s
- Credits
- 1.6250
- Cost
- $0.00016250
Or hand over the whole task, on your own model key.
await browser.agent().execute("Find the cheapest Travel book")
await browser.agent().execute("Find the cheapest Travel book")
browser.agent(None).execute("Find the cheapest Travel book").await;
What is a remote browser?
A remote browser is a browser that runs on a server and takes its commands from your program over a network connection. Security and testing teams use the same name for a browser streamed to a person's screen. This page is about the kind a script or an AI agent drives, which is also called a cloud browser.
There are three ways to give a program a browser, and they differ most in what you have to keep running.
| Kind | Who it suits | What you maintain | Where it breaks |
|---|---|---|---|
| Headless Chrome you run yourself | A team with one script, a spare server and pages that must stay on its own network. | The browser and its updates, the servers, the proxies, and cleanup after a session crashes. | Many sessions at once, and sites that check who is asking. On Browser Fidelity Bench V1, headless Chrome on a local machine passed 2 of 80 tasks, read March 22, 2026. |
| A browser extension | Someone who automates clicks in the browser already open on their desk, signed in as themselves. | The extension, and a computer that stays awake with that browser open. | It is one browser on one machine. There is no second session, and the job stops when the laptop sleeps. |
| A cloud browser | A script or an AI agent that needs many sessions, or sessions in other countries, and no servers to run. | Your script and an API key. | Long jobs. A session has a time limit, 30 minutes on Spider, so longer work opens a new session and carries on. |
Spider's is the third kind. A page you only need to read does not need a session at all. The web scraping API returns it as markdown from one request, and opens a browser on its own when the page needs one.
What people use a cloud browser for
- AI agents that have to click, type and wait between reads.
- Browser tools for Claude, Cursor and other MCP clients, with no browser installed beside the agent.
- Web scraping with a headless browser on pages that load more text as you scroll.
- Forms and sign-in flows, where each step depends on the page the last one returned.
80 of 80 tasks passed on Browser Fidelity Bench V1, Sep 18, 2026.
Each task loads a real page on a protected production site and passes when the page loads. The other providers on the board keep their readings of March 22, 2026 and were not run again. Latency is a raw CDP client on a laptop over the public internet, medians from the run of Nov 17, 2026.
- Spider 100%
- Browser Use Cloud 81%
- Anchor 74%
- Onkernel 68%
- Browserless 56%
- Local Headful Chrome local 49%
- Steel 44%
- Hyperbrowser 44%
- Browserbase 41%
- Local Headless Chrome local 3%
80 tasks, Spider run Sep 18, 2026, other rows as measured Mar 22, 2026 and not re-run.
Source- open sessions
- 1,000 per account
- new sessions
- 100 /min per account
- commands
- 500 /s per session, bursts to 1,000
- session length
- 30 min maximum
- connect
- 754 ms
example.com, 50 rounds - session create
- 1,069 ms
example.com, 50 rounds - session close
- 44 ms
example.com, 50 rounds
Connect with Playwright, Puppeteer or the spider-browser SDK.
The SDK and CDP clients connect to wss://browser.spider.cloud/v1/browser with your Spider API key, whether the job is scraping, crawling or automation.
- MCP server
- Nine browser tools for Claude, Cursor or any MCP client: open, navigate, click, fill, screenshot, content, evaluate, wait_for and close. A tenth tool, spider_ai_browser, takes one step in plain language.
- Set up MCP
How to connect to the remote browser
- Create an account and copy your API key.
- Install a client with
npm install spider-browser, or keep the Playwright or Puppeteer you already use. - Connect to
wss://browser.spider.cloud/v1/browserwith the key as the token query parameter. Add country with a two-letter code to route the session through that country. - Load a page, do the work, then call close(), which ends the session and the meter.
import { chromium } from "playwright"
const url =
"wss://browser.spider.cloud/v1/browser"
const key = process.env.SPIDER_API_KEY
const browser =
await chromium.connectOverCDP(
url + "?token=" + key,
)
const page = await browser.newPage()
await page.goto("https://books.toscrape.com/")
console.log(await page.title())
await browser.close()Pass the endpoint to connectOverCDP() or puppeteer.connect() with your key as the token and keep your script.
Session parametersPay for what a session uses.
Pay as you go at two rates, with no monthly minimum, and a total that depends on how much the site transfers.
- per GB transferred
- from $1
- per minute a session is open
- $0.0001
The meter runs every 3 seconds from init() to close(), pro-rated to the millisecond, and recording adds 15% to compute.
The full meter- calls
- 7
- open for
- 7.4 s
- credits
- 1.625
- total
- $0.00016250
Questions before the first session.
What is a remote browser?
A remote browser is a browser that runs on a server and takes commands from your program over a network connection. With Spider's, your script or AI agent connects over a WebSocket and the pages load on Spider's side.
What is a cloud browser API?
A cloud browser API gives your code a browser that someone else runs. People also call it a browser automation API or browser as a service. Spider's is one WebSocket endpoint, wss://browser.spider.cloud/v1/browser, that speaks the Chrome DevTools Protocol and takes your API key as the token.
How do AI agents use the cloud browser?
Through the SDK or through MCP. The spider-browser SDK has act, extract and agent calls that take an instruction in plain language and run on a model from OpenAI, Anthropic or OpenRouter, with your own key. observe lists the elements on a page and needs no model key. An MCP client such as Claude or Cursor gets nine browser tools and spider_ai_browser.
Can I keep my Playwright or Puppeteer code?
Yes. The session speaks CDP over a WebSocket, so your script attaches to it and the session settings, the proxy country included, apply to what the script does next. act, observe, extract and agent are SDK calls, so a script that wants them uses the SDK.
Can I use the cloud browser for web scraping?
Yes, when a page needs a click, a scroll or a form before its data shows. A page you only read is less work through the web scraping API, which takes one request and has no session to manage.
How many sessions can I run at once?
An account can hold 1,000 sessions open and start 100 new ones a minute. The 999 URL run, published Feb 17, 2026, held 25 sessions open for about 19 minutes with no failures. A session lasts up to 30 minutes, then the server ends it, so open a new one and carry on.
How fast does a session start?
The median was 1,069 ms from opening the socket to a page ready for commands, over 50 rounds on Nov 17, 2026. That run used a raw CDP client on a laptop over the public internet, so your figure depends on where you connect from.
What happens when a site shows a CAPTCHA or a challenge page?
When a site answers with a challenge page, the browser completes it and returns the real page. The captcha option in the SDK takes off, detect or solve: off leaves a challenge page alone, detect reports it, and solve has the browser complete it before returning the page.
How much does the cloud browser cost?
Pay as you go, from $1 per GB transferred and $0.0001 per session minute, with no monthly minimum. Your model provider bills the calls that act, extract and agent make. About every 30 seconds the server checks your balance, and at zero it ends the session.
Keep reading.
Give an agent a session and the calls to read a page and act on it.
Add the server once and your MCP client can open a session.
The run of Sep 18, 2026, how it was scored and the commands to repeat it.
A course lesson that opens one session from a short Puppeteer program and closes it.
Updated .
Run the same seven calls yourself.
Create an account, open the browser view in the playground and start a session with your key.