Installation
This guide will help you install and configure AIV Platform on your system.
Prerequisites
- Node.js 18.0 or higher
- npm 9.0 or higher (comes with Node.js)
- Git (for cloning the repository)
Optional Dependencies
- Docker - For running containerized agents
- Azure CLI - For Azure OpenAI integration
Installation Methods
Method 1: npm (Recommended)
bash
# Install globally
npm install -g @aiversum/aiv
# Verify installation
aiv --versionMethod 2: From Source
bash
# Clone the repository
git clone https://github.com/aiversum/aiv.git
cd aiv
# Install dependencies
npm install
# Build
npm run build
# Link globally
npm linkMethod 3: Development Mode
bash
# Clone and install
git clone https://github.com/aiversum/aiv.git
cd aiv
npm install
# Run in development mode
npm run devInitial Setup
After installation, run the onboarding wizard:
bash
aiv --setupThe wizard will guide you through:
- Provider Configuration - Set up Anthropic, Azure, or OpenRouter
- Workspace Setup - Configure your working directory
- MCP Servers - Enable optional integrations
- Validation - Test your configuration
Manual Configuration
If you prefer manual setup, create these files:
~/.aiv/config.json
json
{
"defaultProvider": "anthropic",
"anthropic": {
"model": "claude-sonnet-4-20250514"
},
"workspace": "/path/to/your/workspace"
}~/.aiv/.env
bash
# Anthropic
ANTHROPIC_API_KEY=sk-ant-...
# Or Azure OpenAI
AZURE_OPENAI_ENDPOINT=https://your-resource.openai.azure.com
AZURE_OPENAI_KEY=...
# Or OpenRouter
OPENROUTER_API_KEY=sk-or-...Security
The .env file should have restricted permissions:
bash
chmod 600 ~/.aiv/.envVerify Installation
Run the following commands to verify everything is working:
bash
# Check version
aiv --version
# Test provider connection
aiv "Hello, world!"
# Check configuration
aiv
> /configNext Steps
- Quick Start Guide - Run your first agent
- Configuration Reference - All config options
- First Agent Tutorial - Create a custom agent
Troubleshooting
Common Issues
"ANTHROPIC_API_KEY not found"
bash
# Check if .env file exists and has the key
cat ~/.aiv/.env
# Or export directly
export ANTHROPIC_API_KEY=sk-ant-..."Permission denied"
bash
# Fix permissions
chmod 700 ~/.aiv
chmod 600 ~/.aiv/.env
chmod 600 ~/.aiv/config.json"Node.js version too old"
bash
# Check version
node --version
# Use nvm to install newer version
nvm install 20
nvm use 20Getting Help
- Run
aiv --helpfor command-line options - Check GitHub Issues
- Join our community chat