Skip to content

docs: advertise the hosted v4 API in the README - #145

Merged
Alezander9 merged 1 commit into
mainfrom
hosted-curl-quickstart
Aug 4, 2026
Merged

docs: advertise the hosted v4 API in the README#145
Alezander9 merged 1 commit into
mainfrom
hosted-curl-quickstart

Conversation

@Alezander9

@Alezander9 Alezander9 commented Aug 4, 2026

Copy link
Copy Markdown
Member

Issue for this PR

Closes #

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

The Hosted section pointed at the Cloud dashboard and left it at that. v4 is BrowserCode-only by
construction (the v4 worker image ships bcode as its sole core agent), so the hosted pitch can be
the API call itself rather than a link to a signup flow. Replaces the sentence with the one call
that runs the agent:

curl -X POST https://api.browser-use.com/api/v4/runs \
  -H "X-Browser-Use-API-Key: $BROWSER_USE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"task": "Your task"}'

task is the only required field. The Browser Use Cloud link is kept on the sentence above it.

How did you verify your code works?

Ran the snippet verbatim against production with a real key: it created a run
({"id":"f20575b6-...","status":"queued","model":"gpt-5.6-luna",...}), which I cancelled
immediately ($0.00 spent).

Also ran it verbatim with BROWSER_USE_API_KEY unset. curl drops a valueless header rather than
sending an empty one, so it lands on the missing-header 401. That error currently reads
X-Browser-Use-API-Key header is required, which tells a new reader nothing;
browser-use/cloud#5397 rewrites both 401 bodies to name the one-click key-creation URL. This PR
should land after that deploys.

Screenshots / recordings

n/a

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

Summary by cubic

Adds a hosted v4 API quickstart to the README so users can run the agent with a single curl call. Keeps the Cloud link and shows POST https://api.browser-use.com/api/v4/runs using the X-Browser-Use-API-Key header, with task as the only required field.

Written for commit 8615ae9. Summary will update on new commits.

Review in cubic

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

Re-trigger cubic

@Alezander9
Alezander9 merged commit 0251a2a into main Aug 4, 2026
3 checks passed
Alezander9 added a commit to browser-use/browser-use that referenced this pull request Aug 4, 2026
## Summary

The "Fully-Hosted Cloud Agent" block sells the hosted agent but never
shows it. Adds the one call
that runs it, right under the bullets:

```sh
curl -X POST https://api.browser-use.com/api/v4/runs \
  -H "X-Browser-Use-API-Key: $BROWSER_USE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"task": "Your task"}'
```

`task` is the only required field. Same snippet is going into the
BrowserCode README
(browser-use/browsercode#145) — v4 is the BrowserCode agent, which is
the Cloud v4 line in the plot
above this section.

## Test plan

Ran the snippet verbatim against production with a real key: created a
run
(`{"id":"f20575b6-...","status":"queued","model":"gpt-5.6-luna",...}`),
cancelled immediately,
$0.00 spent.

Ran it verbatim with `BROWSER_USE_API_KEY` unset: curl drops a valueless
header rather than sending
an empty one, so it lands on the missing-API-key 401.
browser-use/cloud#5397 rewrites that 401 to
name the one-click key-creation URL, so this should land after that
deploys.

`pre-commit run --files README.md` — passed (codespell + the file
hygiene hooks; the Python hooks
have no files to check).


<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Add a curl example to the README to show how to start the Fully-Hosted
Cloud Agent via POST to https://api.browser-use.com/api/v4/runs. The
snippet uses the `X-Browser-Use-API-Key` header and `Content-Type:
application/json`; `task` is the only required field.

<sup>Written for commit 455fd42.
Summary will update on new commits.</sup>

<a
href="https://cubic.dev/pr/browser-use/browser-use/pull/5394?utm_source=github"
target="_blank" rel="noopener noreferrer"
data-no-image-dialog="true"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img
alt="Review in cubic"
src="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"></picture></a>

<!-- End of auto-generated description by cubic. -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant