ai-toolkit

by wa91h

Helm chartv0.4.0App 0.4.0MITVerified publisher

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

ServiceDescriptionDefault port
LiteLLMOpenAI-compatible LLM API gateway4000
n8nVisual workflow automation5678
Open WebUIChatGPT-like interface8080
PostgreSQLShared 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

ParameterDescriptionDefault
postgresql.enabledDeploy the bundled PostgreSQL instancetrue
litellm.enabledDeploy LiteLLMtrue
n8n.enabledDeploy n8ntrue
openwebui.enabledDeploy Open WebUItrue

LiteLLM

ParameterDescriptionDefault
litellm.masterKeyLiteLLM master API key (required)""
litellm.saltKeyLiteLLM salt key for hashing (required)""
litellm.extraModelsRaw model_list YAML appended to the LiteLLM config""
litellm.extraEnvExtra env vars for the LiteLLM container (e.g. provider API keys)[]
litellm.image.tagImage tagmain-stable
litellm.resourcesCPU/memory resource requests and limitssee values.yaml
litellm.service.portService port4000

n8n

ParameterDescriptionDefault
n8n.replicaCountNumber of replicas1
n8n.image.tagImage taglatest
n8n.timezoneIANA timezone for workflow schedulingUTC
n8n.persistence.enabledEnable persistent storagetrue
n8n.persistence.sizePVC size1Gi
n8n.resourcesCPU/memory resource requests and limitssee values.yaml
n8n.service.portService port5678

Open WebUI

ParameterDescriptionDefault
openwebui.replicaCountNumber of replicas1
openwebui.image.tagImage tagmain
openwebui.persistence.enabledEnable persistent storagetrue
openwebui.persistence.sizePVC size2Gi
openwebui.resourcesCPU/memory resource requests and limitssee values.yaml
openwebui.service.portService port8080

PostgreSQL

ParameterDescriptionDefault
postgresql.auth.databaseDefault database namepostgres
postgresql.auth.usernameDatabase usernamepostgres
postgresql.auth.passwordDatabase password (required)""
postgresql.image.tagPostgreSQL image tag16-alpine
postgresql.persistence.enabledEnable persistent storagetrue
postgresql.persistence.sizePVC size5Gi

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

https://github.com/wa91h/local-ai-toolkit

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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartai-toolkit is pinned at v0.4.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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