FluxFluxDocs
Launch App →

Agent Registry

Register AI agent wallets with USDC spending caps. Agents can then call agentPay() autonomously to send USDC to any recipient — without requiring manual approval for each payment — as long as they stay within their cap.

Use cases

AI trading bots that pay fees autonomously. Subscription services billed by an agent. Autonomous payroll agents. DeFi bots that need to pay gas or services. Any AI system that needs onchain payment authority without human-in-the-loop.

How it works

1. Owner registers the agent wallet address with a label and USDC budget cap. 2. Owner deposits USDC into the contract treasury. 3. The agent calls agentPay(recipient, amount) from its own wallet. 4. Contract checks: is this wallet registered? Is amount within cap? If yes, payment executes. If no, it reverts.

Owner-only actions

Register Agent and Fund Treasury require the contract deployer wallet. This is a security design — only the contract owner can whitelist agents and fund the treasury. Regular users can view registered agents but cannot modify them.

agentPay interface

// Called by the agent wallet, not the owner
function agentPay(address recipient, uint256 amount) external {
    require(agents[msg.sender] >= amount, "Flux: over cap");
    // transfers amount from treasury to recipient
}

Budget cap

The budget cap is cumulative — once an agent has spent its full cap, it cannot make further payments. The owner must register a new agent or deploy a new contract to increase the cap. This is intentional: it limits blast radius if an agent is compromised.