Rotate an agent

Replace an agent's key with a new one, so the old key permanently loses spending authority.

When to use this

Rotate an agent's key when replacing a departing employee's or service's credentials, responding to a suspected (not yet confirmed) key compromise, or simply as routine credential hygiene.

Steps

  1. Generate or obtain the new agent key or wallet address. As always, PolicyVault never generates or holds a private key for you — that happens entirely in your own infrastructure or wallet.
  2. Decide whether the new key should carry the same policy (per-transaction limit, budget, allowlist, approval threshold) as before, or whether you want to adjust it at the same time.
  3. From the vault's agent configuration, choose to rotate/replace the agent's key, supplying the new key and (if changed) the updated policy.
  4. Review and sign. This is an owner-signed covenant operation.
  5. Confirm on-chain. Once confirmed, the old key has no further spending authority on this vault — this is enforced by the covenant, not by the application simply no longer using the old key.

After rotating

If you suspect the old key is actively compromised

Rotation removes future authority immediately once confirmed on-chain, but consider pausing the vault first if you want to stop all spending (including from other agents, if any) while you investigate, then rotate once you've confirmed what happened.

See also: Agent rotation, Pause/revoke.