Elizaos Plugin
elizaos-plugin-mefs is a plugin designed to provide decentralized storage functionality for elizaos agents. This plugin allows agents to interact with MEFS, a decentralized storage network, providing file upload and retrieval capabilities.
Installation
Install via bun
bun install @elizaos/plugin-mefsInstall via elizaos cli
elizaos plugins add @elizaos/plugin-mefsConfiguration
Add the plugin to your elizaos agent character:
// agent/src/character.ts export const character: Character = { name: 'Eliza', plugins: [ '@elizaos/plugin-mefs', ], ... };Set environment variables by adding the following to your .env file:
MEFS_PRIVATE_KEY=<YOUR-PRIVATE-KEY>Replace YOUR-PRIVATE-KEY with your EVM private key. You can use EVM wallets such as MetaMask or Okx Wallet to create a wallet and obtain your private key.
Build And Run
Build and start the project from the project root directory
You can now open http://localhost:3000 in your browser to access your dedicated AI agent
Actions
STORAGE_UPLOAD
Use this action when users want to upload files or AI agent-generated responses to the Storacha decentralized storage network.
Aliases
UPLOADSTORESAVEPUTPIN
STORAGE_RETRIEVE
Use this action when users request you to retrieve files from the Storacha network based on CID.
Aliases
RETRIEVERETRIEVE_FILERETRIEVE_FILE_FROM_STORAGERETRIEVE_FILE_FROM_IPFSGETGET_FILEGET_FILE_FROM_STORAGEGET_FILE_FROM_IPFSGET_FILE_FROM_CIDLOADLOAD_FILELOAD_FILE_FROM_STORAGELOAD_FILE_FROM_IPFSLOAD_FILE_FROM_CIDREADREAD_FILEREAD_FILE_FROM_STORAGEREAD_FILE_FROM_IPFSREAD_FILE_FROM_CID
Last updated