Skip to main content
Agents act autonomously, so the wallet must enforce the owner’s rules even when the agent misbehaves. Privy evaluates every request against its policies inside a secure enclave before signing. A compromised agent or a modified client cannot bypass them.

Ownership and access

Every Privy wallet has an owner and optional signers. The owner can change the wallet’s policies and signers. Signers can only transact, within their policies. Choose how much authority the agent holds:
  • Agent-owned: Your app creates the wallet and owns it with an authorization key. The agent transacts within the wallet’s policies without prompting a user.
  • Delegated with a signer key: The user stays the owner and adds the agent’s key as a signer with its own policies. The user can remove the signer at any time.
  • Delegated with Agent Authorization: The user approves the agent once in a browser. The agent gets short-lived access tokens instead of a long-lived key. The Privy Agent Wallet Sandbox uses Agent Authorization.
To keep an agent from changing its own limits, make the owner a key quorum. Sensitive actions, such as updating policies, then require approval from multiple parties.

Limit what an agent can do

Attach policies to an agent wallet, or to the agent’s signer on a user’s wallet. Common agent guardrails include:
  • Spending limits: Cap the amount per transaction, or over a rolling window with stateful policies.
  • Recipient allowlists: Restrict transfers and payouts to approved addresses and bank accounts.
  • Contract allowlists: Limit the agent to approved protocols and merchants.
  • Chain and asset restrictions: Keep the agent on the chains and stablecoins your app supports.
  • Sanctions screening: Deny x402 payments to sanctioned addresses before they are signed.
Wallet actions such as transfers and payouts support policies on their request fields. See transfer policies for an example that caps amount, asset, chain, and destination.

Create a policy

Define rules with Privy’s policy language.

Stateful policies

Enforce cumulative limits over time windows.