Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Rohit-KK15/MetaVault-AI/llms.txt
Use this file to discover all available pages before exploring further.
Overview
MetaVault AI requires configuration across three packages. Each package has its own.env file with specific settings.
Contracts Configuration
The contracts package requires minimal configuration for deployment.Configuration Reference
Private key of the wallet that will deploy contracts.For local development, use one of Hardhat’s test account private keys.
Your Infura API key for connecting to Ethereum networks.Only required for testnet or mainnet deployments. Get one at infura.io.
AI Agents Configuration
The agents package requires the most configuration, including API keys and contract addresses.Configure Core Settings
Configuration Reference
Enable debug logging for the ADK framework.Set to
"true" to see detailed framework logs.Your OpenRouter API key for AI model access.The agents use OpenRouter to access LLM models like Claude.
The LLM model to use for AI agents.See OpenRouter models for available options.
Port for the main agent server.
Port for the chat agent server.
Ethereum RPC endpoint URL.Use
http://127.0.0.1:8545 for local Hardhat node.Private key for the agent’s wallet to sign transactions.
Address of the deployed MetaVault contract.
Address of the deployed Router contract.
Address of the Aave Leverage Strategy contract.
Address of the Aave V3 Strategy contract.
Address of the LINK token (or mock LINK for testing).
Address of the mock Aave pool contract.
Token for your Telegram bot.Optional. Used for sending strategy alerts and notifications.
Telegram channel or chat ID for notifications.Optional. Where the bot will send messages.
Frontend Configuration
The frontend requires contract addresses to interact with the blockchain.Configuration Reference
Ethereum RPC endpoint (not exposed to browser).
Private key for server-side operations (not exposed to browser).
URL of the AI agent server API.Should match the PORT configured in the agents package.
Address of the MetaVault contract (exposed to browser).
Address of the Router contract (exposed to browser).
Address of the Aave Leverage Strategy contract (exposed to browser).
Address of the Aave V3 Strategy contract (exposed to browser).
Address of the LINK token contract (exposed to browser).
Environment-Specific Configuration
- Local Development
- Testnet
- Mainnet
Use Hardhat’s local network:Use Hardhat’s first test account:
Validation
After configuration, verify your setup:Troubleshooting
Invalid RPC URL
Invalid RPC URL
Ensure your Hardhat node is running:
Contract Address Not Found
Contract Address Not Found
Make sure you’ve deployed the contracts:Copy the addresses from the deployment output to your
.env files.OpenRouter API Error
OpenRouter API Error
Verify your OpenRouter API key is correct and has credits.Check your account at openrouter.ai.
Port Already in Use
Port Already in Use
Change the PORT variables in your configuration:
Next Steps
Architecture
Understand how MetaVault AI components work together
AI Agents
Learn about the AI agents managing your vault