smart-accounts-kit
What it does
This skill covers the MetaMask Smart Accounts Kit, which lets dApps create smart accounts, send batched user operations, and request scoped permissions. It explains the three account types and how delegations work, for developers building wallet features.
When to use it
- βWhen you want users to have smart accounts with flexible signing options.
- βWhen you want a backend bot to act on a user's behalf using delegations.
- βWhen you want to request scoped permissions from the MetaMask extension.
Skill link
https://github.com/internet-court/internet-court-skill/blob/main/vendored/metamask/smart-accounts-kit/skill.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βI want my dApp to request a limited permission from MetaMask so a bot can act for the user.β
5 new skills a week. 1 minute to read.
How it works
The agent picks the right account type for your app, sets up the signers, and uses the kit to create, sign or redeem delegations and to request permissions. It can also set up gas sponsorship through a paymaster.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
MetaMask Smart Accounts Kit
When to use
- You want to create ERC-4337 smart accounts (Hybrid, MultiSig, or Stateless7702)
- You want to send user operations or batch transactions via bundlers
- You want to configure signers (EOA, passkey/WebAuthn, multisig, wallet client)
- You want to implement gas abstraction with paymasters
- You want to create, sign, or redeem delegations (ERC-7710)
- You want to request Advanced Permissions via MetaMask extension (ERC-7715)
- You want to build automated backend services (DCA bots, keeper services) using delegations
- You want to implement session accounts for AI agents or automated trading
- You want to set up parallel user operations with nonce keys
Installation
npm install @metamask/smart-accounts-kit permissionless
Which smart account type to use
| Name | Usage |
|---|---|
| Hybrid | A flexible account with EOA, wallet client, and passkey (WebAuthn) signers. The most flexible option for standard dApp users. |
| MultiSig | Requires multiple signers to meet a threshold before transactions execute. Best for treasury, DAO, or shared custody use cases. |
| Stateless7702 | Upgrades an existing EOA to a smart account using EIP-7702 while keeping the same address. Best for users with existing embedded EOAs. |
If the user hasn't specified which implementation they need, present the options.
Delegations vs Advanced Permissions
| Name | Usage |
|---|---|
| Delegations (ERC-7710) | You create, sign, and manage delegations programmatically. The delegator is a smart account you control. You handle the full lifecycle: creation, signing, storage, and redemption. |
| Advanced Permissions (ERC-7715) | You request permissions from a MetaMask user through a human-readable UI in the extension. MetaMask creates and enforces the delegations internally. The user can review and adjust parameters before approving. |
Advanced Permissions use delegations under the hood β ERC-7715 creates ERC-7710 delegations internally. If the user hasn't specified which to use, present the options.
API references
| Use case | Reference | Workflows |
|---|---|---|
| Create a smart account | toMetaMaskSmartAccount | Create hybrid account, Create multisig account, Create 7702 account |
| Create a delegation | createDelegation | Create delegation, Create redelegation |
| Request ERC-7715 permissions | requestExecutionPermissions | Request permissions, Redeem β smart account, Redeem β EOA |
Workflows
| Use case | Workflow |
|---|---|
| Create a Hybrid smart account | Create hybrid account |
| Create a MultiSig smart account | Create multisig account |
| Create a Stateless7702 smart account | Create 7702 account |
| Create and sign a delegation | Create delegation |
| Create a delegation chain (redelegation) | Create redelegation |
| Redeem a delegation when the delegate is a smart account | Redeem delegation β smart account |
| Redeem a delegation when the delegate is an EOA | Redeem delegation β EOA |
| Request ERC-7715 Advanced Permissions | Request permissions |
| Redelegate an ERC-7715 permission context | Create redelegation for permissions |
| Redeem ERC-7715 permissions when the session account is a smart account | Redeem permissions β smart account |
| Redeem ERC-7715 permissions when the session account is an EOA | Redeem permissions β EOA |
Important notes
- Always use caveats β never create unrestricted delegations.
- Deploy the delegator first β the account must be deployed before redeeming delegations.
- Function call scope defaults to
FAQ
Which account type suits most dApp users?
The Hybrid account, which supports EOA, wallet client and passkey signers, is described as the most flexible option.
What is the MultiSig account for?
It needs several signers to approve transactions, which suits treasury, DAO or shared custody use cases.
What is Stateless7702?
It upgrades an existing wallet to a smart account while keeping the same address.
Details
Original description by the author
Build dApps with MetaMask Smart Accounts Kit β ERC-4337 smart accounts, delegations, and Advanced Permissions (ERC-7715)
Popularity
- GitHub stars
- 7.0k
- Ranking position
- #13642
- License
- β
- Updated
- 10/26/2026
Comments
- β¦
More skills from this repository
internet-court
7.0kHelps your agent pay, hire, or deal safely with another AI agent or paid service, and points it to the right specialized guide.
genlayer-erc7710-connector
7.0kHelps your agent connect an AI review result to a permission system, so a bad review can limit or cancel an agent's permissions.
genlayer-intelligent-contracts
7.0kHelps your agent define the rules, evidence and outputs of an AI judge that checks whether another agent followed its mandate.
x402-erc7710
7.0kHelps your agent pay for web services one request at a time, and set up ongoing spending that stays within a permission budget.
Similar skills
api-connector-builder
280kHas your agent build new API connections following the existing pattern. Use when you need to add one more integration without creating a new way of doing things.
api-design
280kHelps your agent design REST APIs following best practices. It's useful for defining how APIs communicate, how errors are shown, and how to organize data.
backend-patterns
280kHelps your agent with server-side architecture patterns and database optimization. It's useful for building or reviewing code that runs on the server.