Configuring Policies
Steward’s policy engine enforces rules on every agent action. This guide covers all policy types, common patterns, and best practices.Policy Basics
Policies are JSON objects with this structure:Policy Types Reference
spending-limit
Controls the maximum value an agent can transact.Values are in wei (1 ETH = 10^18 wei). For Solana, values are in lamports (1 SOL = 10^9 lamports). Steward tracks cumulative spend per agent.
approved-addresses
Whitelist of addresses the agent can send transactions to.auto-approve-threshold
Transactions below this value are auto-approved; above enters the approval queue.rate-limit
Controls transaction frequency.time-window
Restricts when the agent can transact.allowed-chains
Restricts which blockchain networks the agent can use.Common Patterns
Conservative Trading Agent
Conservative Trading Agent
Read-Only Agent (No Signing)
Read-Only Agent (No Signing)
High-Frequency Agent
High-Frequency Agent
Reading Policies
Disabling a Policy
To temporarily disable a policy without removing it, setenabled: false and resubmit the full set:
Related
- Policy Engine Concepts — How the engine works
- Agent Setup — Creating agents with policies
- Policies API — REST API reference