Installation
This guide walks you through the process of setting up the Ava Portfolio Manager system locally for development or personal use.
Prerequisites
Before you begin, ensure you have the following prerequisites installed:
Node.js: Version 18.x or higher
Bun: Version 1.x or higher (recommended for optimal performance)
Git: For cloning the repository
Docker (optional): For containerized deployment
You will also need API keys for various services:
OpenAI API Key: For AI capabilities
Groq API Key: For Move Agent capabilities
Blockchain RPC URLs: For interacting with various blockchains
Protocol-specific API Keys: Depending on which agents you plan to use
System Requirements
CPU: 4+ cores recommended
RAM: Minimum 8GB, 16GB+ recommended
Storage: 1GB for the codebase, additional space for dependencies and database
Operating System: macOS, Linux, or Windows with WSL
Installation Steps
1. Clone the Repository
2. Set Up Environment Variables
Create environment files for both the frontend and server:
Edit both .env
files to include your API keys and configuration.
Server Environment Variables
Required variables include:
Frontend Environment Variables
Required variables include:
3. Install Dependencies
Install dependencies for both the server and frontend:
4. Build the Project
Build both the server and frontend:
5. Start the Development Servers
For development, you can run both the server and frontend in development mode:
For production, use:
Docker Deployment (Optional)
For containerized deployment, you can use Docker:
The Docker setup includes:
Node.js container for the server
Node.js container for the frontend
Redis container for caching and message queue (optional)
MongoDB container for storage (optional)
Verifying Installation
After starting both the server and frontend, you can verify the installation:
Open your browser and navigate to
http://localhost:3000
You should see the Ava Portfolio Manager welcome page
Check the server logs to ensure all agents initialized successfully
Try sending a simple query to the system via the chat interface
Common Issues and Troubleshooting
API Key Issues
If you see authentication errors in the logs, double-check your API keys in the environment files.
Connection Errors
If the frontend cannot connect to the server:
Ensure the server is running on the expected port
Check that the
NEXT_PUBLIC_API_URL
is set correctlyVerify network connections if running in containers
Agent Initialization Failures
If certain agents fail to initialize:
Check the specific environment variables for that agent
Look for detailed error messages in the server logs
Some agents may require additional configuration or services
Memory Issues
If you encounter out-of-memory errors:
Increase the Node.js memory limit:
NODE_OPTIONS=--max-old-space-size=4096
Consider running only the agents you need by modifying the configuration
Next Steps
Once you have successfully installed Ava Portfolio Manager, you can:
Configure your environment for optimal performance
Learn about your first steps with the system
Explore advanced usage scenarios
Check out the developer documentation to extend the system
Last updated