Experimental. Creates ZeroDev Kernel smart wallets on Arbitrum (ERC-4337, EntryPoint 0.7) and applies programmable spending policies via session keys. Use when an AI agent needs an autonomous onchain wallet with constrained spending permissions on Arbitrum.
Experimental. Not for production. Not audited.
Two things only:
Required:
ZERODEV_RPC from https://dashboard.zerodev.app (your project RPC URL)AGENT_PRIVATE_KEY master ECDSA key (0x-prefixed)Optional:
ARBITRUM_NETWORK set to or (default: )mainnetsepoliasepolia# Initial setup
agentic-wallet init
# Create wallet + apply conservative policy
agentic-wallet create --policy conservative --expires 24h
# Restrict to specific contracts
agentic-wallet create --policy defi-standard --targets 0xUniswap,0xAave
import { createAgentWallet, applyPolicy } from 'agentic-wallet-arbitrum'
const wallet = await createAgentWallet()
const session = await applyPolicy(wallet, 'conservative')
// session.privateKey + session.serialized -> pass to agent runtime
// session.address -> log freely
// wallet.address -> the agent's onchain identity
| Preset | ETH limit | Max ops |
|---|---|---|
| conservative | 0.01 ETH | 10 |
| defi-standard | 0.5 ETH | 100 |
| unrestricted | none | none |
The master key (AGENT_PRIVATE_KEY) is used only during setup to create the
wallet and sign session key approvals. The agent runtime never sees it.
The agent uses session.privateKey and session.serialized only.