What is a Session Key?
A temporary cryptographic key granting an AI agent limited, time-bound permission to sign transactions from a smart account. Session keys expire automatically and restrict what operations the agent can perform.
WHY IT MATTERS
Giving an agent the master key to a smart account is like giving them the keys to the vault. Session keys are temporary passes — they grant specific, limited signing authority that expires.
A session key might allow: USDC transfers only, up to $500 per transaction, for the next 4 hours, only to approved addresses. The smart account validates each transaction against these constraints before accepting the signature.
Session keys are native to smart accounts (ERC-4337) and represent one of the strongest on-chain mechanisms for controlling agent spending.
HOW POLICYLAYER USES THIS
PolicyLayer uses session keys to grant agents temporary, scoped spending authority. Sessions keys provide on-chain enforcement while PolicyLayer adds off-chain policy richness.