Skip to main content

X5Browser

X5Browser

Version v4.0.4 Python >= 3.10

Version v4.0.4

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:

X5Browser Tutorial

Requirements

  • Python 3 >= 3.10
  • Internet connection (Chrome is downloaded automatically if it is not installed)

On Linux, request_human_takeover streams the full X11 desktop (including Chrome tabs and browser controls) and forwards user input. Linux installs pull in the required Python capture/encoding libraries. You also need xdotool and x11-utils; a display-less server additionally needs xvfb, openbox, and xauth. See the Linux desktop setup.

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/.

For developer setup, Python examples, and explanations of all 37 browser tools, see the X5Browser User Guide. The guide is also included in the installed package at X5Browser/docs/USER_GUIDE.md.

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.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for X5Browser 4.0.4
File Size Uploaded Provenance Actions
x5browser-4.0.4.tar.gz 210.9 kB Without provenance Details for x5browser-4.0.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for X5Browser 4.0.4
File Interpreter ABI Platform Actions
x5browser-4.0.4-py3-none-any.whl Python 3 none any Details for x5browser-4.0.4-py3-none-any.whl

Total release size: 462.3 kB

Release files / x5browser-4.0.4.tar.gz

Download URL x5browser-4.0.4.tar.gz
Size 210.9 kB
Tags Source
SHA-256 checksum
How to use checksums
c8263b60b98edfec3b78625a31b8a84a38f84b3a0ac37097bf73836385a9d1d5
BLAKE2b-256 checksum
How to use checksums
e23f9d124c505f22458be956c06fbe6d1df1eba2e3be5c069a6a07cd2d3af794
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.4-py3-none-any.whl

Download URL x5browser-4.0.4-py3-none-any.whl
Size 251.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
97856c2dbb3b4d218d932ec64bdb9e2ba8d28256da17835f69b35bd00becaac2
BLAKE2b-256 checksum
How to use checksums
6cec763c39f57bba028c56099c59470b5cc862f7030a105df95eb4024be282ea
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.4

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page