paperless-gpt

by task.media

Helm chartv0.3.1App 0.29.0Verified publisher

A Helm chart for paperless-gpt, an LLM-powered OCR and metadata assistant for paperless-ngx

About this chart

paperless-gpt

Helm chart for paperless-gpt, an LLM-powered OCR and metadata assistant for paperless-ngx. It uses the official upstream image icereed/paperless-gpt.

paperless-gpt has no built-in authentication. The ingress is disabled by default; always put an authenticating proxy (e.g. forward-auth) in front of it.

Usage

helm repo add taskmedia https://helm.task.media
helm install paperless-gpt taskmedia/paperless-gpt -f values.yaml

Minimal values (OpenAI, secrets from an existing secret):

paperless:
  baseUrl: http://paperless-ngx:8000
  apiTokenExistingSecret:
    name: paperless-gpt
    key: paperless-api-token

config:
  LLM_PROVIDER: openai
  LLM_MODEL: gpt-4o

# every key of this secret is injected as environment variable (e.g. OPENAI_API_KEY)
existingSecret: paperless-gpt

Example with a local Ollama instance (no API key needed, so no secret for the LLM):

paperless:
  baseUrl: http://paperless-ngx:8000
  apiTokenExistingSecret:
    name: paperless-gpt
    key: paperless-api-token

config:
  # metadata suggestions (title, tags, correspondent, ...)
  LLM_PROVIDER: ollama
  LLM_MODEL: qwen3:8b
  OLLAMA_HOST: http://ollama.ollama.svc.cluster.local:11434
  OLLAMA_CONTEXT_LENGTH: "8192"
  TOKEN_LIMIT: "1000" # recommended for smaller models
  # vision based OCR
  OCR_PROVIDER: llm
  VISION_LLM_PROVIDER: ollama
  VISION_LLM_MODEL: minicpm-v

Any upstream environment variable can be set via config (plain), secretConfig (stored in a chart-managed secret) or existingSecret.

Ingress

Optional standard Ingress; with the cert-manager annotation the TLS certificate is created automatically (example for Traefik, cert-manager and an authentik forward-auth middleware):

ingress:
  enabled: true
  annotations:
    cert-manager.io/cluster-issuer: letsencrypt-prod
    traefik.ingress.kubernetes.io/router.entrypoints: websecure
    traefik.ingress.kubernetes.io/router.tls: "true"
    traefik.ingress.kubernetes.io/router.middlewares: authentik-proxy@kubernetescrd
  host: gpt.example.com
  tls:
    secretName: paperless-gpt-tls

IngressRoute

As an alternative to the Ingress, the chart can render a Traefik IngressRoute (CRD). Because cert-manager's ingress-shim does not handle IngressRoute, the chart can also create the Certificate (example with an authentik forward-auth middleware):

ingressRoute:
  enabled: true
  host: gpt.example.com
  middlewares:
    - name: proxy
      namespace: authentik
  tls:
    secretName: paperless-gpt-tls
    certificate:
      enabled: true
      issuerRef:
        name: letsencrypt-prod

Requires the Traefik (and, for the certificate, cert-manager) CRDs in the cluster.

Notes

  • Runs a single replica with the Recreate strategy: state is a local SQLite database.
  • persistence stores /app/prompts, /app/config and /app/db (prompts, UI settings, history).
  • Runs as non-root (UID/GID 10001); PUID/PGID are not used in that mode.
  • No health endpoint is documented upstream, so probes check the TCP port.
  • Use extraVolumes/extraVolumeMounts for hOCR/PDF output or Google Document AI credentials.

Deploy paperless-gpt with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has paperless-gpt 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 chartpaperless-gpt is pinned at v0.3.1 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