AI agent platforms, launchpads and developers need to think critically about how they set up their wallet architecture. Why? Setting up your AI agent wallets improperly can create a honeypot that hackers can attack. Here are 4 important implementation vectors that developers need to consider:
In the article below, we will explore different implementations of AI agent wallets that ultimately fail our needs and learn why a dual key architecture maximizes security, autonomous operations, compliance and ease of use.
Building an AI agent platform is fundamentally different from building a web3 application. In a typical dApp, the user initiates every transaction. With AI agents platforms, the wallet needs to act autonomously while still giving the owner ultimate control.
This creates a triangle of competing needs:
The platform can control the wallets but that opens the platform up to risk around user trust (users can talk about how the platform can take funds out at any time), security (hackers can go after all of your agent’s wallets), and legal risk (the platform could be understood as having control over the keys and thus the wallet would be considered as custodial, which requires additional compliance obligations).
To find a solution that satisfies all 3 of these competing needs, let’s explore the other architectures that ultimately led to our solution:
Server-side keys in env variables
Managed key services
TEE Cloud
TEEs (Trusted Execution Environment) get us closer to our solution as they are hard-isolated enclaves where:
The breakthrough comes from treating wallet keys not as single entities but as authorization layers. Here's how it works:
Each agent gets a smart contract wallet with two keys:
The Owner Key functions as a master override – the owner can use it to halt the agent, withdraw funds, or modify permissions. Think of it as the emergency brake.
The Agent Key operates inside a TEE and the agent uses this key for day-to-day operations, but it can only perform actions within the boundaries set by the smart contract.
A dual key architecture is ideal for hosted agents - agent keys can’t be leaked, owner and agent retain control and the launchpad can remain non-custodial.
Dual Key Architecture requires a Smart Contract Wallet (or an account abstraction wallet), an Owner Key and an Agent Key:
The Smart Contract Wallet is a shared wallet that is implemented using ERC-4337 on EVM chains or Squads protocol on Solana. This wallet type is a single wallet which can have multiple keys.
Examples: Crossmint Agent Wallet, ZeroDev, Biconomy
The Owner Key represents the owner's ultimate control over the wallet. It is a non-custodial signer, owned by the user. It can be implemented through various mechanisms:
The Agent Key is deployed by the agent within its own TEE and is subsequently registered by the agent to the smart wallet. This key needs to:
Additional Benefits of Dual Key Architecture
In addition to maximizing security, autonomous operations, compliance and ease of use, this AI agent wallet architecture allows for:
Crossmint Agent Wallets allow developers to launch AI agent platforms and launchpads that can scale reliably to millions of users. They are fully non-custodial, which means:
Getting started is simple:
If you’re interested in building with Crossmint Agent Wallets, reach out to our sales team!