Description
n8n-nodes-browser-use
An n8n community node package for Browser Use Cloud. The single Browser Use node supports API v4 run workflows, API v3 session-based agent workflows, and the legacy API v2 task workflows.
What is Browser Use?
Browser Use Cloud lets AI agents control managed browsers for web research, data extraction, form filling, testing, and multi-step workflows.
This package includes one n8n node:
- Browser Use: choose API Version in the node UI to use v4 Runs, v3 Sessions and Browsers, or v2 Tasks
New nodes default to v4, which Browser Use recommends for new integrations. Existing workflows keep whichever API version they were saved with.
Installation
Install this node using n8n’s community node manager or npm.
Via n8n
1. Go to Settings > Community Nodes
2. Search for n8n-nodes-browser-use-cloud
3. Install and restart n8n
Via npm
npm install n8n-nodes-browser-use-cloud
Authentication
1. Create a Browser Use account at cloud.browser-use.com
2. Create an API key in the dashboard
3. In n8n, create a Browser Use API credential
4. Enter the API key
The default Base URL remains:
https://api.browser-use.com/api/v2
Leave the credential Base URL at the default. In the Browser Use node, use the API Version dropdown to switch between v4 Runs, v3 Sessions and Browsers, and v2 Tasks. The node rewrites the trailing /api/vN segment internally, so existing credentials continue to work. The node authenticates with the X-Browser-Use-API-Key header.
Choosing an API version
| Version | Use it for | Notes |
| — | — | — |
| v4 (default) | New integrations, hard or long multi-step workflows | Highest accuracy. Not available on Zero Data Retention projects. |
| v3 | Cost- and speed-sensitive work | Session-based agents plus standalone cloud browsers. |
| v2 | Existing workflows only | Legacy; no longer actively maintained upstream. |
Nodes
The package installs a single Browser Use node. It can also be attached to an AI Agent as a tool, so an agent can hand it a task in natural language.
API Version: v4 Runs, Sessions, and Browsers
In v4 the unit of work is a run. Every run belongs to a session, and a session is a conversation: follow-up messages queued onto a session reuse its context and browser state.
#### Run
Operations:
GET /runs/{id}/status until it reaches completed, failed, or cancelled, then return the full run summaryresult, error, token counts, and totalCostUsdRun options:
gpt-5.6-luna (default), the rest of the GPT-5.5/5.6 family, Claude Opus 4.7/4.8/5, Claude Sonnet 5, Claude Fable 5, Gemini 3/3.1/3.5/3.6, GLM 5.2, Grok 4.5, Kimi K3, or MiniMax M3{"reasoning": {"effort": "high"}}judgement#### Session
Operations:
#### Browser
Standalone cloud browsers, the same computer-use style as v3, plus:
#### Structured output on v4
API v4 has no server-side output schema — run.result is always a string. When Extract Structured Data is enabled, this node appends the JSON Schema to the task as an instruction and parses the returned text into a parsedResult field. This is best-effort:
resultparsedResult is null or partial and structuredOutputError explains what happenedUse v3 if you need the API to enforce the schema server-side.
API Version: v2 Tasks
The v2 mode remains available for backward compatibility. It uses the v2 /tasks API and keeps the same operations:
Use v2 mode for existing workflows that already depend on API v2 task behavior or v2-specific options such as allowed domains, secrets, max steps, judge settings, and v2 model names.
API Version: v3 Sessions and Browsers
Use v3 mode for the new API v3 session and browser workflows.
#### Session
Use Session operations for the v3 agent API.
Operations:
stopped, timed_out, or errorCommon options:
claude-sonnet-4.6, claude-opus-4.6, gemini-3-flash, bu-mini, bu-max, or bu-ultraoutputSchema JSON Schema and receive structured final output#### Browser
Use Browser operations for standalone cloud browser sessions. This is the computer-use-style mode: Browser Use provisions a managed browser and returns URLs you can use from other automation tools.
Operations:
liveUrl and cdpUrlBrowser options include profile ID, proxy country code, timeout, screen size, resizing, custom proxy, and recording.
Browser Use v4 Examples
Run an agent task and wait
{
"apiVersion": "v4",
"resource": "run",
"operation": "runAndWait",
"task": "Find the top 3 trending repositories on GitHub today and summarize why they are trending",
"waitTimeout": 900,
"runOptions": {
"model": "gpt-5.6-luna",
"maxCostUsd": 1.5
}
}
The response is the full run summary: status, result, error, sessionId, totalInputTokens, totalOutputTokens, totalCostUsd, plus the eventsUrl returned when the run was created.
Continue the same conversation
Pass the sessionId from the previous run to start a follow-up run with the same context and browser state.
{
"apiVersion": "v4",
"resource": "run",
"operation": "runAndWait",
"task": "Open the first repository and extract its license and star count",
"runOptions": {
"sessionId": "SESSION_ID"
}
}
To send a follow-up while a run may still be active, queue it on the session instead:
{
"apiVersion": "v4",
"resource": "session",
"operation": "queueMessage",
"sessionId": "SESSION_ID",
"message": "Actually, sort by stars gained this week instead",
"queueOptions": {
"interrupt": true
}
}
Request structured output
{
"apiVersion": "v4",
"resource": "run",
"operation": "runAndWait",
"task": "Extract company details from this website",
"startUrl": "https://example.com/about",
"enableStructuredOutput": true,
"schemaTemplate": "custom",
"outputSchema": {
"type": "object",
"properties": {
"companyName": { "type": "string" },
"industry": { "type": "string" },
"summary": { "type": "string" }
},
"required": ["companyName"]
}
}
The parsed object arrives as parsedResult; the agent’s raw text stays in result.
Poll a run from your own loop
{
"apiVersion": "v4",
"resource": "run",
"operation": "getStatus",
"runId": "RUN_ID"
}
Get Status returns only { id, status }, so it is cheap to call on a schedule. Fetch the full summary with Get once the status is terminal.
Browser Use v3 Examples
Run an agent task and wait
{
"resource": "session",
"operation": "runAndWait",
"task": "Find the top 3 trending repositories on GitHub today and summarize why they are trending",
"waitTimeout": 900,
"sessionOptions": {
"model": "claude-sonnet-4.6",
"keepAlive": false
}
}
Reuse a session for follow-up work
First run a task with keepAlive enabled, then pass the returned id as Session ID in the next task’s Session Options.
{
"resource": "session",
"operation": "runAndWait",
"task": "Using the same browser session, open the first result and extract the pricing page URL",
"sessionOptions": {
"existingSessionId": "SESSION_ID",
"keepAlive": true
}
}
Request structured output
{
"resource": "session",
"operation": "runAndWait",
"task": "Extract company details from this website",
"startUrl": "https://example.com/about",
"enableStructuredOutput": true,
"schemaTemplate": "custom",
"outputSchema": {
"type": "object",
"properties": {
"companyName": { "type": "string" },
"industry": { "type": "string" },
"summary": { "type": "string" }
},
"required": ["companyName"]
}
}
Create a standalone browser session
{
"resource": "browser",
"operation": "create",
"browserOptions": {
"timeout": 60,
"proxyCountryCode": "us",
"browserScreenWidth": 1920,
"browserScreenHeight": 1080
}
}
The response includes:
liveUrl: Watch or embed the live browsercdpUrl: Connect Playwright, Puppeteer, Selenium, or another computer-use controllerid: Use this to get or stop the browser sessionError Handling
The node returns clear n8n errors for authentication failures, validation errors, missing resources, rate limits, and Browser Use API server errors. With n8n’s “Continue On Fail” enabled, the error message is returned as item JSON.
On v4 two statuses carry extra context:
Documentation
License
MIT License – see LICENSE for details.