Python wrapper for agent-browser CLI — browser automation for AI agents, no npm required
Project description
agent-browser-cli
Install agent-browser via pip/uv — no npm required. Node.js is managed automatically.
Installation
pip install agent-browser-cli
# or
uv pip install agent-browser-cli
First run
On first invocation, Node.js v22 is automatically downloaded to ~/.cache/agent-browser-py/ (one-time, ~30MB):
agent-browser --version
# Downloading Node.js v22.14.0 (one-time setup)...
# Done.
# 0.17.1
Then install the browser (Chromium via Playwright):
agent-browser install
On Linux you may need system dependencies:
agent-browser install --with-deps
Usage
agent-browser open example.com
agent-browser snapshot
agent-browser click @e1
All commands are proxied directly to the bundled Rust CLI binary.
How it works
The wheel bundles:
- Rust CLI binary (~15MB) — from GitHub releases
- Node.js daemon code (~18MB) — from the npm registry with all JS dependencies
Downloaded at runtime (cached in ~/.cache/agent-browser-py/):
- Node.js runtime (~30MB) — from nodejs.org, downloaded on first use
- Chromium — via
agent-browser install(Playwright CDN)
No npm installation is required on your system. Node.js is downloaded and managed automatically.
Supported platforms
- macOS (arm64, x86_64)
- Linux (x86_64, aarch64)
- Windows (x86_64)
Building from source
make wheel TARGET_SYSTEM=darwin TARGET_MACHINE=arm64 # Single platform
make wheels # All 5 platforms
make verify # Install and verify
License
MIT — This wrapper packages upstream software under their respective licenses:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file agent_browser_cli-0.17.1.post3-py3-none-win_amd64.whl.
File metadata
- Download URL: agent_browser_cli-0.17.1.post3-py3-none-win_amd64.whl
- Upload date:
- Size: 33.2 MB
- Tags: Python 3, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
608374b9ba6e72e26eb04775dbbd43a7cc655f0531c92b5305ed19166beb7df8
|
|
| MD5 |
acd102e2b2b508bdde48b9b74c7e0e0e
|
|
| BLAKE2b-256 |
b9e72967c158f54fc8d7a5d9af7b7b7dda1983626b9775e72377b956ecc272cb
|
File details
Details for the file agent_browser_cli-0.17.1.post3-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: agent_browser_cli-0.17.1.post3-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 33.2 MB
- Tags: Python 3, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a7a66f3f39aea6d893a2b3596168cb70e00b1b23bfb4001b5cea3af77dd3b3fb
|
|
| MD5 |
ef850e80d4a516e48247ca46a1c72234
|
|
| BLAKE2b-256 |
cd33e9414374e1e216f7f12d0900aa7fe3fdff852c9e7098ffd33d81067eaecd
|
File details
Details for the file agent_browser_cli-0.17.1.post3-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: agent_browser_cli-0.17.1.post3-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 33.0 MB
- Tags: Python 3, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ca32a9917901a99d53cbea81933c9b6093f47d179143c2e963b5d1af85cabf8d
|
|
| MD5 |
f15474dc764ea2ae78dc85746ae5d129
|
|
| BLAKE2b-256 |
d9a346ad45f8fb7c1805428be73c39e2d3a4a5293a5927c54bd0bc0f5ebc3c80
|
File details
Details for the file agent_browser_cli-0.17.1.post3-py3-none-macosx_11_0_arm64.whl.
File metadata
- Download URL: agent_browser_cli-0.17.1.post3-py3-none-macosx_11_0_arm64.whl
- Upload date:
- Size: 32.9 MB
- Tags: Python 3, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9a58fa3bab3cc753e82a7604b5bb06552c004e195b808483f875681eb8b0f7fc
|
|
| MD5 |
89a5eb631c0c09488a8969a0ce4bd83d
|
|
| BLAKE2b-256 |
28ff8322fa52c9587046c9dbbf9f8599409785029b62a1bcf987199cb16815a1
|
File details
Details for the file agent_browser_cli-0.17.1.post3-py3-none-macosx_10_9_x86_64.whl.
File metadata
- Download URL: agent_browser_cli-0.17.1.post3-py3-none-macosx_10_9_x86_64.whl
- Upload date:
- Size: 33.1 MB
- Tags: Python 3, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4d748f73d96b962a197aabbeae3e07263786fceb06b60e93d69cee220099f47d
|
|
| MD5 |
f3a52ab5ac6da3f15a77f1a323797e9e
|
|
| BLAKE2b-256 |
33365e54f5f22f3b42f74d795e759623e6eb802b90ae795a5063d0bdbddec63f
|