Available Policies
Sudo Policy
Full access to specific functions. Simple but powerful.
Universal Action Policy
Fine-grained parameter-level control with spending limits.
Time Range Policy
Restrict when the agent can act.
Usage Limit Policy
Cap the total number of actions.
How Policies Work
When your agent tries to execute an action:Combining Policies
Real agents typically combine multiple policies for defense in depth:Policy Selection Guide
| Your Agent Needs | Use This Policy |
|---|---|
| Full access to trusted protocol | Sudo |
| Spending limits per action | Universal Action |
| Total spending caps | Universal Action (with isLimited: true) |
| Recipient whitelisting | Universal Action |
| Time-limited access | Time Range |
| Max number of actions | Usage Limit |
| Scheduled execution windows | Time Range |
Quick Decision Tree
Security Layers
Always think in layers:| Layer | Control | Example |
|---|---|---|
| Contract | Which contracts can be called | Only Uniswap, Morpho |
| Function | Which functions are allowed | Only swap(), not approve() |
| Parameter | Rules on arguments | Max $500 per trade |
| Time | When agent can act | Next 7 days only |
| Usage | How many times | Max 50 trades |
| Gas | Max gas spend | $20 USDC for gas |