Installation
Using pip
Section titled “Using pip”The easiest way to install llms.py is via pip:
pip install llms-pyUsing Docker
Section titled “Using Docker”Quick Start
Section titled “Quick Start”Run the server on port 8000:
docker run -p 8000:8000 -e GROQ_API_KEY=$GROQ_API_KEY \ ghcr.io/servicestack/llms:latestGet the latest version:
docker pull ghcr.io/servicestack/llms:latestUsing Docker Compose (Recommended)
Section titled “Using Docker Compose (Recommended)”Download the docker-compose.yml file:
curl -O https://raw.githubusercontent.com/ServiceStack/llms/refs/heads/main/docker-compose.ymlUpdate API Keys in docker-compose.yml then start the server:
docker-compose up -dBuild from Source
Section titled “Build from Source”git clone https://github.com/ServiceStack/llmsdocker compose -f docker-compose.local.yml up -d --buildAfter the container starts, you can access the UI and API at http://localhost:8000.
Verify Installation
Section titled “Verify Installation”After installation, verify that llms.py is working:
# Check versionllms --help
# Initialize configurationllms --initThis will create a default configuration file at ~/.llms/llms.json.
Next Steps
Section titled “Next Steps”- Quick Start Guide - Get up and running quickly
- Configuration - Configure providers and models
- API Keys - Set up your API keys