GPU4U

AI agent that finds suitable GPUs and makes secure, policy-controlled x402 payments on Hedera.

GPU4U

Created At

ETHGlobal Mumbai

Project Description

GPU4U is an AI-powered autonomous GPU marketplace router that simplifies GPU discovery, selection, and payment for AI workloads. Instead of manually browsing multiple GPU providers, comparing hardware specifications, checking availability, and calculating costs, users can simply describe their workload in natural language.

GPU4U's AI agent understands the user's requirements, discovers available GPU offers through marketplace data, filters out unsuitable options, and identifies the most cost-effective GPU that meets the workload requirements. It then uses the x402 payment protocol to handle payments programmatically without relying on traditional manual checkout workflows.

Integrated with Hedera, GPU4U enables secure payment settlement with independently verifiable transaction records. A facilitator handles payment verification and transaction submission while covering the network transaction fee. The agent also follows a policy-based spending system: payments within predefined limits can be processed automatically, payments above the automatic approval threshold require human authorization, and payments exceeding the hard spending limit or involving unauthorized recipients are rejected.

GPU4U additionally provides payment verification through Hedera transaction records and maintains an auditable trail using the Hedera Consensus Service (HCS). Its goal is to make AI-driven compute procurement simpler, more transparent, and safer by allowing AI agents to discover suitable compute options and make controlled, verifiable payments on behalf of users.

How it's Made

GPU4U is built using a Node.js-based AI agent and payment engine that connects GPU marketplace discovery with autonomous, policy-controlled payments on Hedera.

For GPU discovery, we integrate the Aquanode marketplace API to retrieve available GPU offers. The GPU Router processes the user's natural-language workload requirements, validates the available offers against hardware and workload constraints, compares pricing, and selects the cheapest suitable option.

The payment engine implements the x402 HTTP payment protocol. When a payment-protected endpoint responds with HTTP 402 Payment Required, the agent reads the payment requirements, checks the requested amount and recipient against its own quote and spending policies, and generates the required payment authorization. This connects the agent directly to the payment flow without relying on a conventional manual checkout process.

We use Hedera Testnet for payment settlement. The Hedera facilitator verifies the payment authorization and handles transaction submission while paying the network transaction fee. After settlement, GPU4U independently checks the transaction through Hedera's public Mirror Node data to confirm that the transaction succeeded and the intended recipient received the expected amount. Hedera Consensus Service (HCS) is used to maintain an additional audit trail of important payment events, while HashScan provides a human-readable way to inspect transactions.

One notable implementation is the agent's spending-policy engine. It supports automatic payments within a predefined limit, human approval for payments above the automatic threshold, and rejection when a payment exceeds the hard spending ceiling or involves an unauthorized recipient. We also compare the server's x402 payment requirement against the agent's expected quote at the tinybar level, preventing unexpected price changes from being silently accepted.

The combination of live marketplace discovery, an autonomous agent, x402, and Hedera creates a controlled payment workflow where an AI agent can discover compute offers and make verifiable payments without receiving unrestricted access to the user's funds.

background image mobile

Join the mailing list

Get the latest news and updates