Daily spending limit for autonomous agents
denk.halowerk.com/v1/spend-guard
Daily spending limit for autonomous agents: set a cap per agent, then authorise and record each spend before paying. Namespaced budgets per agent and UTC day. "set_limit" defines the daily cap and optional per-transaction cap; "authorize" atomically checks amount against both caps and the day total and records it if allowed (with an optional reference); "status" shows spent, remaining and recent e
POST
https://denk.halowerk.com/v1/spend-guardUptime100% of 4 checks in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://denk.halowerk.com/v1/spend-guard", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"action":"set_limit","agent":"r","daily_limit":0.01,"namespace":"test-spend","per_transaction_limit":0.005,"secret":"geheimnis-0123456789"}),
});
console.log(await res.json());Example input
{
"action": "set_limit",
"agent": "r",
"daily_limit": 0.01,
"namespace": "test-spend",
"per_transaction_limit": 0.005,
"secret": "geheimnis-0123456789"
}