Skip to main content

HAON PowerHub Marketplace — Worker Client (rent GPU compute via P2P WebRTC)

Project description

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)

Links

License

Apache-2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

haon_worker-0.4.0.tar.gz (43.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

haon_worker-0.4.0-py3-none-any.whl (49.1 kB view details)

Uploaded Python 3

File details

Details for the file haon_worker-0.4.0.tar.gz.

File metadata

  • Download URL: haon_worker-0.4.0.tar.gz
  • Upload date:
  • Size: 43.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for haon_worker-0.4.0.tar.gz
Algorithm Hash digest
SHA256 04ee5d2d7992fb04a662028d4fb0927a4fdb8daada6a612a35f008496f3a8bf3
MD5 a587d502fa9bd3b32ee23d3e53b769f9
BLAKE2b-256 a6696f536f3804f7754a556ffbfa5aa03d292fa6a04f1d704c18f5fcf8a71a27

See more details on using hashes here.

File details

Details for the file haon_worker-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: haon_worker-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 49.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for haon_worker-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 221a4a09e372b60212651174ab6072e5c102f6eef87284e76dbef310db6f3f8d
MD5 0331223c146a2186c18722d9cbbf1628
BLAKE2b-256 bdca4b61f1f8d16704021a0d18a7f9629ff435c8156ec7f2938bc973a2175ef6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page