# aide — environment variables
# Copy this file to .env and fill in your values.
# Never commit .env to version control.

# Master password for the encrypted credential store (required)
# Choose a strong passphrase — all credentials are encrypted with this.
DB_MASTER_PASSWORD=change-me-to-a-strong-passphrase

# Server port
PORT=8080

# Default model pre-selected in chat UI (leave empty to use the first available model)
# DEFAULT_CHAT_MODEL=claude-sonnet-4-6

# Main app database — PostgreSQL (shared postgres service)
AIDE_DB_URL=postgresql://aide:change-me@postgres:5432/aide

# 2nd Brain — PostgreSQL (pgvector)
BRAIN_DB_PASSWORD=change-me-to-a-strong-passphrase
# Connection string — defaults to the docker-compose postgres service
BRAIN_DB_URL=postgresql://brain:${BRAIN_DB_PASSWORD}@postgres:5432/brain
# Access key for the MCP server endpoint (generate with: openssl rand -hex 32)
BRAIN_MCP_KEY=

# Brain backup (scripts/brain-backup.sh)
# BACKUP_DIR=/opt/aide/backups/brain        # default: <project>/backups/brain
# BRAIN_BACKUP_KEEP_DAYS=7                  # local retention in days
# BACKUP_OFFSITE_HOST=user@de-backup.example.com
# BACKUP_OFFSITE_PATH=/backups/aide/brain
# BACKUP_OFFSITE_SSH_KEY=/root/.ssh/backup_key   # omit to use default SSH key
