Loops HouseNymira

NEAR HACKATHON
Team
1 member- NYOwner
Nymira Labs
Overview
Most AI APIs tie every request to an account and a card, so the provider can read your whole history, and a key given to an agent can drain the account behind it.
Nymira sells prepaid API credit instead. You deposit USDC into a vault contract on NEAR and get a note, a balance only you can spend. Each conversation spends a short lease from the note. Your device proves in zero knowledge that the note can pay, without saying which note it is, and the prompt is encrypted to the model's attested key, so the operator cannot read it. When you are done you close the note, and the rest goes to a payout account fixed at deposit. If the operator disappears, request_exit and, 7 days later, finalize_exit pay the rest to that account, as long as you keep your latest state. A budget note caps what one agent can ever spend. In our demo, a 1 USDC note (1.05 USDC with the deposit fee) pays 0.002 USDC for one message, and 0.998 comes back to the wallet on close.
On NEAR, the vault is a contract. It holds the USDC, keeps the commitment tree and the spent nullifiers, and checks Groth16 proofs on-chain with the alt_bn128 host functions. The models run in NEAR AI Cloud's TEE, and the client checks their attestation before it sends a prompt. The wallet signs the deposit and the close.
The proof circuits come from ethereum/zkapi, with our patches listed in NOTICE. We built the vault and its verifier, the operator, the nymirad gateway and CLI (it routes through Tor), the browser app, an MCP server (in the repo, not yet released) and our own trusted-setup ceremony. Other vendored code is listed in NOTICE.
To try it, open https://nymira.pages.dev and follow JUDGES.md (about 20 minutes), or run make golden locally with no keys.
This is a testnet project with test USDC. The circuits and the vault have had no independent review, and the anonymity set is small.