Skip to content

Blog / Agents and money

How to let an AI agent spend without handing it your card

Sooner or later, an agent you've built hits a wall that isn't technical. It needs a better search API, an hour on a GPU, or a data set it can't get for free, and the only thing in the way is a payment form.

The tempting fix is to give it a card. Please don't, or at least not the way most people try it first.

Why the obvious ways go wrong

Putting the card number in the prompt or the config. Anything a model can read, it can repeat. Card numbers end up in logs, in transcripts, in the context passed to other tools. And the card has no idea it's being used by software: there's no limit per task, no record of which agent bought what, and no way to stop one agent without cancelling the card for everyone.

Giving the agent your own login to each vendor. Fine for a demo. Then you have an agent holding passwords to six services, each with its own billing page, and the first time something runs up a bill you're reading six invoices to work out which task did it.

A prepaid card with a low limit. Better, because the damage is capped. But the cap is per card, not per job, and you still can't tell a sensible $40 purchase from a runaway loop that spent $40 a cent at a time.

The common problem is that a card is built for a person who decides each purchase as it happens. An agent makes hundreds of small decisions, quickly, often while nobody's watching. It needs different controls.

What good controls look like

Think about how you'd let a new hire spend company money. You wouldn't give them the corporate card and hope. You'd give them a budget, a list of things they can buy, and a rule that anything big needs a sign-off. The same ideas work for agents. They just have to be enforced by software instead of by trust.

A budget per agent, per month. Not per company. Your research agent and your support agent shouldn't draw from one pot, so one going wrong can't starve the other.

Rules about what it can buy. "Weather and market data, nothing else" is a rule a system can check. So is "only these five sellers".

An approval line. Below it, the agent just buys. Above it, a person gets a message and taps yes or no. Most purchases are small, so this rarely interrupts anyone, and it catches the one that matters.

Money set aside before the work starts. This is the subtle one. When an agent rents a GPU, nobody knows the cost until the job ends. A good system reserves an amount up front, lets the job run inside it, and releases whatever wasn't used. If the job needs more, the agent has to ask, and that request is checked against the budget like any other.

A key you can switch off. The agent should hold its own key, not your card or your passwords. If it misbehaves, you turn off that one key and everything else keeps working.

A record of everything. Each purchase tied to the agent, the task and the rule that allowed it. When the bill comes, you should be able to answer "why did we spend this?" without opening a spreadsheet.

Watch for purchases racing each other

Here's a failure people don't think about until it happens. An agent has $100 left and sends five $30 purchases at the same moment, which agents do when they work in parallel. If each check reads "$100 left, $30 is fine", all five go through and you've spent $150.

Whatever you use has to check purchases one at a time, each against what the last one left, so the fourth and fifth are refused. Ask about this directly. It's easy to get right in a demo and wrong under real load.

A month, worked through

Here's how a month might go for a team with one research agent:

  1. The admin sets a budget of $1,500 a month, allows data and search sellers, and asks to approve anything over $250.
  2. Through the month the agent buys a few hundred searches, a few dollars at a time. Nobody notices, which is the point.
  3. Mid-month it wants a $320 company data set. That's over the line, so the admin gets a notification, sees what it's for, and approves it from their phone.
  4. Near the end of the month it tries a $700 purchase with $60 left. It's refused, and the agent is told why and how much remains, so it can tell its user instead of retrying blindly.
  5. On the first of the month, the company gets one bill from each seller, with every line traced to the agent that spent it.

Nobody handed out a card number, and nobody watched the agent all month.

Where Paygynt fits

This is what we're building. Agents connect to Paygynt over MCP with their own key, find what they need, and buy it within the rules you set: a budget for each agent, the sellers it may use, and a line above which a person approves. The company card is connected once and never shown to an agent. If you'd like to try it with your own agents, get in touch.

Whatever you end up using, don't skip the budget per agent and the approval line. Those two controls are what turn "the AI spent money" from a worry into a line on an invoice.

Ready when your agents are.