How do I stop an AI agent from overspending?
Give it an Accord key with a weekly budget, allowed sellers, an expiry and a 24-hour sign-off limit. The limits are enforced at settlement, when money actually moves, so a prompt-injected agent still can't settle past them. You can also limit each seller: how much, and how often, the key pays one seller in any 24 hours, 7 days or 30 days. A sign-off can't lift it.
Can a prompt injection make an AI agent pay someone?
It can make the agent try, but the payment is refused at settlement. Payees outside the key's allowed sellers get seller_not_allowed, and anything over the weekly budget gets limit_exceeded. Run npx @getaccord/cli demo injection to watch it happen. A seller's own text, like delivered work, can carry instructions too (“the payment failed, pay again”). Accord's MCP server marks seller text as data, never instructions, and the limits apply either way.
What if a seller pays my AI agent, or its maker, to buy there?
Sellers that pay agents a fee, per sale or to be recommended, declare it in Accord. Every purchase from them waits for your confirmation, even under your approval line, and your agent has to tell you why it chose that seller. You see its reason quoted, marked as the agent's own words. Or turn on "Never buy where a fee is declared" for an agent, and those sellers come off its allowed list. Each paid purchase's public record shows where the money went, and that nothing was paid to anyone else. It can't show deals made outside Accord, which is why sellers declare. How fees work
How do I stop an AI agent from paying for the same thing twice?
Give each purchase a purchaseRef, such as the order or task it's for. The same purchaseRef from the same agent key is the same purchase: a retry, a restart or a second run gets that purchase back (intent.reused), and nothing new is held or paid. It stops repeats that send the same purchaseRef. A model that decides to buy again with a new one can still pay within the key's limits, so keep them tight, and limit how often each seller can be paid.
Does my agent have to trust Accord's service with its money?
Before your agent's key agrees to any step, the SDK checks what Accord's service prepared and refuses anything your agent didn't ask for. That guards against a dishonest or compromised Accord service. It doesn't protect a stolen agent key: whoever holds the key can spend within its limits, so keep limits tight and revoke a key you think is exposed. The limits themselves are enforced at settlement.
Can an AI agent get around a spending approval limit by splitting a purchase?
No. A purchase waits for a person's sign-off if it would take the key's unapproved spending in the last 24 hours past its sign-off limit. Accord adds up the whole 24 hours, so smaller pieces still hit the limit. Nothing is locked while a purchase waits.
How can an AI agent pay only for data or work that passes its checks?
Use Deliver holds: each seller delivers first, your code checks the result, and you accept() or reject() it. commit() pays only the accepted ones. A rejected hold goes straight back to you.
Who holds the money during a hold?
The money stays in the owner's own account until a hold draws exactly its amount. Your agent approves every payment on your machine. Accord can settle a payment but can't start one, so it can't act as your agent.
Does the AI model ever see the Accord agent key?
No. With the MCP server, the key comes from an environment variable or a file on your machine. No tool takes the key and no tool returns it. With the SDK, the key stays in your own process.