Enterprise Messari AI Toolkit Integration for Eliza OS v1.0.9
This plugin integrates Messari's enterprise AI Toolkit with Eliza OS, enabling your agents to provide comprehensive crypto market research capabilities through advanced AI-powered insights.
- 🔍 Intelligent Research Detection: Automatically identifies crypto market research questions
- 📊 Market Analysis: Access to comprehensive cryptocurrency data and metrics
- 🤖 AI-Powered Responses: Leverages Messari's enterprise AI models for accurate insights
- ⚡ Seamless Integration: Works with any Eliza OS v1.0.9+ agent
- 🔒 Enterprise-Grade: Built for professional use with API key authentication
- Eliza OS: v1.0.9 or higher
- Node.js: v18+
- Messari API Key: Enterprise access required
# Add to your Eliza project
elizaos plugins add @elizaos-plugins/plugin-messari-ai-toolkit
pnpm add github:messari/plugin-messari-ai-toolkit
Add the following environment variables to your .env
file:
# REQUIRED: Messari API Configuration
MESSARI_API_KEY=your_messari_enterprise_api_key_here
# OPTIONAL: Core Eliza Configuration
LOG_LEVEL=info
ELIZAOS_LOG_LEVEL=info
# OPTIONAL: Advanced Logging (for debugging)
DEBUG=eliza:*
ELIZA_DEBUG=true
Add the plugin to your project agent configuration:
import { messariPlugin } from "@elizaos-plugins/plugin-messari-ai-toolkit";
import { ProjectAgent, IAgentRuntime } from "@elizaos/core";
export const projectAgent: ProjectAgent = {
character,
init: async (runtime: IAgentRuntime) => await initCharacter({ runtime }),
plugins: [messariPlugin],
};
Once configured, your agent will automatically detect crypto research questions and provide intelligent responses using Messari's AI Toolkit.
User: "What are the top 10 L2s by fees?"
Agent: [Provides detailed Layer 2 analysis with current fee data]
User: "Show me ETH price trends"
Agent: [Returns comprehensive Ethereum price analysis]
User: "What's the TVL of Arbitrum?"
Agent: [Gives current Total Value Locked data for Arbitrum]
# Install dependencies
pnpm install
# Build the plugin
pnpm build
# Development mode with auto-rebuild
pnpm dev
# Run tests
pnpm test
# Run with coverage
pnpm test:coverage
-
API Key Not Found
Error: Messari API key not found in runtime settings
Solution: Ensure
MESSARI_API_KEY
is set in your.env
file -
Plugin Not Loading
Error: Plugin messariAiToolkit failed to load
Solution: Verify the plugin is listed in your character's
plugins
array -
No Research Questions Detected
- Ensure your questions are crypto/market related
- Check that the copilot provider is properly initialized
- Enable debug logging to see question processing
Enable detailed logging for troubleshooting:
# In your .env file
LOG_LEVEL=debug
DEBUG=eliza:plugin-messari:*
ELIZA_DEBUG=true
# Or set when running
LOG_LEVEL=debug elizaos start --character your-character.json
The plugin automatically detects and processes:
- Market Data Requests: Price, volume, market cap queries
- Protocol Analytics: TVL, fees, user metrics
- Comparative Analysis: Rankings, comparisons between protocols
- Historical Data: Trends, historical performance
- Token Information: Specific cryptocurrency details
- API Key Protection: Credentials are securely stored in environment variables
- Request Validation: All API requests are validated before processing
- Error Handling: Sensitive information is never exposed in error logs
- Rate Limiting: Respects Messari API rate limits
We welcome contributions! Please see our Contributing Guidelines for details.
This project is licensed under the MIT License - see the LICENSE file for details.
- Messari: https://messari.io
- Eliza OS: https://github.com/elizaOS/eliza
- Plugin Registry: Eliza Plugins
- Issues: GitHub Issues
- Discord: Eliza Community
- Documentation: Eliza Plugin Docs
Made with ❤️ for the Eliza OS ecosystem