Skip to content

Installation

The easiest way to install llms.py is via pip:

Terminal window
pip install llms-py

Run the server on port 8000:

Terminal window
docker run -p 8000:8000 -e GROQ_API_KEY=$GROQ_API_KEY \
ghcr.io/servicestack/llms:latest

Get the latest version:

Terminal window
docker pull ghcr.io/servicestack/llms:latest

Download the docker-compose.yml file:

Terminal window
curl -O https://raw.githubusercontent.com/ServiceStack/llms/refs/heads/main/docker-compose.yml

Update API Keys in docker-compose.yml then start the server:

Terminal window
docker-compose up -d
Terminal window
git clone https://github.com/ServiceStack/llms
docker compose -f docker-compose.local.yml up -d --build

After the container starts, you can access the UI and API at http://localhost:8000.

After installation, verify that llms.py is working:

Terminal window
# Check version
llms --help
# Initialize configuration
llms --init

This will create a default configuration file at ~/.llms/llms.json.