Installation¶
Get AgentX up and running on your local machine.
Prerequisites¶
Before installing AgentX, ensure you have:
- Python 3.10+ - For the Django API
- Node.js 18+ - For the Tauri client
- Docker & Docker Compose - For database services
- uv - Python package manager (installation guide)
- bun - Fast JavaScript runtime (installation guide)
- Task - Task runner (installation guide)
Quick Install¶
1. Clone the Repository¶
2. Install Dependencies¶
This command will:
- Install Python dependencies via
uv sync - Install client dependencies via
bun install - Install concurrently for running multiple services
3. Initialize Databases¶
This creates the required data directories for:
- Neo4j graph database
- PostgreSQL with pgvector
- Redis cache
4. Start Development Environment¶
This will:
- Start Docker containers (Neo4j, Postgres, Redis)
- Launch Django API on
http://localhost:12319 - Launch Tauri development window
Verify Installation¶
Check API¶
Expected response:
Check Databases¶
# Neo4j Browser
open http://localhost:7474
# Redis Commander (optional GUI)
open http://localhost:8081
Default credentials (from .env.example):
- Neo4j:
neo4j/changeme - PostgreSQL:
agent/changeme
Change default passwords
Update passwords in your .env file before deploying to production.
Manual Installation¶
If you prefer to install components individually:
Python API¶
# Install dependencies
uv sync
# Run migrations
task api:migrate
# Start API server
task api:runserver
Tauri Client¶
Database Services¶
# Start all databases
task runners
# Or start individually
docker-compose up -d neo4j
docker-compose up -d postgres
docker-compose up -d redis
Troubleshooting¶
Port Conflicts¶
If ports are already in use, modify docker-compose.yml:
- Neo4j: 7474 (browser), 7687 (bolt)
- PostgreSQL: 5432
- Redis: 6379
- Django API: 12319
- Vite dev server: 1420
Missing Data Directories¶
If you see errors about missing data directories:
This will show which directories are missing and how to fix them.
Docker Volume Migration¶
If you have existing data in Docker volumes:
This migrates data from Docker volumes to local bind mounts in ./data/.
Next Steps¶
- Quick Start Guide - Learn basic usage
- Configuration - Customize your setup
- Development Setup - Set up for development