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.2.tar.gz (44.5 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.2-py3-none-any.whl (49.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: haon_worker-0.4.2.tar.gz
  • Upload date:
  • Size: 44.5 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.2.tar.gz
Algorithm Hash digest
SHA256 33e3705d4e3b093078152b586cdbd322ef70d75f9f0b9ee3dd955127075c9bdb
MD5 a22108f47f0ccf39647cfbfb8f339b76
BLAKE2b-256 84a2f702bc24730d89ff93170d0a7e628df600ec38835db98ae38176d765abd9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: haon_worker-0.4.2-py3-none-any.whl
  • Upload date:
  • Size: 49.8 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 53a59abfb1723c0595d2ff8dc69b177dc2ef7f608084c8c2cc675feb95a63b66
MD5 8229b0580fbb46af0fc9c008cca0249c
BLAKE2b-256 971a697df9243d72c7a97830c81f5255ff644c786f1f2a6fcc3e81d0654521d6

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