inbox-zero

by L4G

Helm chartv0.1.0App latestAGPL-3.0Verified publisher

Helm chart for Inbox Zero — an open-source AI email assistant (web, BullMQ worker, CronJobs, optional bundled Postgres / Redis)

About this chart

inbox-zero

Helm chart for Inbox Zero, an open-source AI email assistant for Gmail and Outlook.

Based on the upstream chart in elie222/inbox-zero (charts/inbox-zero).

What it deploys

  • web: Deployment for the Next.js app, plus a Service and an optional Ingress
  • worker: optional BullMQ worker Deployment
  • CronJobs for the scheduled endpoints (watch renewal, digests, meeting briefs, follow-up reminders, retention)
  • A Prisma migration Job (pre-install/pre-upgrade hook) when you use external Postgres
  • Optional bundled Postgres, Redis and a Redis HTTP bridge (hiett/serverless-redis-http) for demos and small installs

For production, use managed Postgres and Redis. The bundled StatefulSets have no backups, failover or monitoring.

Install

helm repo add l4gdev https://l4gdev.github.io/helm-charts
helm repo update
helm upgrade --install inbox-zero l4gdev/inbox-zero \
  -n inbox-zero --create-namespace \
  -f my-values.yaml

Start from one of the files in examples/:

FileUse case
values-minimal.yamlBundled Postgres / Redis, secrets inline, no Ingress
values-production.yamlManaged Postgres / Redis, all credentials in existing Secrets, Ingress + TLS

Required configuration

  • env.NEXT_PUBLIC_BASE_URL: the public HTTPS URL. It must match the OAuth redirect origin registered in Google / Microsoft.
  • App secrets, set in secretEnv or in a Secret referenced by existingSecret: AUTH_SECRET, EMAIL_ENCRYPT_SECRET, EMAIL_ENCRYPT_SALT, INTERNAL_API_KEY, API_KEY_SALT, CRON_SECRET, OAuth client credentials and an LLM API key. The full list is in the environment variables reference.
  • Bundled data services: postgresql.auth.password, redis.auth.password and redisHttp.token are required. Generate them with openssl rand -hex 32.

External Postgres / Redis

externalDatabase:
  enabled: true
  existingSecret:
    name: inbox-zero-database   # DATABASE_URL, DIRECT_URL

externalRedis:
  enabled: true
  existingSecret:
    name: inbox-zero-redis      # REDIS_URL, REDIS_HTTP_URL, REDIS_HTTP_TOKEN

existingSecret: inbox-zero-secrets

Legacy UPSTASH_REDIS_URL / UPSTASH_REDIS_TOKEN keys still work. Leave externalRedis.existingSecret.redisHttpUrlKey and redisHttpTokenKey empty and the chart will accept either naming.

Queue backend

BullMQ is the default (env.QUEUE_BACKEND: bullmq, worker.enabled: true). To use QStash instead, set QUEUE_BACKEND: qstash, disable the worker and provide the QStash secrets.

Smoke test

kubectl -n inbox-zero rollout status deploy/inbox-zero-web
kubectl -n inbox-zero port-forward svc/inbox-zero-web 3000:80
curl http://localhost:3000/api/health

kubectl -n inbox-zero create job --from=cronjob/inbox-zero-watch-renewal test-watch-renewal
kubectl -n inbox-zero logs job/test-watch-renewal

Differences from upstream

  • The CronJob curl command is quoted. Upstream renders Authorization: Bearer ... unquoted, so YAML parses it as a map and the API server rejects the CronJobs.
  • L4G metadata, ArtifactHub annotations, ci/ values for chart-testing and examples/.

Upstream docs

Deploy inbox-zero with OpenTenant

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