Architecture
The core systems behind Shelly’s mining agents.
Shelly combines mining orchestration, AI decision-making, payout automation, and contributor-supplied compute. Each layer has a clear role.
Mining Orchestration Engine
This is the core operating brain of the platform.
It connects to NiceHash Marketplace API and Mining Rig Rentals API to procure hashpower for users. It also manages pool assignments across 8+ mining pools, including 2Miners, Flexpool, and HiveOn.
Its profit-switching engine pulls real-time market and mining data from WhatToMine and CoinGecko. Then it calculates net profitability by algorithm.
The calculation factors in:
pool fees
network difficulty
payout scheme differences
conversion costs
After each evaluation cycle, the engine reallocates hashrate to the strongest option.
AI Agent Layer
Shelly’s agent layer is built on the OpenClaw agent framework. Claude powers the intelligence layer for decision-making.
Each deployed agent runs as an autonomous instance. It manages its own hashrate allocation. It monitors its own performance. It adjusts its own strategy over time.
Agents can use Shelly’s default max-profit logic. They can also be configured with custom strategies.
Payout Pipeline
Mining rewards start in native assets such as BTC, KAS, RVN, or FLUX. Those rewards do not stay fragmented.
Shelly automatically bridges rewards to Base through deBridge or Relay. It chooses whichever route offers lower fees at the time.
Once on Base, rewards are converted into USDC through on-chain DEX aggregation. Final USDC is deposited to the user’s wallet through the PayoutDistributor smart contract.
The full payout pipeline is transparent and verifiable on-chain.
Contributor Network
Shelly also supports user-contributed compute.
Contributors install the Shelly daemon, which is a lightweight Go binary. The daemon benchmarks each machine for CPU or GPU hashrate, memory, and stability.
After registration, that machine becomes part of the Shelly compute network. Its hashrate can then be pooled and assigned to paying agents.
Contributors earn a share of the mining rewards generated by their hardware, minus the platform fee.
Smart Contracts on Base
Shelly uses on-chain contracts for payout transparency and agent records.
PayoutDistributor.sol
PayoutDistributor.solHandles batch payouts to users and contributors.
AgentRegistry.sol
AgentRegistry.solMaintains an on-chain record of agent deployments. This improves auditability and operational transparency.
All contracts will be audited before mainnet launch.
Last updated