Skip to content

Latest commit

 

History

History
41 lines (29 loc) · 1.23 KB

README.md

File metadata and controls

41 lines (29 loc) · 1.23 KB

Examples

Here, you will find various examples and tutorials to help you get started with creating and deploying your own agents using XMTP.

  • gated-group: Create a gated group chat that verifies NFT ownership using Alchemy.
  • gm: A simple agent that replies with "GM".
  • gpt: A simple agent that interacts with OpenAI APIs.
  • express: Communicate with traditional api endpoints using xmtp e2ee
  • railway: A tutorial on how to deploy your agent on Railway.
  • replit: A tutorial on how to deploy your agent on Replit.

Development

# clone the repository
git clone https://github.com/ephemeraHQ/xmtp-agents/
cd xmtp-agents

# install dependencies
yarn install

# build
yarn build

# run sample agents from the examples directory
yarn examples

# or run a specific example
yarn examples gm

Use a .env file for your environment variables:

WALLET_KEY= # the private key of the wallet
ENCRYPTION_KEY= # a second fixed or random 32 bytes encryption key for the local db

Contribute

We welcome contributions! Check out the contributing file for more information on how to get started.