No description
| .env.example | ||
| .gitignore | ||
| compose.yml | ||
| litellm-config.yaml | ||
| README.md | ||
aido-litellm
Standalone LiteLLM proxy stack for the AIDO / Onyx ecosystem.
Architecture
proxy— LiteLLM main-stable image, config-mounted read-only.db— Postgres 16 Alpine for spend logs, user keys and model config persistence.redis— LRU-bounded Redis for router caching and cooldown state.
Cross-stack connectivity is provided by the external Docker network aido-llm.
AIDO's api_server and background services attach to the same network so
Onyx can reach the proxy internally at http://litellm-proxy:4000.
Prerequisites
- Docker Engine >= 24.x with Compose v2
- Traefik (or another reverse proxy) on the
webnetwork if you intend to use the FQDN labels - The
aido-llmDocker network must exist before the first start:
make setup-network
Quick start
# 1. Prepare environment
cp .env.example .env
# Edit .env: set LITELLM_FQDN, INFOMANIAK_API_KEY, and generate secrets.
# 2. Start the stack
make up
# 3. Verify health
curl http://localhost:4000/health/liveliness
Onyx integration
In the AIDO / Onyx admin panel, add an OpenAI-compatible provider pointing to:
Base URL: http://litellm-proxy:4000 API Key: # LiteLLM master key or a generated virtual key
Because both stacks share the aido-llm network, the hostname litellm-proxy
resolves from every AIDO backend container.
Operations
| Command | Purpose |
|---|---|
docker compose up -d |
Start proxy, db and redis |
docker compose down |
Stop and remove containers |
docker compose restart |
Recreate the proxy container (config reload) |
docker compose logs -f |
Follow proxy logs |
docker compose ps |
Show stack status |
Data persistence
Postgres and Redis data are stored in named Compose volumes:
litellm_postgres_datalitellm_redis_data
Back up Postgres before major changes:
docker exec -it litellm-db pg_dump -U llmproxy litellm > litellm-backup.sql
Security notes
- The proxy container does not run as root.
- Config is mounted read-only (
:ro). - Redis has no exposed ports; it is reachable only inside
litellm-network. - Postgres has no exposed ports; it is reachable only inside
litellm-networkand from the proxy service.