1
Choose your control model
Privy supports two primary models for agentic wallets depending on your custody and control requirements:Model 1: Agent-controlled, developer-owned wallets
- Your application backend controls the wallet via authorization keys
- Suitable for fully autonomous agents where users delegate complete control
- Agent can execute transactions within policy constraints without user approval
- Users maintain ownership while granting limited permissions to agents
- Agent operates as an additional signer with scoped policies
- Users retain ultimate control and can revoke agent access at any time
2
Create authorization keys
Set up authorization keys that your application backend will use to control agent wallets.To start, create authorization keys in the Privy Dashboard and securely store the corresponding private keys. Your backend will use these keys to sign requests to Privy’s API on behalf of agents.For enhanced security, register the authorization keys in a key quorum. This enables multi-party approval for critical actions like updating policies or exporting wallets.
3
Define agent policies
Policies are critical as they define the boundaries within which your AI agents can operate. Well-designed policies prevent agents from taking unintended or harmful actions while allowing them to function effectively.Common policy constraints for agents include:
- Transfer limits: Maximum amounts per transaction or within time windows
- Allowlisted contracts: Restrict agents to interact only with approved protocols
- Recipient restrictions: Limit where funds can be sent
- Time-based controls: Define when agents can operate
- Action-specific rules: Control parameters for swaps, trades, or other operations
id to assign the policy to the wallet(s) you create later.4
Create the agent wallet
Create a wallet owned by your authorization key, with the policies you previously defined attached. Make sure to:
- Set the
owner_idof the wallet to theidof the authorization key you created earlier - Set the
policy_idsarray of the wallet to a singleton containing theidof the policy you created earlier
5
Execute transactions
You can now send transactions, sign transactions, or sign messages with Privy’s API. Follow the guide below to send a transaction.
6
Monitor and observe agent behavior
Implement monitoring and logging to track your agent’s actions and ensure it operates as intended. Privy provides webhooks for transaction events and balance changes.

