Skip to main content

X5Browser

X5Browser

Version v4.0.1 Python >= 3.10

Version v4.0.1

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)

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

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.1
File Size Uploaded Provenance Actions
x5browser-4.0.1.tar.gz 194.6 kB Without provenance Details for x5browser-4.0.1.tar.gz

Built distribution (wheel)

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

Total release size: 432.0 kB

Release files / x5browser-4.0.1.tar.gz

Download URL x5browser-4.0.1.tar.gz
Size 194.6 kB
Tags Source
SHA-256 checksum
How to use checksums
b52eb0644bba8dc99bfc78b85d238322daec0c0dcc174a6df37b0dfa8ef54e6b
BLAKE2b-256 checksum
How to use checksums
92de6fc6398db57867a9a2fabfeee52006c0f6e50d8ae5d1fdfc185283dab13a
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.1-py3-none-any.whl

Download URL x5browser-4.0.1-py3-none-any.whl
Size 237.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
88aa1f9a0944e0b9ff3147d5befad5e03a547dad6af7c622dc01dd9a1008cde4
BLAKE2b-256 checksum
How to use checksums
429b6d399b9fbad80ded0945aca4970547c6fa0a038fe76914a3e40dc3cea9f5
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.1

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