Skip to main content

Helixwright

Helixwright is the Python automation SDK for Helix Browser.

It does not create fingerprints locally, manage browser profile folders, or start chrome.exe directly. Profile creation, fingerprint generation, proxy configuration, browser launch, and profile sync are delegated to Helix Browser Desktop through its Local API. Page actions then use the private Helix RPC control plane built into the Helix Chromium fork, not CDP, DevTools, WebDriver, Playwright, or Selenium.

Install

pip install helixwright

Requirements:

  1. Helix Browser Desktop is installed and running.
  2. The desktop app is logged in.
  3. The desktop Local API is available, usually at http://127.0.0.1:59777.
  4. The desktop build supports /api/v1/automation/sessions.

Helixwright discovers the Local API from:

%APPDATA%\Helix Browser\local_api.json
%APPDATA%\fpclient\local_api.json

The first path is the preferred Helix config directory. The fpclient path is kept for existing local installations that still use the legacy config directory.

You can override it explicitly:

$env:HELIX_LOCAL_API = "http://127.0.0.1:59777"

Quick Start

Reuse an existing Helix profile:

import helixwright as hw

with hw.launch(profile_id="profile_123", url="https://example.com") as page:
    page.ele("#email").input("user@example.com")
    page.ele("#submit").click()

Create or reuse a profile by account_id:

import helixwright as hw

with hw.launch(
    "https://example.com",
    account_id="shop-001",
    name="Shop 001",
    proxy="http://user:pass@127.0.0.1:7890",
    fingerprint=hw.Fingerprint(locale="en-US", region="US", group="octo"),
    update_existing=True,
) as page:
    page.wait_for("body", timeout=10_000)
    print(page.title())

Octo-style: you do not need to invent an account_id or profile_id. Omit them and the server auto-assigns a sequential 编号 (the profile id), a short code (e.g. k1dx0am5), and a uuid4 account_id (the persona seed). name is optional too — when blank it falls back to the code:

import helixwright as hw

client = hw.Client()
p = client.profiles.create()            # nothing required
# or: p = client.profiles.create(name="gpt20x")
print(p.id, p.get("code"), p.name)      # e.g. 216  k1dx0am5  k1dx0am5

with p.launch(url="https://example.com") as page:
    print(page.title())

Use a reusable launch config:

import helixwright as hw

cfg = hw.LaunchConfig(
    account_id="shop-002",
    name="Shop 002",
    url="https://example.com",
    start_pages=["https://example.com", "https://example.com/login"],
    proxy="http://127.0.0.1:7890",
    fingerprint=hw.Fingerprint(locale="en-US", region="US"),
    update_existing=True,
)

with hw.launch(config=cfg) as page:
    page.ele("text=Login").click()

Client API

Use Client when you want to manage profiles, fingerprints, proxies, cores, or automation sessions explicitly:

import helixwright as hw

client = hw.Client()
print(client.health())
print(client.session())

profile = client.profiles.ensure(
    account_id="shop-003",
    name="Shop 003",
    proxy=hw.Proxy("http", "127.0.0.1", 7890),
    fingerprint=hw.Fingerprint(locale="en-US", region="US"),
    update_existing=True,
)

with profile.launch(url="https://example.com") as page:
    print(page.url)

Common managers:

client.profiles.list(page=1, size=20)
client.profiles.get("profile_123")
client.profiles.create()                               # Octo-style: nothing required.
                                                       # Server auto-assigns a sequential 编号 (profile id),
                                                       # a short code (e.g. "k1dx0am5"), and a uuid4 account_id
                                                       # seed; name falls back to the code.
client.profiles.create(name="gpt20x")                  # optional name; account_id/code still auto.
client.profiles.create(name="A", account_id="acct_A")  # or pin your own account_id (the persona seed).
client.profiles.ensure(account_id="acct_A")            # ensure() still needs account_id (its lookup key).
client.profiles.clone("profile_123", count=2)
client.profiles.sync_up("profile_123")
client.profiles.sync_down("profile_123")

client.fingerprint.options()
client.fingerprint.draw(account_id="acct_A", group="octo")
client.fingerprint.serialize({"ua": "..."}, seed=123)
client.fingerprint.redraw({"ua": "..."}, "ua")

client.proxy.check("http://127.0.0.1:7890")
client.cores.list()
client.cores.ensure("chromium", "149.0.7827.156")
client.browser.active()
client.browser.start("profile_123")
client.browser.stop("profile_123")
client.browser.stop_all()
client.automation.list()
client.automation.start("profile_123", url="https://example.com")
client.automation.stop("auto_123")

RPC Metadata And Input Receipts

Normal scripts can keep using page.ele(...), navigation, trace, and network helpers. For diagnostics and multi-target workflows, the operator exposes the browser RPC metadata layer when the installed core supports it:

print(page.rpc_hello())
print(page.rpc_endpoint_path)
print(page.rpc_describe())
print(page.rpc_ping())
print(page.targets())
page.activate_target(index=0)
print(page.frame_context())
print(page.last_action_receipt())

The current cloud-active M149 core is RPC V3: rpc.hello advertises protocol version 3, action receipts, typed errors, method metadata, and preferred endpoint /rpc/v2. Helixwright probes /rpc first for compatibility, then switches to the preferred endpoint reported by rpc.hello.

The SDK also supports the V4 source contract being staged in the M149 browser tree: protocol version 4, preferred endpoint /rpc/v3, explicit request context, and unified input.action. When a V4 core advertises input_action_vm, Helixwright sends keyboard, mouse, wheel, drag, and text actions through input.action; otherwise it falls back to the V3 atomic input methods or older RPC methods.

Older V2/V1 cores still attach. V2 uses /rpc/v1; V1 uses legacy /rpc. rpc_hello() falls back to a V1 capability payload when the browser does not expose rpc.hello.

Native Trace

Native trace records the page timeline locally through the Helix browser core: RPC actions, navigation, network metadata, console messages, and native DOM snapshots. It does not use CDP, WebDriver, Playwright, Selenium, or page-world JavaScript.

Local API is only used to start the automation session and return the browser RPC endpoint. All trace calls below go directly from Helixwright to the browser RPC endpoint; they are not forwarded through Local API.

Default mode is summary. Use full=True only when you need full DOM snapshot payloads for debugging or AI code generation. Trace data is not redacted.

import helixwright as hw

with hw.launch("https://example.com/login", account_id="trace-demo") as page:
    page.trace_start()  # summary mode

    page.trace_action(
        "fill-login",
        lambda: page.ele("#email").input("user@example.com"),
        settle_ms=800,
    )

    state = page.where_am_i({
        "login": lambda p: p.ele("#email").exists(),
        "dashboard": lambda p: "/dashboard" in p.url,
        "blocked": lambda p: p.ele(text="Verify").exists(),
    })

    page.trace_export("trace-login.json")
    print("state:", state)

Full trace:

page.trace_start(full=True)
page.trace_snapshot(full=True)
page.trace_export("trace-full.json")

CLI capture for an already-running automation session:

python -m helixwright trace --session auto_123 --duration 15 --output trace.json
python -m helixwright trace --session auto_123 --full --duration 15 --output trace-full.json

Launch Rules

Two entry points:

  • hw.launch_new(...) — create a BRAND-NEW profile and launch it. Octo-style: nothing is required; name is optional (just a cosmetic label). The server auto-assigns the 编号 (profile id), a short code, and a uuid4 account_id (the persona seed). Each call mints a NEW profile (NOT idempotent) — to reuse, launch by the returned id. account_id/profile_id are not accepted here.
  • hw.launch(...) — reuse/find an existing profile; requires either profile_id or account_id/account.
with hw.launch_new(name="gpt20x") as page:   # or hw.launch_new() — fully auto
    print(page.title())

Important behavior:

  • name is purely a cosmetic config label — it NEVER influences the fingerprint and is never a reuse key. The persona seed is the (auto or supplied) account_id.
  • profile_id means reuse that exact Helix profile.
  • account_id means find an existing profile by account ID, or create one when create=True. For brand-new profiles prefer launch_new (no account_id needed).
  • fingerprint=hw.Fingerprint(...) only sends creation hints to Helix Local API. The SDK does not generate fingerprints itself.
  • proxy can be a string, dict, or hw.Proxy.
  • start_pages is passed to the Local API automation session.
  • config=hw.LaunchConfig(...) should not be mixed with explicit profile_id, account_id, name, proxy, or fingerprint arguments.
  • page.close() stops the Local API automation session, waits until that session disappears, then waits until the matching /browser/active entry is gone before returning. Browser cleanup errors are propagated instead of being silently ignored.

Unsupported legacy direct-launch arguments are rejected, including chrome, user_data_dir, persona, seed, geoip, and extra_args.

Errors

Common error types:

Error Meaning
LocalApiUnavailable Helix Desktop is not running, the Local API address is wrong, or the port is unreachable.
DesktopNotLoggedIn Desktop is reachable but not logged in.
LocalApiError Local API returned a business error.
ProfileNotFound The requested profile does not exist.
AutomationEndpointUnavailable The desktop build did not return a usable automation RPC endpoint.
AutomationSessionNotFound The requested automation session does not exist.
RpcError The browser RPC endpoint returned a structured RPC error with a code.
TransportError The private page RPC connection failed, usually because the browser exited.
WaitTimeoutError A page wait condition timed out.

Examples

From the source repository:

cd "E:\Helix Browser\repos\helixwright"
python examples\99_offline_mock_demo.py

The offline demo does not need Helix Browser. It starts a mock Local API and mock RPC endpoint, then exercises the public SDK surface.

Real desktop examples require Helix Browser Desktop to be running and logged in:

python examples\00_helixwright_quickstart.py
python examples\01_client_managers.py
python examples\02_launch_config_and_actions.py

Useful environment variables:

$env:HELIX_LOCAL_API = "http://127.0.0.1:59777"
$env:HELIX_EXAMPLE_ACCOUNT = "demo-account"
$env:HELIX_EXAMPLE_URL = "https://example.com"
$env:HELIX_EXAMPLE_PROXY = "http://127.0.0.1:7890"
$env:HELIX_EXAMPLE_TIMEOUT_MS = "30000"

Development

cd "E:\Helix Browser\repos\helixwright"
pip install -e .
python tests\ci.py

Build and validate a distribution:

python -m build
python -m twine check dist/*

Boundary

Helixwright is only the automation SDK. The authoritative source for profiles, fingerprints, proxies, browser core downloads, cloud sync, and launch lifecycle is Helix Browser Desktop plus its Local API.

Metadata

Release files for helixwright 0.1.27

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

Source distribution (sdist)

Source distribution for helixwright 0.1.27
File Size Uploaded Provenance Actions
helixwright-0.1.27.tar.gz 168.5 kB Without provenance Details for helixwright-0.1.27.tar.gz

Built distribution (wheel)

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

Total release size: 330.6 kB

Release files / helixwright-0.1.27.tar.gz

Download URL helixwright-0.1.27.tar.gz
Size 168.5 kB
Tags Source
SHA-256 checksum
How to use checksums
b7fe94a1daed91445a9a5dadce2b00a635cdd88c1d1edcaff167c78dc5ab9ddb
BLAKE2b-256 checksum
How to use checksums
b607bb88991b473aea7d97a26ef50ec05e53b99955e961603673c1a36f1f74d1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.11

Release files / helixwright-0.1.27-py3-none-any.whl

Download URL helixwright-0.1.27-py3-none-any.whl
Size 162.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8a9c2ef73927d3295eb07a77771fee76aa47768044c66ec579f5a6273d4dae66
BLAKE2b-256 checksum
How to use checksums
b2171a6f1d489b10a87c0f879e0a97b1319e3557799a051a308c16a6b1e78267
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.11

Security for helixwright 0.1.27

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.

Release history Release notifications | RSS feed

This release

0.1.27 This release

2 release files No provenance

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