Installation¶
Complete installation guide for all platforms and deployment methods.
System Requirements¶
| Requirement | Minimum | Recommended |
|---|---|---|
| Python | 3.8 | 3.11+ |
| RAM | 4 GB | 8 GB+ |
| Disk Space | 500 MB | 2 GB |
| Ollama | Any version | Latest |
Method 1: Direct Installation¶
Best for development and customization.
1. Install Python¶
Download from python.org and run installer.
✅ Check "Add Python to PATH"
2. Install Ollama¶
- Download from ollama.ai/download
- Run the installer
- Ollama will start automatically
3. Clone Repository¶
4. Install Dependencies¶
5. Configure¶
6. Pull LLM Model¶
7. Test Installation¶
Method 2: Standalone Executable¶
No Python required on target system!
See Bundling Guide for building executables.
Download pre-built executables:
Method 3: Docker¶
Best for consistent cross-platform deployment.
Prerequisites¶
- Docker installed
- Docker Compose (optional)
Using Docker¶
cd build
docker build -t ai-doc-agent .
# Run
docker run --rm \
-v "$(pwd):/workspace" \
-e OLLAMA_API_URL=http://host.docker.internal:11434/api/generate \
ai-doc-agent --directory /workspace
Using Docker Compose¶
See Docker Guide for details.
Method 4: Python Package¶
Install as a Python package.
Optional: PDF Support¶
For PDF generation, install wkhtmltopdf:
Or download from wkhtmltopdf.org
Verify Installation¶
# Check Python
python --version # Should be 3.8+
# Check Ollama
ollama --version
# Check agent
python run.py --help
# Generate test docs
python run.py --directory ./examples --output test
Troubleshooting¶
Python not found¶
python: command not found
Windows: Reinstall Python with "Add to PATH" checked
macOS/Linux: Create symlink:
Ollama connection error¶
Cannot connect to Ollama
- Check if Ollama is running:
ollama list - Start if needed:
ollama serve - Check URL in
.env:OLLAMA_API_URL
Permission denied¶
Import errors¶
Next Steps¶
✅ Installation complete!
- Quick Start - Generate your first docs
- Configuration - Customize the agent
- User Guide - Learn all features