Skip to main content

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:
Set policies via SDK or API:
setPolicies / PUT /agents/:id/policies replaces all policies for the agent. Always include the complete policy set.

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

Reading Policies

Disabling a Policy

To temporarily disable a policy without removing it, set enabled: false and resubmit the full set: