
Browser Use Run
CertifiedRun a Browser Use cloud agent
Browser Use Run
Run a Browser Use cloud agent
Gives a Browser Use cloud agent a task in plain language, waits until the run finishes, and returns its answer. The task creates a run, polls GET /runs/{id}/status until the run is completed, failed, or cancelled, then reads the full run once. A failed or cancelled run fails the task. If the task fails after the run is created, it cancels that run so the agent does not keep spending credits. The task returns the agent's result text. Ask for JSON in the prompt and parse it with fromJson. The task polls until the run ends, so set a task timeout or maxCostUsd to bound the time and the spend.
type: io.kestra.plugin.browseruse.RunExamples
Check a price and parse the JSON answer
id: competitor_price_check
namespace: company.team
tasks:
- id: check_price
type: io.kestra.plugin.browseruse.Run
apiKey: "{{ secret('BROWSER_USE_API_KEY') }}"
prompt: >
Open https://example.com/pricing, find the monthly price of the Pro plan
and reply with only JSON like {"plan": "Pro", "price_eur": 49}.
maxCostUsd: 1
- id: log_price
type: io.kestra.plugin.core.log.Log
message: "Pro plan costs {{ fromJson(outputs.check_price.result).price_eur }} EUR"
Choose the model and the poll interval
id: browser_use_with_model
namespace: company.team
tasks:
- id: check
type: io.kestra.plugin.browseruse.Run
apiKey: "{{ secret('BROWSER_USE_API_KEY') }}"
model: gpt-5.6-luna
pollInterval: PT15S
prompt: Find the top story on https://news.ycombinator.com and reply with the title only.
Properties
apiKey *string
Browser Use API key
API key sent in the X-Browser-Use-API-Key header. Create one at https://cloud.browser-use.com/settings?tab=api-keys.
prompt *string
Instructions for the browser agent
What the agent should do, in plain language. The value is sent as the API task field. Ask for JSON in the text if a later task needs structured fields.
assets
Assets this task consumes as inputs or produces as outputs, for lineage tracking and the asset graph (Enterprise Edition). A flow declaring this property on a task is rejected in the open-source edition.
io.kestra.core.models.assets.AssetsDeclaration
IGNOREFAILWARNAsset failure behavior
Behavior applied to the task state when a declared asset fails to render, emit, or be persisted (e.g. a lock conflict): FAIL escalates it to FAILED, WARN (default) warns it if it would otherwise succeed, IGNORE leaves the state untouched.
Whether to auto-register assets referenced dynamically at runtime that are not statically declared in inputs or outputs.
The assets consumed as inputs.
io.kestra.core.models.assets.AssetIdentifier
1The assets produced as outputs.
io.kestra.plugin.ee.assets.Dataset
1150{}1150io.kestra.plugin.ee.assets.File
1150{}1150io.kestra.plugin.ee.assets.Table
1150{}1150io.kestra.plugin.ee.assets.VM
1150{}1150io.kestra.core.models.assets.External
1150{}1150io.kestra.core.models.assets.Custom
11501Custom asset type
{}1150baseUrl string
https://api.browser-use.com/api/v4API base URL
Browser Use API v4 base URL. Defaults to https://api.browser-use.com/api/v4.
maxCostUsd numberstring
Maximum cost in USD
Optional cap sent as maxCostUsd. Browser Use stops the run when the cap is reached. Must be greater than 0.
model string
Model
Optional model id, for example gpt-6-luna. Leave empty to use Browser Use's current default. The model list changes, so this is a free string rather than a fixed set.
pollInterval string
PT2SStatus poll interval
How long to wait between status reads. Defaults to 2 seconds. Minimum is 1 second and maximum is 5 minutes. Use an ISO-8601 duration, for example PT2S.
Outputs
result string
Agent result
Final answer from the agent, as text. Ask for JSON in the prompt and parse it with fromJson.
runId string
Run ID
Identifier of the Browser Use run
status string
Run status
Terminal status reported by Browser Use. A successful task returns completed.
totalCostUsd number
Total cost in USD
Total cost reported for the run
totalInputTokens integer
Input tokens
Input tokens reported for the run
totalOutputTokens integer
Output tokens
Output tokens reported for the run
Metrics
input.token.count counter
tokenInput tokens reported by the Browser Use run
output.token.count counter
tokenOutput tokens reported by the Browser Use run
total.token.count counter
tokenInput plus output tokens reported by the Browser Use run