### Install XMTP Plugin with pnpm Source: https://github.com/elizaos-plugins/plugin-xmtp/blob/1.x/README.md This command installs the `@elizaos/plugin-xmtp` package using pnpm, adding it as a dependency to your project. This is the standard method for incorporating the plugin into your ElizaOS application. ```bash pnpm add @elizaos/plugin-xmtp ``` -------------------------------- ### Automated XMTP Plugin Setup with ElizaOS CLI Source: https://github.com/elizaos-plugins/plugin-xmtp/blob/1.x/README.md This command utilizes the ElizaOS command-line interface (CLI) to automatically add and configure the `@elizaos/plugin-xmtp` plugin to your project. This method simplifies the setup process by handling dependencies and basic integration. ```bash elizaos add plugins @elizaos/plugin-xmtp ``` -------------------------------- ### Manually Initialize XMTP Plugin in ElizaOS Project Source: https://github.com/elizaos-plugins/plugin-xmtp/blob/1.x/README.md This TypeScript/TSX snippet demonstrates how to manually integrate the XMTP plugin into an ElizaOS project agent. It imports the `xmtpPlugin` and adds it to the `plugins` array of the `projectAgent` configuration, allowing for custom setup. ```tsx import { xmtpPlugin } from "@elizaos/plugin-xmtp"; import { character } from "./character"; export const projectAgent: ProjectAgent = { character, init: async (runtime: IAgentRuntime) => await initCharacter({ runtime }), plugins: [xmtpPlugin], }; ``` -------------------------------- ### XMTP Plugin Environment Variables Configuration Source: https://github.com/elizaos-plugins/plugin-xmtp/blob/1.x/README.md This snippet outlines the essential environment variables required to configure the XMTP plugin. It includes settings for the wallet's private key, the type of signer to use (SCW or EOA), an optional chain ID for smart contract wallets, and the XMTP environment (dev, local, production). ```env WALLET_KEY= // the private key of the wallet XMTP_SIGNER_TYPE= // the type of signer to use (SCW or EOA) XMTP_SCW_CHAIN_ID= // (optional) the chain id for smart contract wallet XMTP_ENV= // (optional) XMTP environment (dev, local, production) ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.