Skip to content

Latest commit

 

History

History
75 lines (56 loc) · 1.21 KB

File metadata and controls

75 lines (56 loc) · 1.21 KB

Deployment

Prerequisites

  • Python 3.12+
  • 2GB RAM minimum
  • 5GB disk space
  • API keys for AI providers

Installation

  1. Clone repository:

    git clone https://github.com/YoannDev90/AlphaLLM.git
    cd AlphaLLM
  2. Create virtual environment:

    python -m venv .venv
    source .venv/bin/activate  # Linux/Mac
    # or .venv\Scripts\activate  # Windows
  3. Install dependencies:

    pip install -r requirements.txt
  4. Configure:

    • Copy config-sample.toml to config.toml
    • Edit config.toml with your settings
    • Create .env with API keys
  5. Run:

    python main.py

Docker Deployment

FROM python:3.12-slim

WORKDIR /app
COPY requirements.txt .
RUN pip install -r requirements.txt

COPY . .
EXPOSE 25692

CMD ["python", "main.py"]

Production Setup

  • Use PostgreSQL instead of SQLite
  • Set up SSL certificates
  • Configure reverse proxy (nginx)
  • Enable monitoring
  • Set up log aggregation

Code Quality

Before committing:

black . && isort . && flake8 .

Troubleshooting

  • Check logs in data/bot.log
  • Verify API keys
  • Ensure database connectivity
  • Check Discord bot permissions