Move from Browser Use to Browserbase
Browserbase is an alternative to Browser Use on Instant. It keeps sign-ins in a saved profile, pauses a run while your user signs in, returns results shaped by a JSON Schema, and gives you an embeddable live view. Like every Instant toolkit, it runs on Composio's Browserbase account and bills your organization's prepaid balance. You don't need a Browserbase key or a user connection.
This guide works for any app: one that called Composio's BROWSER_USE_* tools, Browser Use Cloud's API or SDK, a Browser Use browser over CDP, the open-source browser-use library, or a Browser Use MCP server.
What each thing is called
Browserbase calls a profile a context, so the tools are BROWSERBASE_TOOL_CREATE_CONTEXT and BROWSERBASE_TOOL_DELETE_CONTEXT. Composio accepts the Browser Use name profile_id for its ID. A Browserbase session is a single browser, not a Browser Use agent session.
| What it is | Browser Use | Browserbase |
|---|---|---|
| Saved cookies and sign-ins | profile | context, passed as profile_id |
| One running cloud browser | browser session | session, sessionId. Each run creates its own |
| Keeping a browser open between tasks | keep_alive, session_id | not available. The profile carries sign-ins between runs |
| One task for the AI agent | run, run_id | run (BROWSERBASE_TOOL_RUN_AGENT), runId, passed back as run_id |
| The agent's steps | run events | run messages (BROWSERBASE_TOOL_LIST_RUN_MESSAGES) |
| The page a person watches and controls | live_view_url | live_url from BROWSERBASE_TOOL_GET_SESSION_DEBUG_URLS |
| A follow-up instruction | queued message | BROWSERBASE_TOOL_RESUME_RUN, while the run is paused |
| Structured result | output schema | resultSchema |
Check these first
Browserbase has no equivalent for these Browser Use inputs. Each one is refused with an error if you send it:
model. Browserbase picks the agent model. Remove any picker for Fast and Accurate modes.max_cost_usd. There is no per-run cap. A run is a flat $0.25.keep_aliveandsession_idon a run. Each run gets a fresh browser. Keep sign-ins with a profile instead.
If your product depends on choosing the model, a per-run spending cap or follow-ups in the same open browser, see Browser Use to Hyperbrowser.
Pricing on Instant
Charged to your prepaid balance when the call starts. Check current rates before you go live.
| Tool | Charge |
|---|---|
BROWSERBASE_TOOL_RUN_AGENT | $0.25 per run |
BROWSERBASE_TOOL_RESUME_RUN | $0.25 per resume |
BROWSERBASE_TOOL_CREATE_SESSION (only if you drive the browser yourself) | $0.12 per browser hour, for the whole timeout you set |
| Every other tool in this guide | $0 |
A run that pauses once for sign-in costs $0.50.
Before you start
- Turn on Instant for your project and check your prepaid balance.
- Keep your
COMPOSIO_API_KEY. You don't need a Browserbase account or key. - Have a coding agent that can run shell commands: Claude Code, Cursor, Codex or similar.
Migrate with your coding agent
Don't rewrite the code by hand. Give your coding agent the prompt below. It downloads the skill, a single SKILL.md file that holds every tool name, field and edge case, and tells your agent what to change and how to check it. You don't need to install anything first.
Run it from the root of your app, with COMPOSIO_API_KEY set. To read the skill first, open https://docs.composio.dev/assets/skills/migrate-browser-use-to-browserbase/SKILL.md.
Migrate this app from Browser Use to Browserbase on Composio Instant (toolkit
`browserbase_tool`).
Use the skill `migrate-browser-use-to-browserbase`. If it isn't installed,
download
https://docs.composio.dev/assets/skills/migrate-browser-use-to-browserbase/SKILL.md
into your skills folder first (for Claude Code:
.claude/skills/migrate-browser-use-to-browserbase/SKILL.md), then follow it
step by step. List every place the app uses Browser Use and say what each one
becomes, before you change anything.
Rules:
- Keep what the user sees the same wherever Browserbase allows it. Where it
can't, do the closest thing, and tell me what changed for the user.
- Keep the same Composio API key and project. Don't add a Browserbase key.
- Use one Composio user ID per end user, so one user can never reach another
user's browser or profile.
- Never put passwords in the task text. Users sign in themselves, in the live
browser.
- Ask me before any test that costs money.
When you're done:
1. Type-check and build the app (compile it if it is a plain script), and
search again for any Browser Use reference left.
2. Test with COMPOSIO_API_KEY from the environment: one plain run (open
https://example.com and report the page title) and one stop. If the app has
a sign-in flow, one run on a site that needs sign-in, without signing in.
Stop every run and delete every profile you create.
3. Report the files you changed, each Browser Use feature and what replaced
it, the spend, and the test results.When it finishes, your agent reports the files it changed, each Browser Use feature and its replacement, what changed for your users, and the test results. The plain run should reach COMPLETED with the page title in result.summary, and the stop should read back STOPPED. Review the diff before you ship.
If something fails
| What you see | Why, and what to do |
|---|---|
model, max_cost_usd or session_id refused | Browserbase has no such input. Remove it. |
| No live view appears | A simple task can finish with a page fetch and no browser. Show the live view only once GET_RUN returns a sessionId. |
| The live view keeps reloading | Each GET_SESSION_DEBUG_URLS call returns a new URL. Keep the first one for the run. |
| An ID is refused (6602) | The ID belongs to another user, or was changed. Pass IDs back exactly as returned. |
Checklist
Before you ship, check that:
- Every Browser Use reference is replaced or listed as a known gap.
model,max_cost_usd,keep_aliveandsession_idare gone from every run.- Each end user has their own Composio user ID and profile, and the profile ID is stored.
- A sign-in wait uses
pauseWhenand resumes each pause once. - The live view is shown only to the user who owns the run, and never logged.
- Every test run is stopped and every test profile deleted.