Installation Guide¶
Prerequisites¶
- Python 3.12
- Relevant API keys (for simplest setup, set
OPENAI_API_KEYorANTHROPIC_API_KEY) - SQLite (included with Python; sqlite-vec will be installed automatically)
By default, Elroy uses SQLite. To use a custom database path, set ELROY_DATABASE_URL or the database_url config value.
Option 1: Using Install Script (Recommended)¶
This will: - Install uv if not already present - Install Python 3.12 if needed - Install Elroy in an isolated environment - Add Elroy to your PATH
This install script is based on Aider's installation script
Option 2: Using UV Manually¶
Prerequisites¶
- Python 3.12
-
Relevant API keys (for simplest setup, set
OPENAI_API_KEYorANTHROPIC_API_KEY) -
Install UV:
-
Install and run Elroy:
Option 3: Using Docker¶
Prerequisites¶
-
Docker and Docker Compose
-
Download the docker-compose.yml:
-
Run Elroy:
# to ensure you have the most up to date image docker compose build --no-cache docker compose run --rm elroy # Pass through all environment variables from host docker compose run --rm -e OPENAI_API_KEY -e ANTHROPIC_API_KEY elroy # Or pass specific environment variable patterns docker compose run --rm -e "ELROY_*" -e "OPENAI_*" -e "ANTHROPIC_*" elroy
The Docker image is publicly available at ghcr.io/elroy-bot/elroy.
Option 4: Installing from Source¶
Prerequisites¶
- Python 3.12
- uv package manager (install with
curl -LsSf https://astral.sh/uv/install.sh | sh) - Relevant API keys (for simplest setup, set
OPENAI_API_KEYorANTHROPIC_API_KEY)
# Clone the repository
git clone --single-branch --branch stable https://github.com/elroy-bot/elroy.git
cd elroy
# Create virtual environment and install dependencies
uv venv
source .venv/bin/activate # On Unix/macOS
# or
.venv\Scripts\activate # On Windows
# Install dependencies and the package
uv pip install -e .
# Run Elroy
elroy