Skip to main content

haon-worker

CLI + GUI client for the HAON PowerHub Marketplace — rent GPU compute from miners by the second.

What it does

Opens a tunnel from your local machine to a rented GPU running Ollama, ComfyUI, vLLM, TGI, or any HTTP runtime. Your local tools (LM Studio, Jan, curl, the OpenAI Python SDK, LangChain, anything pointing at http://localhost:PORT) work transparently against the rented GPU — zero changes to your code.

Bytes flow peer-to-peer over WebRTC DataChannel when the network allows (typically same LAN / residential NAT), with automatic fallback to the HAON broker relay when ICE traversal fails. The data plane is end-to-end encrypted on the WebRTC path (DTLS).

Install

pip install haon-worker

Requires Python 3.12+. aiortc brings native libs but ships pre-built wheels for Windows / macOS / Linux x86_64 and arm64 — no compiler toolchain needed.

For Windows users who don't want Python at all, a single-file .exe GUI is available at https://haon.run (60+ MB, embeds Python 3.13 + everything).

Quickstart

# 1. Authenticate (creates ~/.haon/worker.toml + stores refresh token)
haon-worker login

# 2. Browse GPUs
haon-worker offers --runtime ollama --limit 10

# 3. Open a session against an offer
haon-worker session open <OFFER_ID> --runtime ollama_native

# 4. Tunnel a local port to the miner's runtime
#    (auto = WebRTC first, broker fallback)
haon-worker tunnel forward <SESSION_ID> \
    --local-port 22434 --remote-port 11434 --via auto

# 5. Use it
curl http://127.0.0.1:22434/api/tags

Point LM Studio / Jan / OpenAI SDK at http://127.0.0.1:22434 and they work against the rented GPU.

CLI reference

haon-worker --help
  login            Sign in with email + password
  logout           Revoke refresh token
  whoami           Show the current account
  balance          Show wallet balance
  buy-credit       Mint a Stripe checkout session
  offers           List marketplace offers
  session open     Reserve a miner + start a session
  session list     List your past + active sessions
  session close    Close an active session
  tunnel forward   Forward a local port through the rented GPU
                   --via {auto|webrtc|broker}
  tunnel attach    Re-attach to a running session's broker tunnel
  job submit       Submit a job to a session (echo-style runtimes)

License

Apache-2.0

Metadata

Release files for haon-worker 0.4.2

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

Source distribution (sdist)

Source distribution for haon-worker 0.4.2
File Size Uploaded
haon_worker-0.4.2.tar.gz 44.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for haon-worker 0.4.2
File Interpreter ABI Platform
haon_worker-0.4.2-py3-none-any.whl Python 3 none any Details

Total release size: 94.4 kB

Release files / haon_worker-0.4.2.tar.gz

Download URL haon_worker-0.4.2.tar.gz
Size 44.5 kB
Tags Source
SHA-256 checksum
How to use checksums
33e3705d4e3b093078152b586cdbd322ef70d75f9f0b9ee3dd955127075c9bdb
BLAKE2b-256 checksum
How to use checksums
84a2f702bc24730d89ff93170d0a7e628df600ec38835db98ae38176d765abd9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.13

Release files / haon_worker-0.4.2-py3-none-any.whl

Download URL haon_worker-0.4.2-py3-none-any.whl
Size 49.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
53a59abfb1723c0595d2ff8dc69b177dc2ef7f608084c8c2cc675feb95a63b66
BLAKE2b-256 checksum
How to use checksums
971a697df9243d72c7a97830c81f5255ff644c786f1f2a6fcc3e81d0654521d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.13

Release history Release notifications | RSS feed

This release

0.4.2 This release

2 release files

0.4.1

2 release files

0.4.0

2 release files

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