Hacker Newsnew | past | comments | ask | show | jobs | submit | liad's commentslogin

We're working on spend controls for AI agents using MPP. The protocol handles how agents pay, but there's no standard way to enforce budgets before payment happens.

How people here are handling this. When your agent hits a $35 API call, or gets stuck in a retry loop on a $0.50/req service, what stops it from draining the wallet?

Are wallet-level caps enough? Are you writing custom budget checks in your agent code? Or just not worrying about it yet?

We built an open source MCP proxy (github.com/policylayer/intercept) that enforces policy on tool calls. Thinking about extending it to read the -32042 payment challenge, check the amount against a budget, and allow/deny/hold for approval before the wallet pays.

Would love to hear if this is a real pain or a theoretical one.


Wraps any MCP server and checks every tool call before it runs. (Open Source)


would policylayer.com be helpful to you?


Nice kit. One gap in x402 flows: no standard way to express "this agent can spend up to $X/day on these API categories." Payment primitive works, but the authorization/policy layer is ad hoc. Working on this at PolicyLayer — programmable spend policies for agent wallets.


A real-time Kanban board for monitoring Claude Code tasks. See what Claude is working on, track dependencies between tasks, and add notes that Claude can read.


AI agents need to make autonomous payments, but if you give them direct wallet access, they can drain your funds. Custodial solutions create liability and trust issues. Building custom controls takes weeks.

## The Solution

A two-gate enforcement model:

1. *Gate 1 (Validate)*: Agent requests payment → Policy engine checks limits → Issues single-use authorization token 2. *Gate 2 (Verify)*: Before signing → Verify token + check for tampering → Only then sign transaction

Your keys never leave your infrastructure. Policy enforcement happens before signing.

Currently demonstrated with Tether WDK on Ethereum, but the wrapper pattern works with any wallet SDK.


have flown out of israel dozens of times.

before you get anywhere near the terminal you are stopped and men with uzi submachine guns look in the car and ask a couple of questions.

these guys are razor sharp and know exactly what they're looking for.

you feel safe and nervous at the same time


not sure i agree.

its not the logo which makes it instantly recognizable - it's the hundreds of millions of dollars of branding and advertising


Shoply.com


we thought that was kinda cool - but i hear your point


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: