AnchorBrowser CLI with agent-browser parity UX, backed by AnchorBrowser sessions over CDP.
brew tap anchorbrowser/homebrew-tap
brew install anchorbrowsernpm install -g @anchor-browser/cli
anchorbrowser --helpgit clone https://github.com/anchorbrowser/cli.git
cd cli
make build
./bin/anchorbrowser versionagent-browser parity commands are available through the proxy command (anchorbrowser proxy ...) and are executed through pinned backend (v0.20.13).
Anchor API-specific commands are namespaced under anchor:
anchorbrowser anchor session ...
anchorbrowser anchor identity ...
anchorbrowser anchor task ...Operational commands remain top-level:
anchorbrowser auth ...
anchorbrowser proxy ...
anchorbrowser update
anchorbrowser versionBreaking change:
- old top-level
session,identity,taskcommands moved underanchor.
API key precedence:
--api-key--key <name>ANCHORBROWSER_API_KEY- active key stored in OS keychain
anchorbrowser auth login --name default
anchorbrowser auth keys list
anchorbrowser auth currentExamples (mirroring agent-browser style):
anchorbrowser proxy open https://example.com
anchorbrowser proxy snapshot -i
anchorbrowser proxy click @e1
anchorbrowser proxy fill @e2 "hello"
anchorbrowser proxy screenshot page.png
anchorbrowser proxy closeSession bridge behavior for parity commands:
- hidden
--session-idif provided, - cached latest session,
- otherwise auto-create a new session.
Auto-created sessions enable recommended anti-bot defaults:
session.proxy.active=truewithtype=anchor_proxybrowser.extra_stealth.active=truebrowser.captcha_solver.active=true
For authenticated browsing, pre-create an authenticated Anchor session and then run parity commands:
anchorbrowser anchor session create --interactive
anchorbrowser proxy open https://your-app.examplePower-user flags for parity commands (intentionally hidden):
--session-id--new-session--no-cache
Backend bootstrap is strict at install time:
- Homebrew install runs
anchorbrowser proxy --help - npm postinstall runs
anchorbrowser proxy --help - install fails if backend bootstrap fails
Runtime auto-install/self-heal still applies if users manually remove/corrupt backend binaries.
anchorbrowser anchor session create --interactive
anchorbrowser anchor session list
anchorbrowser anchor identity list --application-url https://example.com
anchorbrowser anchor task run <task-id> --input "key=value"--api-key string
--key string
--base-url string
--timeout duration
--output json|yaml
--compact
--dry-run
--verbose
make generate
make fmt
make lint
make test
make test-race
make vulncheck
make build
make release-checkTagging v* triggers GoReleaser (.github/workflows/release.yml) to:
- build and publish binaries/checksums
- create/update GitHub release in
anchorbrowser/cli - commit formula updates to
anchorbrowser/homebrew-tap - publish
@anchor-browser/clito npm
Required repo secrets in anchorbrowser/cli:
HOMEBREW_TAP_GITHUB_TOKENNPM_TOKEN
When package.json version changes and merges to main, workflow
.github/workflows/tag-release-from-package.yml creates and pushes tag v<version>.
That tag triggers the release workflow.