Skip to content

agensai policy

Inspect, add, or remove policies on an existing agent. Adding a policy is an onchain transaction.

agensai policy add

agensai policy add my-agent.agensai.eth \
  --type rate --count 5 --period hourly

Append a new policy to the active bundle.

agensai policy ls

agensai policy ls my-agent.agensai.eth

List active policies.

agensai policy remove

agensai policy remove my-agent.agensai.eth --id <policy-id>

Revoke a single policy without revoking the entire agent. The policy ID is shown by policy ls.

To kill every policy at once, use agensai revoke.