Quickstart

Browser Use Cloud Banner

Installation

1pip install browser-use-sdk

☝️ Get your API Key at Browser Use Cloud

And place it in your .env file:

.env
1BROWSER_USE_API_KEY=bu_...

And start using the API:

1import { BrowserUseClient } from "browser-use-sdk";
2
3const client = new BrowserUseClient({
4 apiKey: "bu_...", // Optional if BROWSER_USE_API_KEY is set
5});
6
7const task = await client.tasks.createTask({
8 task: "Search for the top 10 Hacker News posts and return the title and url.",
9});
10
11const result = await task.complete();
12
13console.log(result.output);

The apiKey parameter is optional if you set the BROWSER_USE_API_KEY environment variable.


Next Steps]