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.1.tar.gz (43.9 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.1-py3-none-any.whl (49.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: haon_worker-0.4.1.tar.gz
  • Upload date:
  • Size: 43.9 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.1.tar.gz
Algorithm Hash digest
SHA256 62d5c7e91bda9ac2b9cf26500bc89bc19774eed73cf03c8f53a5aa789130a67c
MD5 55ddbd9dc11f21fc7d8962b77a71a774
BLAKE2b-256 2d211b8d84eaeef3d4e7abe311772276a6d451345042840be76c1c12e139bce1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: haon_worker-0.4.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4d828669e79c4024e1b4d7809e2726066666d0d2c325b6445533fae71f299c56
MD5 4e12b361fa4d42d607dbc4f3fa0c1a69
BLAKE2b-256 9e3d5e6618bd758b4aa23c3861e980dab2f65c1ac42356b608d9d4767425a8b5

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