cua-host-bridge
Authenticated MCP streamable-HTTP host bridge: expose this machine's desktop to a
remote Hermes agent running the remote computer-use provider.
The agent side dials out; the host side (this package) owns cua-driver, its display, and
its permissions. A headless gateway with no display and no cua-driver still gets the
computer_use tool — the machine that matters is this one.
Quick start
# 1. Install (host machine)
pip install cua-host-bridge # or: uvx cua-host-bridge
# 2. cua-driver (once)
curl -fsSL https://raw.githubusercontent.com/trycua/cua/main/libs/cua-driver/scripts/install.sh | bash
# 3. Token (>= 32 bytes)
export HERMES_CUA_REMOTE_TOKEN=$(python3 -c "import secrets; print(secrets.token_hex(32))")
# 4. Run — Host allowlist must include the port: the Host header carries it
cua-host-bridge --port 8765 --allowed-hosts myhost:8765 --allowed-origins http://myhost:8765
On a headless Linux host the bridge auto-starts Xvfb on a free display and openbox.
Security model
- Bearer auth, constant-time compare; token never reaches child process env
- Host/Origin allowlists, no wildcards, exact match — include the port
- Non-loopback plaintext HTTP bind refused without explicit
HERMES_CUA_BRIDGE_ALLOW_PLAINTEXT - DNS-rebinding 421s before auth 401s;
Cache-Control: no-store - Standard permission mode only; no approval bypass
- Long-lived MCP streams: 30s connect/read=None, session idle timeout 1800s
The Hermes side
computer_use:
provider: remote
remote:
enabled: true
url: https://myhost:8765/mcp
with HERMES_CUA_REMOTE_TOKEN (>= 32 bytes) in the agent's .env.
Origin
Extracted from NousResearch/hermes-agent
(MIT, (c) 2025 Nous Research and contributors) — the files are mirrors of the in-tree
tools/computer_use/host_bridge*.py; the only drift is the import seam. The client side
lives in Hermes as the remote provider (PR #103653).
Metadata
Release files for cua-host-bridge 0.1.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 | |
|---|---|---|---|---|
| cua_host_bridge-0.1.0.tar.gz | 18.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cua_host_bridge-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 32.7 kB
Release files / cua_host_bridge-0.1.0.tar.gz
| Download URL | cua_host_bridge-0.1.0.tar.gz |
|---|---|
| Size | 18.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cfad9c174b23d5d4f6fafeceeee4fb68f89f5c159c73ae50df9a1fd44cc49114
|
|
BLAKE2b-256 checksum How to use checksums |
137218343af19f44a324d7ead92e934560e79181f96a5afeedc0b6e48970d90b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / cua_host_bridge-0.1.0-py3-none-any.whl
| Download URL | cua_host_bridge-0.1.0-py3-none-any.whl |
|---|---|
| Size | 14.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f716925a6cea9cb7b7b04e85902620888ffa74fdddb661a190198d7f32752b2d
|
|
BLAKE2b-256 checksum How to use checksums |
5a2f2521abe2a9959c2676677906246191f05bf727dc4e9d823f071a28c0c1ed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for cua-host-bridge 0.1.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.