GridAgent

An energy agent that buys useful data and schedules factory loads within a spending budget.

GridAgent

Created At

ETHGlobal Mumbai

Project Description

GridAgent helps a factory move flexible electricity demand into better operating hours without changing the work it needs to finish. The operator sets continuous operating blocks for compressors, process cooling and battery charging, operating windows, a site connection limit, a carbon objective and a data budget. The planner compares provider quotes, selects the cheapest useful datasets, skips redundant information, and finds a feasible schedule with an inspectable decision trail.

The public interactive site runs the optimizer and simulated purchases entirely in the browser. It uses synthetic inputs and makes no HTTP payment or blockchain transaction. The local Express application demonstrates the full HTTP 402 challenge, signed retry and simulated receipt flow. Its default scenario schedules 1,740 kWh within 400 kW capacity, buys two feeds for 0.018 simulated USDC, and reduces modeled wholesale energy cost by EUR 122.14. These are illustrative results, not measured factory savings.

The backend integrates Hedera x402/HTS USDC and HCS commitments. Actual testnet settlement and HCS proof remain unverified pending funding. The prototype does not actuate equipment or claim energy-audit compliance. A narrated 2:21 product walkthrough is uploaded with this submission.

How it's Made

The application combines an Express and TypeScript service, a lightweight HTML/CSS/JavaScript dashboard, Zod validation, and a branch-and-bound scheduler. Each uninterrupted load stays within its window and shared capacity limit. The objective combines electricity cost with a carbon penalty. Synthetic provider endpoints supply the local service; missing categories use explicit coarse priors. A separately deployed browser bundle shares the optimizer and offers local-only simulated purchases, with no backend secrets or network settlement.

The server implements x402 v2 discovery, HTTP 402 requirements, quote validation, signed retries, facilitator verification and settlement, and receipts. Testnet signing uses official @x402/hedera and @hiero-ledger/sdk with HTS USDC token 0.0.429274. Persistent daily and per-provider limits, autonomous thresholds, idempotency keys and atomic replay claims govern spending. Uncertain settlement retains its reservation, and successful receipts must identify the signed transfer. Demo receipts are explicitly simulated and have no transaction ID.

Events are SHA-256 linked. HCS code commits event hashes and scheduling decisions, and read-only Mirror Node tools check HTS transfers and HCS commitments. Actual testnet settlement and HCS anchoring remain unverified. An optional eve language agent can call typed tools into the service; a completed model turn is not claimed. Twenty-one automated tests cover scheduling, budgets, replay, recovery, authentication, browser simulation and evidence checks. Root and agent typechecks pass. A Node 24 Docker build completed a full local planning run. No Solidity contracts are used.

background image mobile

Join the mailing list

Get the latest news and updates

GridAgent | ETHGlobal