MetaMask Smart Accounts Kit for Openclaw

A specialized toolkit for building Web3 dApps featuring ERC-4337 smart accounts, transaction batching, and granular delegation frameworks.

ayushbherwani1998
v1.0.6
Feb 10, 2026
1
2.6k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install smart-accounts-kit

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install smart-accounts-kit using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is MetaMask Smart Accounts Kit?

The MetaMask Smart Accounts Kit is a powerful suite of tools designed to simplify Web3 development through account abstraction and advanced permissioning. By leveraging this toolkit within the context of Openclaw Skills, developers can seamlessly integrate ERC-4337 smart accounts, implement gas abstraction with paymasters, and utilize the Delegation Framework for secure, scoped permissions.

This skill enables the creation of flexible account structures including Hybrid, MultiSig, and Stateless7702 implementations. It is particularly valuable for developers building sophisticated decentralized applications that require seamless user onboarding, automated transaction execution, and high-level security via programmable caveats and enforcers. Integrating these features into your project using Openclaw Skills ensures a modern, developer-friendly approach to account management.

MetaMask Smart Accounts Kit Use Cases

  • Developing gasless dApp experiences where applications pay for user transaction fees via paymasters.
  • Enabling AI agents to perform on-chain actions through secure, ephemeral session accounts.
  • Creating hierarchical permission structures for DAOs and treasury management systems.
  • Managing complex user permissions via ERC-7715 for improved UI and UX in wallet interactions.
  • Building automated trading or DCA bots that execute based on time-based caveats.

How MetaMask Smart Accounts Kit Works

  1. Select and initialize a smart account implementation such as Hybrid or MultiSig using the toolkit core methods.
  2. Configure account parameters, including signers (EOA, Passkey) and deployment salts, to establish the user on-chain identity.
  3. Define delegations with specific scopes and security caveats to restrict execution authority for delegates.
  4. Generate and sign delegations which can then be stored or passed to delegates for future execution.
  5. Execute or redeem transactions via User Operations sent to an ERC-4337 bundler or directly through an EOA using encoded redemption calldata.

MetaMask Smart Accounts Kit Setup

To get started with this toolkit as part of your Openclaw Skills library, install the core kit via npm:

npm install @metamask/[email protected]

For custom caveat enforcers and contract-level integration, install the delegation framework:

forge install metamask/[email protected]

MetaMask Smart Accounts Kit Data Schema & Taxonomy

The skill manages data across several key structures to ensure security and interoperability within the Web3 ecosystem:

Data Component Description
Smart Account Types Supports Hybrid (EOA+Passkey), MultiSig (Safe-compatible), and Stateless7702 (EOA upgrade) implementations.
Delegation Lifecycle Tracks delegations through creation, signing, storage, and redemption states.
Caveat Enforcers Organizes security restrictions by target address, method selectors, value limits, and time ranges.
Execution Modes Defines how transactions are processed across chains, including SingleDefault and BatchTry modes.

MetaMask Smart Accounts Kit Advanced Features

  • Parallel User Operations: Support for independent execution streams via 256-bit nonce structures to prevent sequence bottlenecks.
  • Session Accounts for AI Agents: Implementation of ephemeral signers that operate within strict, pre-signed delegation constraints.
  • Counterfactual Deployment: Automated account deployment triggered by the first transaction redemption using initCode.
  • Multi-Chain Interleaving: Batch execution modes designed for complex interleaved transaction processing across multiple chains.
  • ERC-7715 Integration: Seamlessly request and manage advanced permissions through the MetaMask Flask extension.

SKILL.md


Loading

Related Openclaw Skills

Featured*