Skip to main content

HAON PowerHub — miner agent: rent out idle GPU time on a decentralized compute marketplace.

Project description

haon-agent

The miner-side agent for the HAON PowerHub distributed GPU marketplace. Run this on a machine with a GPU, register with the marketplace, and earn credit every time a worker rents your compute time.


One-command install

macOS / Linux

curl -sSL https://haon.run/install-miner.sh | bash

Windows (PowerShell)

iwr -useb https://haon.run/install-miner.ps1 | iex

Either one-liner installs this package into a per-user venv at ~/.haon/venv (no admin required), exposes the haon-agent CLI, and launches the pairing wizard.


Manual install (prefer the one-liner for non-developers)

pip install haon-agent
haon-agent pair         # email + password → marketplace registration
haon-agent run          # starts the agent, heartbeats begin

Configuration lands in ~/.haon/agent.toml; the API key is stored in your OS keyring (with a 0600 file fallback).


What the agent does

  • Probes your hardware (CPU / RAM / GPU via nvidia-smi).
  • Registers the machine with the HAON API and mints a scoped API key.
  • Holds a WebSocket to the HAON broker (outbound, NAT-friendly).
  • When a worker opens a session against your machine, the agent pairs the tunnel + starts the requested runtime container (Ollama, ComfyUI, custom HTTP).
  • Emits usage ticks every 10 seconds; the server turns ticks into earnings in your wallet.

Nothing the agent does touches ports on your side — all traffic is outbound WebSocket over TLS to broker.haon.run. You can run it behind NAT, corporate firewalls, or whatever.


Supported runtimes (alpha)

Runtime Status Notes
echo ✅ Works everywhere CPU-only smoke test
ollama 🚧 Docker-based (today) / native (next) LLM inference
comfyui 🚧 Docker-based Image / video diffusion
custom_http 🚧 Docker-based Bring your own HTTP server

Docker-based runtimes require Docker Desktop (Windows/macOS) or Docker Engine (Linux) + the NVIDIA Container Toolkit if you want GPU passthrough. The pairing wizard does not yet auto-install Docker — do that step yourself before running compute-heavy runtimes.


Uninstall

Everything the installer writes lives under ~/.haon:

haon-agent logout       # clears credentials from the keyring
rm -rf ~/.haon          # removes the venv + config

No registry edits on Windows, no systemd unit on Linux.


Security + privacy posture

  • All API traffic is TLS 1.2+. Self-signed certs are rejected.
  • Refresh tokens are rotated on every use (single-use).
  • The agent never executes arbitrary code from workers — runtimes are explicit runtime containers you opt into.
  • No telemetry beyond the heartbeats + usage ticks that the marketplace needs for billing. Source is auditable — this package is published from the same git history as the server.

Report security issues to alpha@haon.run.


License

MIT. See LICENSE in the source repository.

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_agent-0.5.1.7.tar.gz (202.0 kB view details)

Uploaded Source

Built Distribution

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

haon_agent-0.5.1.7-py3-none-any.whl (236.1 kB view details)

Uploaded Python 3

File details

Details for the file haon_agent-0.5.1.7.tar.gz.

File metadata

  • Download URL: haon_agent-0.5.1.7.tar.gz
  • Upload date:
  • Size: 202.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for haon_agent-0.5.1.7.tar.gz
Algorithm Hash digest
SHA256 a98d799778a386c73ad9f72c6b9ad5ca592d2f0e4a0195d4ea50d78e884d11a2
MD5 85c121a37943daa082da5d26b5709021
BLAKE2b-256 d2fb06eb6fc0ebb3824669bdc890ab7e33bd0a1ac276564a993b29d5dcb080fe

See more details on using hashes here.

File details

Details for the file haon_agent-0.5.1.7-py3-none-any.whl.

File metadata

  • Download URL: haon_agent-0.5.1.7-py3-none-any.whl
  • Upload date:
  • Size: 236.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for haon_agent-0.5.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 05de789f78a56f51e088d4951aa24c6cf8d3c815c643fd4d27e8f1c8ed913661
MD5 34c9d97b7a098cd70980b05e972543da
BLAKE2b-256 9d43f734bf0fffae1423d18f855451f4f10612f9410e455c9eecd5600760104a

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