Caution
This repository is no longer maintained. For the latest guidance on building agents with XMTP, see the xmtp-agent-examples project.
The documentation below is provided for historical reference only.
This agent replies gm
to all messages.
- Node.js v20 or higher
- Next.js v14 or higher
- Yarn v4 or higher
To run your XMTP agent, you must create a .env
file with the following
variables:
WALLET_KEY= # the private key of the wallet
ENCRYPTION_KEY= # encryption key for the local database
XMTP_ENV=dev # local, dev, production
# git clone repo
git clone https://github.com/xmtp/xmtp-nextjs-app.git
# go to the folder
cd xmtp-nextjs-app
# install packages
yarn
# run the agent
yarn dev