From aba9e0aacc09ea7698dbb39e6c898e3a2b102826 Mon Sep 17 00:00:00 2001 From: Remco Douma Date: Tue, 9 Jun 2026 01:07:16 -0300 Subject: [PATCH] Add Hashrate Autopilot (#5685) Co-authored-by: Claude Opus 4.7 (1M context) Co-authored-by: nmfretz --- hashrate-autopilot/data/.gitkeep | 0 hashrate-autopilot/docker-compose.yml | 27 +++++++++++ hashrate-autopilot/umbrel-app.yml | 66 +++++++++++++++++++++++++++ 3 files changed, 93 insertions(+) create mode 100644 hashrate-autopilot/data/.gitkeep create mode 100644 hashrate-autopilot/docker-compose.yml create mode 100644 hashrate-autopilot/umbrel-app.yml diff --git a/hashrate-autopilot/data/.gitkeep b/hashrate-autopilot/data/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/hashrate-autopilot/docker-compose.yml b/hashrate-autopilot/docker-compose.yml new file mode 100644 index 000000000..9e28a809b --- /dev/null +++ b/hashrate-autopilot/docker-compose.yml @@ -0,0 +1,27 @@ +version: "3.7" + +services: + app_proxy: + environment: + APP_HOST: hashrate-autopilot_web_1 + APP_PORT: 3010 + + web: + image: ghcr.io/rdouma/hashrate-autopilot:1.13.0@sha256:2a90cf1a987d596d18013b7f8d5dc51ed8acce2b3a78397fe38e85e5893ac322 + restart: on-failure + stop_grace_period: 1m + volumes: + - ${APP_DATA_DIR}/data:/app/data + environment: + HTTP_PORT: 3010 + HTTP_HOST: 0.0.0.0 + DB_PATH: /app/data/state.db + DASHBOARD_STATIC: packages/dashboard/dist + BITCOIN_RPC_HOST: "${APP_BITCOIN_NODE_IP}" + BITCOIN_RPC_PORT: "${APP_BITCOIN_RPC_PORT}" + BITCOIN_RPC_USER: "${APP_BITCOIN_RPC_USER}" + BITCOIN_RPC_PASS: "${APP_BITCOIN_RPC_PASS}" + BHA_DATUM_API_URL: "http://datum_datum_1:21000" + BHA_ELECTRS_HOST: "$APP_ELECTRS_NODE_IP" + BHA_ELECTRS_PORT: "$APP_ELECTRS_NODE_PORT" + BHA_PAYOUT_SOURCE: "electrs" diff --git a/hashrate-autopilot/umbrel-app.yml b/hashrate-autopilot/umbrel-app.yml new file mode 100644 index 000000000..1577011df --- /dev/null +++ b/hashrate-autopilot/umbrel-app.yml @@ -0,0 +1,66 @@ +manifestVersion: 1 +id: hashrate-autopilot +category: bitcoin +name: Hashrate Autopilot +version: "1.13.0" +tagline: Autopilot for renting hashrate to mine on Ocean Mining + +description: >- + Rent hashrate on the Braiins Hashpower marketplace and route it to your own + Ocean non-custodial mining pool, automatically. Each tick the autopilot finds + the cheapest available price for your target hashrate, adds a small + operator-chosen cushion, and bids exactly that price. You set a maximum you + are willing to pay, and the controller never goes above it. + + + Why this matters: Ocean is a non-custodial pool. Each Ocean block's coinbase + pays out to every miner whose accumulated earnings have crossed the on-chain + payout threshold (1,048,576 sat) - the coinbase IS the payout, in a single + transaction the chain itself executes when the block confirms. Most pools + (FPPS, PPS+, PPLNS) instead pay their own wallet first and then send miners a + second transaction on the pool's settlement cadence; that intermediate pool + wallet is bitcoin the pool custodies on your behalf, and it's what gets lost + when a pool goes dark. With Ocean your maximum exposure to pool failure is + your current unpaid balance (bounded by the threshold), and every past payout + is publicly verifiable on-chain forever. Ocean's Datum templates also filter + non-financial spam transactions. Renting hashrate to that kind of pool is a + small contribution to keeping Bitcoin mining decentralized. + + + Solo mining via Ocean's solo template should also work, though so far the + autopilot has only been tested against the regular Ocean+Datum pool setup. + + + Setup is a three-step web wizard. After setup you get a dashboard with live + decisions, charts, the DRY-RUN / LIVE / PAUSED switch, and a P&L panel that + reads spend from Braiins and earnings from your on-chain wallet. + + + This app declares Bitcoin Node, Electrs, and Datum Gateway as dependencies, so + Umbrel will prompt you to install them during setup. Once all apps run on the + same Umbrel, the autopilot's dashboard auto-discovers the local Datum HTTP + API, Electrs server, and Bitcoin RPC across Umbrel's shared Docker network - + zero copy/paste, the worker-count, hashrate, P&L earnings, and BIP110 + signalling panels all populate on first boot. (Pointing at off-Umbrel + instances is also supported - just override the URLs in Config after setup.) + +developer: Remco Douma +website: https://github.com/rdouma/hashrate-autopilot +dependencies: + - bitcoin + - electrs + - datum +repo: https://github.com/rdouma/hashrate-autopilot +support: https://github.com/rdouma/hashrate-autopilot/issues +port: 3018 +gallery: + - 1.webp + - 2.webp + - 3.webp + - 4.webp +path: "" +defaultUsername: "" +defaultPassword: "" +submitter: Remco Douma +submission: https://github.com/getumbrel/umbrel-apps/pull/5685 +releaseNotes: ""