EzPC

AI agent shops for your gaming PC on capped USDC; shop reviews only from World ID-verified buyers

EzPC

Created At

ETHGlobal Mumbai

Project Description

EzPC is an AI agent that shops for a gaming PC for you, without being handed your wallet.

You type one sentence, like "a 4K gaming PC under 4,000 USDC", and approve one small USDC allowance in your HashPack wallet. From there the agent works on its own. It finds a paid recommendation service listed on Arkiv and negotiates that service's fee with its AI agent over A2A. Then it pays the agreed price with x402 in USDC on Hedera, reads shop catalogues and reviews from Arkiv, and puts three complete, compatible PCs on your screen. Socket, RAM, case fit and power are all checked in code. You pick one, and your agent haggles with the shop's own AI agent to bring the price down. You watch both agents bargain live.

The agent can't overspend. It has no wallet and no keys. It can only ask a separate Guard service to pay, and the Guard can only pull from the allowance you approved, which Hedera itself enforces. Every payment passes a fail-closed chain of checks: the seller's listing must be genuine, the seller's terms must match it before anything is signed, each fee is capped, and an AI check confirms the purchase fits your task. Every decision is written to a public Hedera Consensus Service topic, and the agent checks its own payment on Hedera with the Hedera Agent Kit. Revoke ends everything in one transaction.

A real human approves the moments that matter. Any fee above your "ask me" amount pauses the agent until you pass a fresh World ID check on the real World ID service, which accepts Orb-verified people only, and sign that exact payment in HashPack. Being signed in with Google can't unblock it. If you press Deny, nothing is paid.

Reviews you can trust. AI makes fake reviews almost free, so EzPC only accepts a review after a delivered order and a fresh World ID check: one real person, one order, one review. Reviews are stored on Arkiv, where the shop being reviewed can't edit or delete them, and every review links to its entry on Arkiv's public explorer. They expire after 90 days, so a shop's rating reflects recent buyers. No name, email or World ID is stored with a review.

The shops own their own data. Each shop publishes its parts, prices and stock to Arkiv from its own wallet. The agent only trusts offers signed by that shop's wallet, and offers disappear when the shop stops renewing them. Even the price two agents agree on is published to Arkiv by the shop as a read-only entry that expires with the quote. Any other app can read the same catalogue with no API key.

What's real: the USDC allowance, x402 payments, refunds, World ID step-ups and the Hedera audit log all run on testnet. The shop data, reviews and negotiated quotes are real records on Arkiv. The PC checkout itself is a mock, and the shops are sample data.

How it's Made

EzPC is plain Node.js 24 with Express and a hand-written HTML/JS frontend, without a framework. It runs as five separate services, and each gets only the keys it needs. A launcher (start.mjs) strips every private key from the shared environment and hands each service only its own. The agent holds no key at all, and it and the MCP server refuse to start if they find one. Services authenticate to each other with per-run random tokens. Only the web app is public; everything else listens on loopback. It's deployed on Railway as a single container.

Hedera (payments and trust). The user approves a native HTS USDC allowance in HashPack over WalletConnect (AccountAllowanceApproveTransaction), with the Guard as spender, so Hedera itself enforces the spending cap. The hacky part: x402 on Hedera needs the paying account to sign, so it can't pay straight from an allowance. The Guard therefore does "pull, then pay". It pulls exactly one fee from the user's allowance, waits until the Mirror Node shows the funds, pays the seller through the official x402 facilitator (@x402/express and @x402/hedera, with the facilitator paying the network fee), and refunds the user if the payment fails. Before signing, the Guard checks that the seller's 402 terms match the price and payee in the Arkiv listing. Fees above the user's "ask me" amount become a Hedera Scheduled Transaction for the exact amount, which the user signs in HashPack after a World ID check, and which expires on its own. Every decision is a message on an HCS topic. A separate verifier (npm run verify) proves from public Mirror Node data alone that every USDC leaving the Guard has an audit entry. After paying, the agent verifies its own payment with the Hedera Agent Kit's read-only tools: the transfer, the allowance pull, and the HCS entry naming both. The app shows this with HashScan links. No Solidity: everything uses the Hiero JS SDK and native services.

Arkiv (shared state nobody can quietly change). Four entity types live on the Rabdi testnet, each with an owner wallet and an expiry: shop offers and profiles (each written by that shop's own wallet), reviews, the paid API's listing, and negotiated quotes. The agent discovers the recommendation API from its Arkiv listing instead of a hard-coded URL, and ignores listings from unapproved owners. Arkiv runs the filters (stock > 0, validUntil > now, category, price range). Then the code checks owner and payee against a registry and runs PC compatibility checks across every category at once. Expiry does real work: offers drop out when shops stop renewing them, reviews count for 90 days, and a negotiated quote lives exactly 5 minutes. Arkiv returns expiry as a block number, so we convert it using the ~2 s block time. Re-publishing creates duplicates, so every reader keeps only the copy that expires last.

World ID (the human checkpoint). Our app runs on http://localhost in development, and World's redirect flow needs an HTTPS callback, so we used the OIDC Device Authorization Grant instead. The Guard verifies every ID token on the server: signature against World's published keys, issuer, audience, and freshness. Freshness is enforced ourselves, because the device grant ignores max_age: we reject any token whose auth_time is before the moment the check started. The first World ID owns the account, any other is refused, and only Orb-verified people are accepted. Each approval is bound to the fingerprint of the exact payment it covers. The same gate protects writing a review: one per delivered order, published to Arkiv.

AI agents. The buyer agent and each shop's sales agent talk over the official A2A SDK, first to negotiate the x402 fee itself and then the PC price. An LLM (openai/gpt-oss-120b via Groq) plays the personas, but every hard limit is enforced in code, never by the model: each shop's private lowest price, "never counter higher", and the allowance and per-fee caps. The same model reads the user's request and runs the Guard's intent check. An MCP server lets Claude act as the buyer agent through the same Guard, next to Hedera's hosted MCP server.

Testing. 123 tests run fully offline in a simulated mode. Among them is a fake World ID issuer that signs real tokens, so we could test every failure path (denied, stale, wrong person, too low a verification level) before our sandbox World ID was ready.

background image mobile

Join the mailing list

Get the latest news and updates

EzPC | ETHGlobal