ai-toolkit
by wa91h
Self-hosted AI stack — LiteLLM gateway, n8n automation, and Open WebUI backed by PostgreSQL
About this chart
ai-toolkit
A Helm chart for the AI Local Toolkit — a self-hosted AI stack bundling an LLM gateway, workflow automation, and a chat UI backed by PostgreSQL.
Services
| Service | Description | Default port |
|---|---|---|
| LiteLLM | OpenAI-compatible LLM API gateway | 4000 |
| n8n | Visual workflow automation | 5678 |
| Open WebUI | ChatGPT-like interface | 8080 |
| PostgreSQL | Shared database (LiteLLM + n8n) | 5432 |
Prerequisites
- Kubernetes 1.21+
- Helm 3.8+
Installing the chart
helm install ai-toolkit oci://ghcr.io/wa91h/charts/ai-toolkit \
--namespace ai-toolkit --create-namespace \
--set litellm.masterKey=sk-... \
--set litellm.saltKey=sk-... \
--set postgresql.auth.password=...
Or with a values file:
helm install ai-toolkit oci://ghcr.io/wa91h/charts/ai-toolkit \
--namespace ai-toolkit --create-namespace \
-f my-values.yaml
Parameters
Global
| Parameter | Description | Default |
|---|---|---|
postgresql.enabled | Deploy the bundled PostgreSQL instance | true |
litellm.enabled | Deploy LiteLLM | true |
n8n.enabled | Deploy n8n | true |
openwebui.enabled | Deploy Open WebUI | true |
LiteLLM
| Parameter | Description | Default |
|---|---|---|
litellm.masterKey | LiteLLM master API key (required) | "" |
litellm.saltKey | LiteLLM salt key for hashing (required) | "" |
litellm.extraModels | Raw model_list YAML appended to the LiteLLM config | "" |
litellm.extraEnv | Extra env vars for the LiteLLM container (e.g. provider API keys) | [] |
litellm.image.tag | Image tag | main-stable |
litellm.resources | CPU/memory resource requests and limits | see values.yaml |
litellm.service.port | Service port | 4000 |
n8n
| Parameter | Description | Default |
|---|---|---|
n8n.replicaCount | Number of replicas | 1 |
n8n.image.tag | Image tag | latest |
n8n.timezone | IANA timezone for workflow scheduling | UTC |
n8n.persistence.enabled | Enable persistent storage | true |
n8n.persistence.size | PVC size | 1Gi |
n8n.resources | CPU/memory resource requests and limits | see values.yaml |
n8n.service.port | Service port | 5678 |
Open WebUI
| Parameter | Description | Default |
|---|---|---|
openwebui.replicaCount | Number of replicas | 1 |
openwebui.image.tag | Image tag | main |
openwebui.persistence.enabled | Enable persistent storage | true |
openwebui.persistence.size | PVC size | 2Gi |
openwebui.resources | CPU/memory resource requests and limits | see values.yaml |
openwebui.service.port | Service port | 8080 |
PostgreSQL
| Parameter | Description | Default |
|---|---|---|
postgresql.auth.database | Default database name | postgres |
postgresql.auth.username | Database username | postgres |
postgresql.auth.password | Database password (required) | "" |
postgresql.image.tag | PostgreSQL image tag | 16-alpine |
postgresql.persistence.enabled | Enable persistent storage | true |
postgresql.persistence.size | PVC size | 5Gi |
External database
To use an external PostgreSQL instead of the bundled one:
postgresql:
enabled: false
externalDatabase:
host: my-db.example.com
port: 5432
username: postgres
password: secret
database: postgres
The external server must already have n8n and litellm databases created.
Ingress
ingress:
enabled: true
className: nginx
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
hosts:
litellm: litellm.example.com
n8n: n8n.example.com
openwebui: chat.example.com
tls:
- secretName: ai-toolkit-tls
hosts:
- litellm.example.com
- n8n.example.com
- chat.example.com
Accessing services without Ingress
kubectl port-forward svc/ai-toolkit-litellm 4000:4000
kubectl port-forward svc/ai-toolkit-n8n 5678:5678
kubectl port-forward svc/ai-toolkit-openwebui 3000:8080
Upgrading
helm upgrade ai-toolkit oci://ghcr.io/wa91h/charts/ai-toolkit -f my-values.yaml
Uninstalling
helm uninstall ai-toolkit
PersistentVolumeClaims are not deleted automatically. Remove them manually if you want to purge all data:
kubectl delete pvc -l app.kubernetes.io/instance=ai-toolkit
Models
The chart ships no LiteLLM models. Register the providers you want via
litellm.extraModels, or at runtime in the LiteLLM UI.
Source
Deploy ai-toolkit with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has ai-toolkit on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartai-toolkit is pinned at v0.4.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply