Learning resourcesReviewed · Browser Use

Browser Use Cloud Secrets Guide

This Browser Use guide teaches developers to pass credentials to cloud browser agents, but aliases do not guarantee that typed secrets stay hidden from the page or agent. It explains API V4 bindings, hostname restrictions, embedded payment fields and separate legacy V2 recipes.

Researched 23 Nov 2026

In short.

This guide helps developers supply credentials to Browser Use cloud agents, but its aliases do not guarantee that the page or agent cannot access the values after entry. API V4 bindings connect credential aliases to inline values and permitted hostnames. Authorization follows the focused input's frame, and follow-up runs must receive the bindings again. Python and TypeScript examples cover password entry, while checkout guidance distinguishes domain authorization failures from input-readiness failures. No examples were executed; runtime behavior, security effectiveness and total usage cost remain unverified.

Researched and written by an AI model and checked by a second AI model. How it works

Covers the complete Secrets page at [https://docs.browser-use.com/cloud/guides/secrets.md], including V4 bindings, checkout frames, error handling, legacy V2 recipes and opening service notices relevant to setup, limitations and cost. Linked documentation, pricing pages, SDK implementations and API schemas are excluded. No code, cloud requests, credential flows, security controls or billing behavior were executed or independently verified.

The overview

Identity

Secrets is a Browser Use Cloud documentation guide at [https://docs.browser-use.com/cloud/guides/secrets.md]. Its main subject is passing credentials to API V4 browser-agent runs through secret bindings. It also retains a clearly labelled legacy API V2 section with different request fields.

Assessment

The guide is useful when a browser agent needs to enter a password or another credential without including its raw value in the task text. Its strongest practical detail is the explanation of embedded checkout fields: a shop hostname alone does not authorize a payment provider's frame.

Its controls specify where a credential may be typed. They do not establish isolation from the receiving page or an agent with browser access. The page provides no security audit or measured reliability results.

Users

The main audience is developers integrating Browser Use Cloud through Python or TypeScript, especially for authenticated portals and embedded checkout forms. Existing V2 users also receive examples, but must keep their older request format separate from V4.

Beginners get a concrete password-entry example, although the guide assumes familiarity with SDK installation, environment variables and API authentication. Experienced developers get binding limits, frame-specific authorization rules and actionable error distinctions.

Capabilities

V4 supports inline credential values referenced through aliases in the task. Each binding specifies permitted hostnames, allowing different credentials to have different destinations. Python uses secret_bindings; TypeScript uses secretBindings.

The documented limits are 20 bindings per run and 20 allowed domains per binding. Aliases contain 1–64 lowercase letters, digits, hyphens or underscores and begin with a letter or digit. The inline limit is 4,096 bytes after JSON encoding for encryption, including the wrapper and escaping; it is not a character allowance.

Using it

Requirements

The examples require browser-use-sdk with an explicit V4 import: browser_use_sdk.v4 in Python or browser-use-sdk/v4 in TypeScript. They obtain the credential from PORTAL_PASSWORD in the application's environment; the page also permits an application secret store.

The page identifies X-Browser-Use-API-Key, without a Bearer prefix, as the cloud authentication header. The examples do not show SDK API-key configuration. Minimum SDK, Python and Node.js versions are not stated.

Mechanism

A binding pairs an alias with an inline secret value and allowedDomains. The task refers to the alias, and the hostname restriction determines where that credential may be typed. It does not restrict browser-wide navigation or network traffic.

Authorization checks the focused field's frame. Hostnames must be bare names without schemes, ports, paths or wildcards; a hostname also covers its subdomains. Bindings belong to one run and must be supplied again for a follow-up that needs the credential, even within the same session.

Setup

Install or upgrade browser-use-sdk and select its V4 client. Obtain the credential through the application's secret store or environment, choose a separate alias for each credential field and assign the narrowest intended hostnames.

Create the run using secret_bindings or secretBindings, with source.type set to inline and source.value containing the credential. Mention only the alias in the task. The guide advises keeping the value out of commits and avoiding request-body logging. V2 secrets and allowed_domains fields do not belong in V4 run requests.

Example

The V4 example asks the agent to open [https://portal.example.com/login], enter portal_password in the password field and stop before submitting. Its binding maps portal_password to PORTAL_PASSWORD and permits entry on portal.example.com. The example address must be replaced with the intended portal.

For an embedded checkout, the page illustrates a binding containing shop.example.com and payments.bigcommerce.com when that provider hosts the relevant fields. These hostnames illustrate frame authorization; they are not a universal provider list. Neither example was executed.

Assessment & evidence

Limitations

Once typed, a credential is accessible to the receiving page and to an agent with browser or browser-debugging access. Aliases avoid raw credentials in task text but do not guarantee secrecy from those parties. Hostname restrictions also authorize subdomains and do not act as a network allowlist.

The page does not describe automatic log redaction, inline-secret retention or the encryption implementation. It provides no evidence that a completed run successfully authenticated or completed a payment. Those behaviors and outcomes were not assessed.

Practical fit

The guide's practical value comes from separating task references from credential values and explaining the exact frame that receives authorization. Together, these details explain why a shop-level binding may fail in an embedded payment field and why changing models would not address that hostname mismatch.

Suitability depends on whether the intended page and browser agent may access the credential after entry. Work requiring a guarantee that the agent cannot see the entered value needs stronger evidence than this guide supplies.

Alternatives

For credentials in a connected vault, the page points to individual 1Password field bindings at [https://docs.browser-use.com/cloud/guides/1password.md#bind-individual-fields-in-a-v4-run]. That linked guide was not assessed, so its setup, permissions and costs are unknown here.

The V2 appendix documents secrets and allowed_domains for existing integrations, including wildcard-based domain restrictions. Those fields have different semantics and are not interchangeable with V4 bindings. Other products are not compared by this page.

Evidence

The source is the Browser Use Secrets documentation at [https://docs.browser-use.com/cloud/guides/secrets.md]. It supplies Python and TypeScript examples, binding constraints, checkout-frame guidance and error explanations.

These are documentation claims and illustrative code. No API responses, executed credential flows, independent security findings or comparative measurements establish the described behavior in practice.

Access & freshness

Costs

The page describes Browser Use Cloud as pay as you go, but provides no secret-binding-specific fee or complete rates for pricing a credential-entry run. It points to current rates at [https://browser-use.com/pricing]; that linked page is not included in the evidence. Total workflow cost is unknown.

The opening service notices warn that API-key monthly spending caps are soft limits: concurrent or already-running work can exceed them. A configured cap therefore does not establish a strict maximum cost.

Rights

The supplied page states no licence or redistribution permission for its text or code examples. Reuse and republication rights are unknown.

Freshness

The page was captured on 23 November 2026 at 16:37:30.072 UTC. It presents API V4 as the path for new agent integrations and retains V2 recipes for existing integrations.

A page publication date, last-updated date and exact SDK version are not stated. Compatibility with a particular installed SDK and changes after capture have not been assessed.

Next steps

Begin with the documented password-entry pattern that stops before submission. Confirm the intended field's hostname, including any embedded provider frame, and supply the credential binding again on follow-up runs.

For domain_not_allowed during checkout, inspect the returned origin and add its hostname only if it is an intended HTTPS payment or billing provider. For target_not_editable, focus an enabled editable input in the correct frame and wait for readiness; broadening allowedDomains does not fix that error.

Evidence for this report

selected-page.txtselected · checked 2026-11-23