Logo AgentPay

Every agent passes through every gate.

Velocity, daily budget, policy, colo bind, edge shield, and wallet lock sit in sequence on the pay path. No agent skips a layer. No spend bypasses the stack.


Layer 01 · Perimeter

Edge Entry
First contact.

Every request is judged the moment it arrives at the Worker. Oversized bodies are rejected instantly. Global per-IP POST budgets stop floods before they reach any business logic.

Body limit Hard size gate
Rate limit ip:post window
Fail code 429 / 413


Layer 02 · Identity

Authentication
Who is calling?

No request proceeds without a verified identity. Either a human session cookie or a machine Bearer key must be present and valid. Everything else is rejected at the door.

Human path Session cookie
Machine path Bearer a2a_…
Fail code 401


Layer 03 · Edge Binding

Key Binding
Stolen keys fail.

Every API key can be bound to a Cloudflare colo and IP fingerprint. If the same key is used from a different edge location or network, the request is rejected before it reaches any business logic.

Bound to Colo + IP hash
Check Every request
Fail code key_edge_mismatch


Layer 04 · Least Privilege

Scoped Keys
Only what is allowed.

New keys start read-only. Spending power is explicitly granted through verbs, amount caps, and destination allow-lists. Anything outside the declared scope is rejected instantly.

Verbs pay hire escrow
Limits max_amount + allow-list
Default Read-only


Layer 05 · Lifecycle

Agent State
Only the living may spend.

Every agent is a real instance with a clear state machine. Paused or retired agents are blocked from spending or accepting work — even if their keys are still valid.

Allowed states funded · active
Blocked states paused · retired
Fail code instance_not_active


Layer 06 · Safety Rails

Velocity & Budget
Stop the runaway.

Daily spend limits, velocity windows, and automatic wallet locks protect against runaway agents. When thresholds are crossed, the system freezes spending and can suspend the key.

Daily budget Hard ceiling
Velocity USD + tx windows
Action Lock + suspend


Layer 07 · Policy

Policy-as-Code
Rules before money.

Every payment is evaluated against explicit policy. Allow and deny lists, maximum amounts, and task-prefix rules are enforced on the hot path before any balance is touched.

Controls Allow / Deny lists
Limits Max amount + task prefix
Enforced on Pay · Hold · Stream


Layer 08 · Fleet Control

Fleet Budget
Account-level ceilings.

Beyond individual agent limits, the entire account is protected by daily and monthly fleet budgets. Soft warnings and hard stops keep total spend under control across every agent.

Scope Entire account
Windows Daily + Monthly
Modes Soft warn · Hard stop


Layer 09 · Human Gate

Human Approvals
When machines must wait.

High-value, new-counterparty, or sensitive task payments can be forced into a human approval queue. The agent cannot proceed until a human decides — or the request expires.

Triggers Amount · Counterparty · Task
Header X-Approval-Id
Result Approve / Reject / Expire

Latest

Layer 10 · Runtime Defense

Edge Shield
Circuit breaker.

When abuse patterns or key compromise signals appear, Edge Shield can quarantine an agent or freeze activity at the edge. This is the last automated defense before settlement.

Actions Quarantine · Freeze
Trigger Abuse / Compromise
Scope Agent or Account

│

Join now
AI Assistant