| sidebar_label | Install and set up | ||||||
|---|---|---|---|---|---|---|---|
| description | Learn how to install and set up the MetaMask Smart Accounts Kit. | ||||||
| keywords |
|
import Tabs from "@theme/Tabs"; import TabItem from "@theme/TabItem"; import GlossaryTerm from '@theme/GlossaryTerm';
This page provides instructions to install and set up the Smart Accounts Kit in your dapp, enabling you to create and interact with MetaMask Smart Accounts.
- Install Node.js v18 or later.
- Install Yarn, npm, or another package manager.
- If you plan to use any smart contracts (for example, to create a custom caveat enforcer), install Foundry.
Install the Smart Accounts Kit:
npm install @metamask/smart-accounts-kitIf you plan to extend the smart contracts (for example, to create a custom caveat enforcer), install the contract package using Foundry's command-line tool, Forge:
forge install metamask/delegation-framework@v1.3.0Add @metamask/delegation-framework/=lib/metamask/delegation-framework/ in your remappings.txt file.
You're now ready to start using the Smart Accounts Kit. See the MetaMask Smart Accounts quickstart to walk through a simple example.