Skip to content
This repository was archived by the owner on Feb 25, 2026. It is now read-only.

Latest commit

Β 

History

History
2771 lines (1924 loc) Β· 31.2 KB

File metadata and controls

2771 lines (1924 loc) Β· 31.2 KB

Reference

Billing

client.billing.getAccountBilling() -> BrowserUse.AccountView

πŸ“ Description

Get authenticated account information including credit balance and account details.

πŸ”Œ Usage

await client.billing.getAccountBilling();

βš™οΈ Parameters

requestOptions: Billing.RequestOptions

Tasks

client.tasks.listTasks({ ...params }) -> BrowserUse.TaskListResponse

πŸ“ Description

Get paginated list of AI agent tasks with optional filtering by session and status.

πŸ”Œ Usage

await client.tasks.listTasks();

βš™οΈ Parameters

request: BrowserUse.ListTasksTasksGetRequest

requestOptions: Tasks.RequestOptions

client.tasks.createTask({ ...params }) -> BrowserUse.TaskCreatedResponse

πŸ“ Description

Create and start a new task.

You can either:

  1. Start a new task without a sessionId (auto-creates a session with US proxy by default). Note: Tasks without a sessionId are one-off tasks that automatically close the session upon completion (keep_alive=false).
  2. Start a new task in an existing session (reuse for follow-up tasks or custom configuration)

Important: Proxy configuration (proxyCountryCode) and other session settings (like keep_alive) are session-level settings, not task-level settings. For full control over session configuration, create a session first via POST /sessions with your desired settings, then pass that sessionId when creating tasks.

πŸ”Œ Usage

await client.tasks.createTask({
    task: "task"
});

βš™οΈ Parameters

request: BrowserUse.CreateTaskRequest

requestOptions: Tasks.RequestOptions

client.tasks.getTask({ ...params }) -> BrowserUse.TaskView

πŸ“ Description

Get detailed task information including status, progress, steps, and file outputs.

πŸ”Œ Usage

await client.tasks.getTask({
    task_id: "task_id"
});

βš™οΈ Parameters

request: BrowserUse.GetTaskTasksTaskIdGetRequest

requestOptions: Tasks.RequestOptions

client.tasks.updateTask({ ...params }) -> BrowserUse.TaskView

πŸ“ Description

Control task execution with stop, pause, resume, or stop task and session actions.

πŸ”Œ Usage

await client.tasks.updateTask({
    task_id: "task_id",
    action: "stop"
});

βš™οΈ Parameters

request: BrowserUse.UpdateTaskRequest

requestOptions: Tasks.RequestOptions

client.tasks.getTaskStatus({ ...params }) -> BrowserUse.TaskStatusView

πŸ“ Description

Lightweight endpoint optimized for polling task status.

Returns only the task status, output, and cost without loading steps, files, or session details. Use this endpoint for efficient polling instead of GET /tasks/{task_id}.

Recommended polling pattern:

  1. POST /tasks to create a task
  2. Poll GET /tasks/{task_id}/status until status is 'finished' or 'stopped'
  3. GET /tasks/{task_id} once at the end for full details including steps

πŸ”Œ Usage

await client.tasks.getTaskStatus({
    task_id: "task_id"
});

βš™οΈ Parameters

request: BrowserUse.GetTaskStatusTasksTaskIdStatusGetRequest

requestOptions: Tasks.RequestOptions

client.tasks.getTaskLogs({ ...params }) -> BrowserUse.TaskLogFileResponse

πŸ“ Description

Get secure download URL for task execution logs with step-by-step details.

πŸ”Œ Usage

await client.tasks.getTaskLogs({
    task_id: "task_id"
});

βš™οΈ Parameters

request: BrowserUse.GetTaskLogsTasksTaskIdLogsGetRequest

requestOptions: Tasks.RequestOptions

Sessions

client.sessions.listSessions({ ...params }) -> BrowserUse.SessionListResponse

πŸ“ Description

Get paginated list of AI agent sessions with optional status filtering.

πŸ”Œ Usage

await client.sessions.listSessions();

βš™οΈ Parameters

request: BrowserUse.ListSessionsSessionsGetRequest

requestOptions: Sessions.RequestOptions

client.sessions.createSession({ ...params }) -> BrowserUse.SessionItemView

πŸ“ Description

Create a new session with a new task.

πŸ”Œ Usage

await client.sessions.createSession();

βš™οΈ Parameters

request: BrowserUse.CreateSessionRequest

requestOptions: Sessions.RequestOptions

client.sessions.getSession({ ...params }) -> BrowserUse.SessionView

πŸ“ Description

Get detailed session information including status, URLs, and task details.

πŸ”Œ Usage

await client.sessions.getSession({
    session_id: "session_id"
});

βš™οΈ Parameters

request: BrowserUse.GetSessionSessionsSessionIdGetRequest

requestOptions: Sessions.RequestOptions

client.sessions.deleteSession({ ...params }) -> void

πŸ“ Description

Delete a session with all its tasks.

πŸ”Œ Usage

await client.sessions.deleteSession({
    session_id: "session_id"
});

βš™οΈ Parameters

request: BrowserUse.DeleteSessionSessionsSessionIdDeleteRequest

requestOptions: Sessions.RequestOptions

client.sessions.updateSession({ ...params }) -> BrowserUse.SessionView

πŸ“ Description

Stop a session and all its running tasks.

πŸ”Œ Usage

await client.sessions.updateSession({
    session_id: "session_id",
    action: "stop"
});

βš™οΈ Parameters

request: BrowserUse.UpdateSessionRequest

requestOptions: Sessions.RequestOptions

client.sessions.getSessionPublicShare({ ...params }) -> BrowserUse.ShareView

πŸ“ Description

Get public share information including URL and usage statistics.

πŸ”Œ Usage

await client.sessions.getSessionPublicShare({
    session_id: "session_id"
});

βš™οΈ Parameters

request: BrowserUse.GetSessionPublicShareSessionsSessionIdPublicShareGetRequest

requestOptions: Sessions.RequestOptions

client.sessions.createSessionPublicShare({ ...params }) -> BrowserUse.ShareView

πŸ“ Description

Create or return existing public share for a session.

πŸ”Œ Usage

await client.sessions.createSessionPublicShare({
    session_id: "session_id"
});

βš™οΈ Parameters

request: BrowserUse.CreateSessionPublicShareSessionsSessionIdPublicSharePostRequest

requestOptions: Sessions.RequestOptions

client.sessions.deleteSessionPublicShare({ ...params }) -> void

πŸ“ Description

Remove public share for a session.

πŸ”Œ Usage

await client.sessions.deleteSessionPublicShare({
    session_id: "session_id"
});

βš™οΈ Parameters

request: BrowserUse.DeleteSessionPublicShareSessionsSessionIdPublicShareDeleteRequest

requestOptions: Sessions.RequestOptions

Files

client.files.agentSessionUploadFilePresignedUrl({ ...params }) -> BrowserUse.UploadFilePresignedUrlResponse

πŸ“ Description

Generate a secure presigned URL for uploading files to an agent session.

πŸ”Œ Usage

await client.files.agentSessionUploadFilePresignedUrl({
    session_id: "session_id",
    body: {
        fileName: "fileName",
        contentType: "image/jpg",
        sizeBytes: 1
    }
});

βš™οΈ Parameters

request: BrowserUse.AgentSessionUploadFilePresignedUrlFilesSessionsSessionIdPresignedUrlPostRequest

requestOptions: Files.RequestOptions

client.files.browserSessionUploadFilePresignedUrl({ ...params }) -> BrowserUse.UploadFilePresignedUrlResponse

πŸ“ Description

Generate a secure presigned URL for uploading files to a browser session.

πŸ”Œ Usage

await client.files.browserSessionUploadFilePresignedUrl({
    session_id: "session_id",
    body: {
        fileName: "fileName",
        contentType: "image/jpg",
        sizeBytes: 1
    }
});

βš™οΈ Parameters

request: BrowserUse.BrowserSessionUploadFilePresignedUrlFilesBrowsersSessionIdPresignedUrlPostRequest

requestOptions: Files.RequestOptions

client.files.getTaskOutputFilePresignedUrl({ ...params }) -> BrowserUse.TaskOutputFileResponse

πŸ“ Description

Get secure download URL for an output file generated by the AI agent.

πŸ”Œ Usage

await client.files.getTaskOutputFilePresignedUrl({
    task_id: "task_id",
    file_id: "file_id"
});

βš™οΈ Parameters

request: BrowserUse.GetTaskOutputFilePresignedUrlFilesTasksTaskIdOutputFilesFileIdGetRequest

requestOptions: Files.RequestOptions

Profiles

client.profiles.listProfiles({ ...params }) -> BrowserUse.ProfileListResponse

πŸ“ Description

Get paginated list of profiles.

πŸ”Œ Usage

await client.profiles.listProfiles();

βš™οΈ Parameters

request: BrowserUse.ListProfilesProfilesGetRequest

requestOptions: Profiles.RequestOptions

client.profiles.createProfile({ ...params }) -> BrowserUse.ProfileView

πŸ“ Description

Profiles allow you to preserve the state of the browser between tasks.

They are most commonly used to allow users to preserve the log-in state in the agent between tasks. You'd normally create one profile per user and then use it for all their tasks.

You can create a new profile by calling this endpoint.

πŸ”Œ Usage

await client.profiles.createProfile();

βš™οΈ Parameters

request: BrowserUse.ProfileCreateRequest

requestOptions: Profiles.RequestOptions

client.profiles.getProfile({ ...params }) -> BrowserUse.ProfileView

πŸ“ Description

Get profile details.

πŸ”Œ Usage

await client.profiles.getProfile({
    profile_id: "profile_id"
});

βš™οΈ Parameters

request: BrowserUse.GetProfileProfilesProfileIdGetRequest

requestOptions: Profiles.RequestOptions

client.profiles.deleteBrowserProfile({ ...params }) -> void

πŸ“ Description

Permanently delete a browser profile and its configuration.

πŸ”Œ Usage

await client.profiles.deleteBrowserProfile({
    profile_id: "profile_id"
});

βš™οΈ Parameters

request: BrowserUse.DeleteBrowserProfileProfilesProfileIdDeleteRequest

requestOptions: Profiles.RequestOptions

client.profiles.updateProfile({ ...params }) -> BrowserUse.ProfileView

πŸ“ Description

Update a browser profile's information.

πŸ”Œ Usage

await client.profiles.updateProfile({
    profile_id: "profile_id"
});

βš™οΈ Parameters

request: BrowserUse.ProfileUpdateRequest

requestOptions: Profiles.RequestOptions

Browsers

client.browsers.listBrowserSessions({ ...params }) -> BrowserUse.BrowserSessionListResponse

πŸ“ Description

Get paginated list of browser sessions with optional status filtering.

πŸ”Œ Usage

await client.browsers.listBrowserSessions();

βš™οΈ Parameters

request: BrowserUse.ListBrowserSessionsBrowsersGetRequest

requestOptions: Browsers.RequestOptions

client.browsers.createBrowserSession({ ...params }) -> BrowserUse.BrowserSessionItemView

πŸ“ Description

Create a new browser session.

Pricing: Browser sessions are charged per hour with tiered pricing:

  • Pay As You Go users: $0.06/hour
  • Business/Scaleup subscribers: $0.03/hour (50% discount)

The full rate is charged upfront when the session starts. When you stop the session, any unused time is automatically refunded proportionally.

Billing is rounded up to the minute (minimum 1 minute). For example, if you stop a session after 30 minutes, you'll be refunded half the charged amount.

Session Limits:

  • All users: Up to 4 hours per session

πŸ”Œ Usage

await client.browsers.createBrowserSession();

βš™οΈ Parameters

request: BrowserUse.CreateBrowserSessionRequest

requestOptions: Browsers.RequestOptions

client.browsers.getBrowserSession({ ...params }) -> BrowserUse.BrowserSessionView

πŸ“ Description

Get detailed browser session information including status and URLs.

πŸ”Œ Usage

await client.browsers.getBrowserSession({
    session_id: "session_id"
});

βš™οΈ Parameters

request: BrowserUse.GetBrowserSessionBrowsersSessionIdGetRequest

requestOptions: Browsers.RequestOptions

client.browsers.updateBrowserSession({ ...params }) -> BrowserUse.BrowserSessionView

πŸ“ Description

Stop a browser session.

Refund: When you stop a session, unused time is automatically refunded. If the session ran for less than 1 hour, you'll receive a proportional refund. Billing is ceil to the nearest minute (minimum 1 minute).

πŸ”Œ Usage

await client.browsers.updateBrowserSession({
    session_id: "session_id",
    action: "stop"
});

βš™οΈ Parameters

request: BrowserUse.UpdateBrowserSessionRequest

requestOptions: Browsers.RequestOptions

Skills

client.skills.listSkills({ ...params }) -> BrowserUse.SkillListResponse

πŸ“ Description

List all skills owned by the authenticated project with optional filtering.

πŸ”Œ Usage

await client.skills.listSkills();

βš™οΈ Parameters

request: BrowserUse.ListSkillsSkillsGetRequest

requestOptions: Skills.RequestOptions

client.skills.createSkill({ ...params }) -> BrowserUse.CreateSkillResponse

πŸ“ Description

Create a new skill via automated generation.

πŸ”Œ Usage

await client.skills.createSkill({
    goal: "goal",
    agentPrompt: "agentPrompt"
});

βš™οΈ Parameters

request: BrowserUse.CreateSkillRequest

requestOptions: Skills.RequestOptions

client.skills.getSkill({ ...params }) -> BrowserUse.SkillResponse

πŸ“ Description

Get details of a specific skill owned by the project.

πŸ”Œ Usage

await client.skills.getSkill({
    skill_id: "skill_id"
});

βš™οΈ Parameters

request: BrowserUse.GetSkillSkillsSkillIdGetRequest

requestOptions: Skills.RequestOptions

client.skills.deleteSkill({ ...params }) -> void

πŸ“ Description

Delete a skill owned by the project.

πŸ”Œ Usage

await client.skills.deleteSkill({
    skill_id: "skill_id"
});

βš™οΈ Parameters

request: BrowserUse.DeleteSkillSkillsSkillIdDeleteRequest

requestOptions: Skills.RequestOptions

client.skills.updateSkill({ ...params }) -> BrowserUse.SkillResponse

πŸ“ Description

Update skill metadata (name, description, enabled, etc.).

πŸ”Œ Usage

await client.skills.updateSkill({
    skill_id: "skill_id"
});

βš™οΈ Parameters

request: BrowserUse.UpdateSkillRequest

requestOptions: Skills.RequestOptions

client.skills.cancelGeneration({ ...params }) -> BrowserUse.SkillResponse

πŸ“ Description

Cancel the current in-progress generation for a skill.

πŸ”Œ Usage

await client.skills.cancelGeneration({
    skill_id: "skill_id"
});

βš™οΈ Parameters

request: BrowserUse.CancelGenerationSkillsSkillIdCancelPostRequest

requestOptions: Skills.RequestOptions

client.skills.rollbackSkill({ ...params }) -> BrowserUse.SkillResponse

πŸ“ Description

Rollback to the previous version (cannot be undone).

πŸ”Œ Usage

await client.skills.rollbackSkill({
    skill_id: "skill_id"
});

βš™οΈ Parameters

request: BrowserUse.RollbackSkillSkillsSkillIdRollbackPostRequest

requestOptions: Skills.RequestOptions

client.skills.executeSkill({ ...params }) -> BrowserUse.ExecuteSkillResponse

πŸ“ Description

Execute a skill with the provided parameters.

πŸ”Œ Usage

await client.skills.executeSkill({
    skill_id: "skill_id",
    body: {}
});

βš™οΈ Parameters

request: BrowserUse.ExecuteSkillSkillsSkillIdExecutePostRequest

requestOptions: Skills.RequestOptions

client.skills.refineSkill({ ...params }) -> BrowserUse.RefineSkillResponse

πŸ“ Description

Refine a skill based on feedback.

πŸ”Œ Usage

await client.skills.refineSkill({
    skill_id: "skill_id",
    feedback: "feedback"
});

βš™οΈ Parameters

request: BrowserUse.RefineSkillRequest

requestOptions: Skills.RequestOptions

client.skills.listSkillExecutions({ ...params }) -> BrowserUse.SkillExecutionListResponse

πŸ“ Description

List executions for a specific skill.

πŸ”Œ Usage

await client.skills.listSkillExecutions({
    skill_id: "skill_id"
});

βš™οΈ Parameters

request: BrowserUse.ListSkillExecutionsSkillsSkillIdExecutionsGetRequest

requestOptions: Skills.RequestOptions

client.skills.getSkillExecutionOutput({ ...params }) -> BrowserUse.SkillExecutionOutputResponse

πŸ“ Description

Get presigned URL for downloading skill execution output.

πŸ”Œ Usage

await client.skills.getSkillExecutionOutput({
    skill_id: "skill_id",
    execution_id: "execution_id"
});

βš™οΈ Parameters

request: BrowserUse.GetSkillExecutionOutputSkillsSkillIdExecutionsExecutionIdOutputGetRequest

requestOptions: Skills.RequestOptions

SkillsMarketplace

client.skillsMarketplace.listSkills({ ...params }) -> BrowserUse.MarketplaceSkillListResponse

πŸ“ Description

List all public skills available in the marketplace with optional filtering.

πŸ”Œ Usage

await client.skillsMarketplace.listSkills();

βš™οΈ Parameters

request: BrowserUse.ListSkillsMarketplaceSkillsGetRequest

requestOptions: SkillsMarketplace.RequestOptions

client.skillsMarketplace.getSkill({ ...params }) -> BrowserUse.MarketplaceSkillResponse

πŸ“ Description

Get details of a specific public skill from the marketplace.

πŸ”Œ Usage

await client.skillsMarketplace.getSkill({
    skill_slug: "skill_slug"
});

βš™οΈ Parameters

request: BrowserUse.GetSkillMarketplaceSkillsSkillSlugGetRequest

requestOptions: SkillsMarketplace.RequestOptions

client.skillsMarketplace.cloneSkill({ ...params }) -> BrowserUse.SkillResponse

πŸ“ Description

Clone a public marketplace skill to the user's project.

πŸ”Œ Usage

await client.skillsMarketplace.cloneSkill({
    skill_id: "skill_id"
});

βš™οΈ Parameters

request: BrowserUse.CloneSkillMarketplaceSkillsSkillIdClonePostRequest

requestOptions: SkillsMarketplace.RequestOptions

client.skillsMarketplace.executeSkill({ ...params }) -> BrowserUse.ExecuteSkillResponse

πŸ“ Description

Execute a skill with the provided parameters.

πŸ”Œ Usage

await client.skillsMarketplace.executeSkill({
    skill_id: "skill_id",
    body: {}
});

βš™οΈ Parameters

request: BrowserUse.ExecuteSkillMarketplaceSkillsSkillIdExecutePostRequest

requestOptions: SkillsMarketplace.RequestOptions