Loops HouseSpendGuard

NEAR HACKATHON
Links
Team
1 member- NAOwner
Nanda Arya Rosalia
Overview
AI agents that can pay for APIs or other agents are useful, but a prompt injection or a bug can drain a wallet if the agent holds a full-access key. SpendGuard is a NEAR policy vault: a human deposits NEAR and sets per-transaction and daily caps plus an allowlist of receivers and methods. A purchasing agent proposes payments — from an OpenAI-compatible model or a deterministic offline fallback — but it can only spend through this contract, with a Function-Call access key scoped to agent_spend and agent_call. Over-limit and off-allowlist attempts are rejected on-chain; a prompt-injected "send 10 NEAR to a stranger" is ReceiverNotAllowed and the vault does not move. This is already live on NEAR testnet at sgd3147470a.testnet.