X5Browser
Version v4.0.0
A reusable Python browser automation library that gives projects control of Chrome through the Chrome DevTools Protocol (CDP). It includes 37 agent tools, automatic browser setup, and diagnostics.
The complete agent tool catalog is available at Tools/tools.json.
Agents should load the system skill and this catalog once at task start, then
reuse one browser/CDP session and verify each action before proceeding.
Tutorial Video
Watch the full walkthrough on YouTube:
Requirements
- Python 3 >= 3.10
- Internet connection (Chrome is downloaded automatically if it is not installed)
Install as a Python library
python -m pip install X5Browser
Python 3.10 or newer and Google Chrome are required. Check your environment
with python -m X5Browser.doctor --report; use --fix when you want the
doctor to install the managed Chrome build if needed.
Import the library from any Python project:
import asyncio
from X5Browser import BrowserConfig, X5Browser
async def main():
async with X5Browser(BrowserConfig.default()) as browser:
result = await browser.navigate_page("https://example.com")
print(result)
asyncio.run(main())
BrowserConfig.default() uses the project's Settings/settings.json when
present. Otherwise, it creates settings and browser data under
.x5browser/ in the current project. Set X5BROWSER_HOME to choose another
project data directory. The agent tool catalog is available in the installed
package at X5Browser/Tools/tools.json.
The unified AI system prompt and maintenance command definitions are also
included under X5Browser/System_Prompt/skills/ and
X5Browser/System_Commands/.
Install the standalone manager
Open PowerShell and run:
python -m pip install X5Browser
x5browser --help
x5browser start
The x5browser command also supports stop and install.
Update
Upgrade with python -m pip install --upgrade X5Browser.
Usage
From the project folder:
cd $env:USERPROFILE\X5Browser
Start
x5browser start
Stop
x5browser stop
Start X5Browser once per task and keep the same CDP session for each browser
action. Use browser_session with status to inspect the current session.
For the standard Chrome profile, open chrome://inspect/#remote-debugging,
enable Remote Debugging, then approve Chrome's Allow dialog. X5Browser reads
Chrome's DevToolsActivePort and attaches without closing or relaunching the
profile. Stop detaches X5Browser; disable Remote Debugging in Chrome to revoke
future connection requests.
Credits
Created and maintained by X5Coder · github.com/X5Coder/X5Browser
© X5Coder. All rights reserved.
Metadata
Release files for X5Browser 4.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| x5browser-4.0.0.tar.gz | 189.1 kB | Without provenance | Details for x5browser-4.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| x5browser-4.0.0-py3-none-any.whl | Python 3 | none | any | Details for x5browser-4.0.0-py3-none-any.whl |
Total release size: 420.5 kB
Release files / x5browser-4.0.0.tar.gz
| Download URL | x5browser-4.0.0.tar.gz |
|---|---|
| Size | 189.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
de076068ea33e469b14f95fdcea9964acd18779e813facba24e8fd423d47ae26
|
|
BLAKE2b-256 checksum How to use checksums |
4fef93f660808707ac3c039ee277bc4f0bc468e2d2592b183ae418d492b7a9aa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / x5browser-4.0.0-py3-none-any.whl
| Download URL | x5browser-4.0.0-py3-none-any.whl |
|---|---|
| Size | 231.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d40fe835afaa35f53baa2d8b1e61c48c47684a0b63334634f7b22366d27eaed5
|
|
BLAKE2b-256 checksum How to use checksums |
3d570d22f50b0519e38b7d154172d72b52e02ee2c3f9793abab937a6378fb986
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Security for X5Browser 4.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.