Agent Wallet Overview
The Lit Agent Wallet (LAW) is a toolkit for enabling designated administrators (individual users, companies, DAOs) to securely delegate wallet operations to permitted "delegatees" (such as AI agents or app developers.) The toolkit is built on top of Lit Actions and Programmable Key Pairs (PKPs), where Lit Actions are used to set the tools that delegatees can use and define the policies that dictate their permitted behavior, and PKPs for signing operations.
The full repository for the Lit Agent Wallet is available on GitHub.
Core Concepts
Admin
The Admin is the registered owner of a given Agent Wallet and has full control over how it is used and managed. They are responsible for:
- Creating and managing PKPs (Agent Wallets)
- Adding and removing delegatees
- Registering and managing tools
- Setting policies
Delegatees
Delegatees are entities that Administrators permit to execute specific operations on their behalf using their Agent Wallet. Typically, the "agent" / LLM machine is the delegatee. They:
- Must authenticate using Sign-in With Ethereum (SIWE)
- Can execute tools permitted by the Admin
- Operate within the constraints of policies set by the Admin
Tools
Tools are the building blocks of Agent Wallet functionality, represented by Lit Actions published on IPFS. They:
- Must be registered by the Admin
- Enable permitted delegatees to execute specific actions (i.e. performing a token swap or executing a smart contract)
- Execute specific operations on behalf of the Agent Wallet
Terminology
- Registered: When referring to tools from the Admin's perspective (e.g., "registered tools" are tools that have been added to the Agent Wallet by the Admin)
- Permitted: When referring to tools from the Delegatee's perspective (e.g., "permitted tools" are tools that a specific delegatee is allowed to execute)
Policies
Policies are rules that govern how delegatees can use tools. Policies are also represented by Lit Actions published on IPFS. They are called within the Tool Lit Action (Example) to enforce the policies. They:
- Are immutable once published to IPFS
- Can restrict various parameters of tool execution
- Can be enabled or disabled by the Admin
- Apply to specific delegatee-tool combinations
LAW Framework Diagram
Security Considerations
Authentication
- Admin controls ultimate access to their Agent Wallet
- Delegatees must authenticate using SIWE before they can execute permitted actions with the Admin's Agent Wallet
Smart Contract Enforcement
- Data stored within a smart contract on Lit's Chronicle Yellowstone blockchain:
- Delegatee addresses
- Tool CIDs
- Policy CIDs
- Only the Admin can update the smart contract
- Data stored within a smart contract on Lit's Chronicle Yellowstone blockchain:
Policy Enforcement
- Policies are immutable once published
- Real-time policy checking during execution
Access Control
- Granular permissions per delegatee
- Tool-level access control
Getting Started
- Admin Documentation - Learn how to set up and configure an Agent Wallet
- Delegatee Documentation - Learn how to use an Agent Wallet
- Build Your First Agent - Learn how to integrate an Agent Wallet into your own Agent (ElizaOS)
- Create New Tools - Understand how to extend functionality with custom tools