3.0 KiB
Migration Guide: agent-browser -> steel browser
This guide covers command-prefix migration from upstream agent-browser to steel browser.
Migration Goal
For most automation scripts, replace command prefix only:
- before:
agent-browser <command> ... - after:
steel browser <command> ...
Steel keeps inherited command behavior via vendored runtime passthrough and adds Steel-native session lifecycle commands.
Quick Migration Steps
- Install/upgrade Steel CLI.
- Authenticate once with
steel login(or setSTEEL_API_KEYin CI). - Replace command prefix in scripts.
- Run smoke flow:
start -> open -> snapshot -i -> stop. - If self-hosted, set endpoint explicitly with
--api-url.
Example Script Diff
# Before
agent-browser open https://example.com
agent-browser snapshot -i
agent-browser click @e3
agent-browser get text @e7
# After
steel browser open https://example.com
steel browser snapshot -i
steel browser click @e3
steel browser get text @e7
Steel-Native Lifecycle Commands
Steel adds lifecycle/session helpers that are not direct upstream command replacements:
steel browser startsteel browser stopsteel browser sessionssteel browser live
Use these when you need explicit create/stop/list/live workflows.
Auth Model Differences
Cloud (default)
- Preferred: run
steel loginonce. - CI fallback: set
STEEL_API_KEY.
Self-hosted
Use one of:
--api-url <url>(recommended for deterministic runs)--localplus env/config endpoint resolution
Endpoint Resolution for Self-Hosted Runs
--api-url <url>STEEL_BROWSER_API_URLSTEEL_LOCAL_API_URLbrowser.apiUrlin~/.config/steel/config.jsonhttp://localhost:3000/v1
Localhost Runtime Flow
For local Docker runtime workflows:
steel dev install
steel dev start
steel browser start --local --session local-job
steel browser open https://example.com --session local-job
steel browser stop
steel dev stop
If runtime assets are missing, browser local-mode commands instruct steel dev install.
If runtime is installed but unavailable, they instruct steel dev start.
Attach Flag Behavior
When explicit attach flags are provided, Steel passthrough does not inject bootstrap flags:
--cdp <url|port>: forwarded unchanged--auto-connect: forwarded unchanged
--cdp and --auto-connect cannot be combined.
Output Security Contract
steel browser start and steel browser sessions print display-safe connect
URLs. Sensitive query values like apiKey are redacted in CLI output to avoid
leaking credentials into logs.
For tools that need a fully-authenticated CDP URL, compose it from session id
and STEEL_API_KEY in your runtime environment.