Edgent

When your edge AI agent runs out of compute, Edgent finds more, pays for it, and finishes the job.

Visit Repo
Edgent banner

About

Edgent is a peer-to-peer compute delegation daemon for edge AI agents. When an agent running on resource-constrained hardware hits an OOM error mid-inference, Edgent takes over completely and autonomously resolves the resource failure without any human intervention.

The networking layer is built on Gensyn AXL -- an encrypted P2P mesh network built on the Yggdrasil stack that runs entirely in userspace with no TUN device, no port forwarding, and no central coordinator. Every single message in Edgent flows exclusively over AXL: resource discovery broadcasts, capability advertisements, task delegation, inference results, zero-knowledge proof delivery, and payment signaling. Nothing touches a central broker. The Dell G15 runs as the bootstrap hub node listening on TLS port 9001, and the Jetson Orin Nano peers into it outbound. AXL is built from source using Go on each machine and spawned as a child process by the daemon.

The payment flow implements the x402 payment protocol over the AXL mesh instead of HTTP. After delivering the inference result, the provider sends a payment_request message over AXL containing the amount, currency, wallet address, and output commitment. The requester intercepts this signal, verifies the zero-knowledge proof, and triggers payment -- the same handshake as x402 but with an encrypted mesh as transport.

The zero-knowledge proof system uses a Circom circuit compiled with 486 non-linear constraints and a Groth16 trusted setup via snarkjs. The circuit uses Poseidon hash -- a ZK-native hash function with far fewer constraints than SHA256. The provider proves two things: that they know the preimage of the output commitment (they actually ran the job and cannot swap the result after seeing payment), and that they control the wallet receiving payment. This is the ZKaggle pattern applied to compute delegation. Proof is generated on the provider after inference and verified on the requester before a single USDC moves.

KeeperHub handles guaranteed onchain execution of the escrow release. After ZK proof verification passes, the daemon calls KeeperHub POST /api/execute/contract-call with the EdgentEscrow contract address on Base Sepolia, the release function, and the jobId and outputHash as bytes32 arguments. KeeperHub's managed wallet -- set as the operator in the contract constructor at deploy time -- signs and submits the transaction with retry logic and gas optimization. The daemon polls GET /api/execute/{executionId}/status until the transaction is confirmed, then logs the transaction hash and the basescan explorer link. KeeperHub organization wallet is funded with Base Sepolia ETH for gas and USDC for operations.

The EdgentEscrow contract is deployed on Base Sepolia at 0x8633049775ef7952DD6C169865D426D7818Fd505. It is USDC ERC20 based. The requester calls USDC.approve() followed by stake(jobId, providerAddress, amount) before sending the task. The provider calls getStake() to verify funds are locked before starting any work. Release only happens after ZK proof is verified and KeeperHub executes the call. claimTimeout lets the provider claim funds if the requester ghosts after one hour. refund lets the requester reclaim if the provider never delivers. The contract has 20 Hardhat tests passing with a MockUSDC contract.

ENS identity is fully implemented in ens.ts using viem connected to Ethereum Sepolia. Every node has an ENS name configured in its environment -- dell-g15.edgent.eth and jetson-orin.edgent.eth. These names travel in every resource_ad message across the AXL mesh and appear in the dashboard and payment logs. ENS text records are designed to carry node capabilities including the AXL public key, wallet address, available models, and version. The resolveENS() and lookupENS() functions are implemented and tested. Mainnet registration is post-hackathon.

The full demo runs on NVIDIA Jetson Orin Nano (Ubuntu 22.04, ARM64) as the requesting agent and Dell G15 (Ubuntu 20.04, x86_64) as the compute provider. Both are physically separate machines on real network interfaces. The Jetson has a funded USDC wallet on Base Sepolia. The Dell runs ollama with tinyllama. The full flow -- peer discovery, USDC staking, task delegation, inference, ZK proof generation, proof verification, KeeperHub payment execution, and onchain confirmation -- completes end to end with a real transaction hash on Base Sepolia.

From the public ETHGlobal showcase page. Votes, swipes and the judge score are hackfeed's own.

AI judge

Not judged yet. A free model reads this page, compares it with similar projects and this event's winners, then scores it and says what would make it win.

Still being built?

DormantLast push 209 days ago

Swipe stats

0upvotes
0skips
0saves

Discussion 0

No comments yet. Ask the team something, or say what you'd use it for.

Posting as a guest. Plain text, 1,000 characters max.

Already built nearby

Closest projects by meaning and shared words. Similar isn't the same as copied: read them.

Agent Mesh

Agent mesh is a decentralized network where agents hire, pay and collaborate with each other

SWARM ARENA

AXL powers a mesh for AI agents to meet, compete in real games & learn peer-to-peer, no cloud.