Loops HouseBarrel

NEAR HACKATHON
Links
Team
1 member- FIOwner
Firdan
Overview
Prepaid AI credits ask you to trust the provider: you pay up front and cannot check which model answered, or whether a cheaper one was swapped in. Barrel pays only on proof.
You buy Barrels (NEP-245 multi-tokens) with Circle's USDC (NEP-141). The USDC sits in escrow in a NEAR contract, one series per model. You fill a tank with Barrels, and the tank gets its own spend key. Each answer comes from a model running in an attested TEE on NEAR AI Cloud, signed by a key that exists only inside that enclave. An attestor contract registers that key only after checking the enclave's Intel TDX quote. Before paying the operator for an answer, the Barrel contract verifies the signature over the model name and the request and answer hashes. Unused Barrels come back and are refundable in USDC.
Agents get a tank of their own, holding only a key, through the MCP server or the CLI. The key can only pay for proven answers. Agents can be funded over HTTP 402 (x402) with USDC from Base or other chains through NEAR Intents 1Click.
Live on NEAR mainnet at promptbarrel.com (barrel-v2.promptbarrel.near).