multica

by iCoreTech, Inc.

Helm chartv0.13.0App v0.13.0Apache-2.0Verified publisher

Multica managed agents platform for Kubernetes

About this chart

Multica Helm Chart

Deploy Multica, the open-source managed agents platform, on Kubernetes.

Features

  • Separate backend and frontend Deployments using upstream GHCR images
  • Optional bundled PostgreSQL for evaluation and chart-testing
  • External PostgreSQL mode for production deployments
  • Optional PostgreSQL read replica with independent pool sizing for opted-in reads
  • Optional bundled Redis for multi-backend realtime fanout, channel leases, rate limits, auth-token caches, daemon task-claim cache, and runtime-local skill queues, in standalone or cluster mode
  • Local upload PVC support and S3-compatible storage configuration
  • Secret references for JWT, email, Google OAuth, metrics, database URL, GitHub App, Lark, Slack, DingTalk, Telegram, WeCom, Composio, VCS, plugins, LLM, and S3 credentials
  • Runtime URL configuration for current multica-web images, graceful shutdown, invitation limits, and realtime relay/channel lease tuning
  • Optional container-loopback maintenance API for operator-driven, resumable backfills
  • Private CA trust for backend HTTPS and PostgreSQL TLS, including the pre-upgrade migration Job
  • Opt-in server-side LLM thinking disable for compatible gateways
  • Self-host telemetry opt-out and PostHog analytics switches
  • Optional ConfigMap-backed feature flag rules
  • Ingress and Gateway API HTTPRoute support with backend path routing for CLI self-host setup and frontend OAuth callback exceptions
  • Optional PrometheusRule alerts for Multica business sampler metrics
  • Helm unit tests and install-safe CI values

Important Runtime Note

Current upstream multica-web images resolve their API and documentation URLs from runtime environment variables. The chart sets REMOTE_API_URL to the release-qualified backend Service and exposes frontend.config.* for explicit URLs. No unprefixed backend compatibility Service is created; multiple releases can share a namespace without that name collision.

Leave frontend.config.publicApiUrl and frontend.config.publicWsUrl empty for same-origin browser requests. For split origins, set the browser-reachable API origin (not a URL ending in /api) and WebSocket URL, configure backend CORS/origins, and use the narrowest trusted backend.config.cookieDomain covering both hosts so the frontend can read the CSRF cookie. frontend.config.docsUrl controls the runtime documentation proxy. Other upstream NEXT_PUBLIC_* switches, such as app version and cloud-runtime UI enablement, are build-time only and cannot be changed through pod environment variables.

Prerequisites

  • Kubernetes 1.24+
  • Helm 3.10+
  • For production: external PostgreSQL and a real JWT_SECRET
  • For email delivery: Resend API credentials or an SMTP relay

Install

helm repo add icoretech https://icoretech.github.io/helm
helm repo update
helm upgrade --install multica icoretech/multica \
  -n multica --create-namespace \
  --set backend.config.jwtSecret="replace-with-a-strong-secret-at-least-32-characters"

OCI:

helm upgrade --install multica oci://ghcr.io/icoretech/charts/multica \
  -n multica --create-namespace \
  --set backend.config.jwtSecret="replace-with-a-strong-secret-at-least-32-characters"

Production Shape

For production, prefer external PostgreSQL and S3-compatible uploads:

postgres:
  enabled: false

database:
  external:
    enabled: true
    # Required by the wait-for-Postgres init container when DATABASE_URL comes from a Secret.
    host: postgres.example.com
    urlFrom:
      secretKeyRef:
        name: multica-db
        key: DATABASE_URL

backend:
  config:
    frontendOrigin: https://multica.example.com
    publicUrl: https://multica.example.com
    jwtSecretRef:
      name: multica-auth
      key: JWT_SECRET
  email:
    resendApiKeyRef:
      name: multica-email
      key: RESEND_API_KEY
    resendFromEmail: [email protected]
    smtp:
      host: smtp.example.com
      port: 587
      # Use implicit for SMTPS/465, or leave empty for STARTTLS when advertised.
      tls: starttls
      # Set a real FQDN when strict public relays reject the container hostname.
      ehloName: mail.example.com
      usernameRef:
        name: multica-smtp
        key: SMTP_USERNAME
      passwordRef:
        name: multica-smtp
        key: SMTP_PASSWORD

storage:
  local:
    persistence:
      enabled: false
  s3:
    bucket: multica-uploads
    region: eu-west-1

redis:
  enabled: true
  persistence:
    size: 8Gi

When using the chart-managed Ingress or HTTPRoute, backend-owned paths such as /health, /api, /auth, /uploads, and /ws are routed directly to the backend Service by default. The more-specific /auth/callback prefix stays on the frontend because Google OAuth returns to a web page, not a backend endpoint; /auth/hg-sso/callback is also reserved for the frontend by upstream's runtime proxy (the stable v0.6.1 image does not provide that page). The /health route supports multica setup self-host. If you manage Traefik IngressRoute, nginx snippets, or another external router outside the chart, mirror the same split and callback exceptions.

When using S3-compatible storage without storage.s3.cloudfrontDomain, Multica stores reader-facing URLs using the configured bucket endpoint. Configure the bucket with public s3:GetObject access for uploaded objects, set storage.s3.cloudfrontDomain with CloudFront signing support, or use storage.attachments.downloadMode=proxy when browsers and CLI clients cannot reach a private S3-compatible endpoint directly.

The backend startup probe gives cold installs time to wait for PostgreSQL and run migrations before liveness starts. Readiness uses /readyz, which checks PostgreSQL connectivity and the latest server migration. Liveness stays on /health, which only confirms the process is alive.

Backend pod annotations include a checksum of referenced Kubernetes Secret data so out-of-band rotations of jwtSecretRef, database or read-replica URL, email, OAuth, Redis, GitHub, Lark, and S3 secrets roll the Deployment on the next helm upgrade. helm template and dry-run renders cannot read live Secrets, so they emit a stable placeholder checksum.

Leave database.pool.maxConns and database.pool.minConns empty unless you explicitly want DATABASE_MAX_CONNS / DATABASE_MIN_CONNS env vars to override Multica's own defaults and any pool_max_conns / pool_min_conns query parameters already embedded in DATABASE_URL. backend.config.databaseSearchWorkMemMB (default 64) sets the transaction-local PostgreSQL work_mem ceiling for search queries; set 0 to keep the database/session default, or 1-64 to lower it on memory-constrained databases.

Set database.replica.url (or database.replica.urlFrom.secretKeyRef) to enable the optional PostgreSQL read replica. Every replica connection is forced read-only and recycled after 5 minutes, replica failures fall back to the primary, and database.replica.maxConns / database.replica.minConns size its pool independently of the primary (Multica defaults are 10 / 0).

Set backend.config.maintenancePort to expose Multica's container-loopback maintenance API. The listener binds 127.0.0.1 only and has no application authentication; run the packaged /app/maintenance client through kubectl exec to drive resumable backfills such as the issue-status category migration. Never publish this port through a Service, Ingress, HTTPRoute, or host port.

The chart disables PostHog product analytics by default via backend.config.analyticsDisabled. Multica also sends one first-party anonymous self-host telemetry snapshot per UTC day; set backend.config.doNotTrack to "1" or "true" to opt out of telemetry collection and delivery.

Set backend.config.metricsAddr to enable Multica's Prometheus metrics listener. If your cluster has the Prometheus Operator CRD installed, monitoring.prometheusRule.enabled=true adds alert rules for business sampler query failures and high query latency; it is disabled by default so minimal clusters without the CRD still render and install.

Signup restrictions only apply to first-time signup. Existing users can always sign in again. To restrict first-time signup to explicit addresses or domains, keep backend.config.allowSignup=true and set backend.config.allowedEmails or backend.config.allowedEmailDomains. Setting backend.config.allowSignup=false blocks every new signup even when an email allowlist is present.

Set backend.config.disableWorkspaceCreation=true after bootstrapping the shared workspace when self-hosted users should only join by invitation. This maps to upstream DISABLE_WORKSPACE_CREATION and makes workspace creation fail for every caller.

Set backend.config.authTokenTtl only when you need to override Multica's default auth token lifetime. Behind a reverse proxy, configure backend.rateLimits.auth.trustedProxies for the public auth limiter and backend.config.trustedProxies for the autopilot webhook limiter so upstream rate limits see real client IPs instead of only the proxy address.

Email delivery can use Resend or an SMTP relay. SMTP is enabled when backend.email.smtp.host is set, and upstream Multica checks SMTP_HOST before Resend, so SMTP takes priority when both are configured. Port 465 is supported for implicit TLS; set backend.email.smtp.tls=implicit for non-standard SMTPS ports. For strict relays such as Google Workspace, set backend.email.smtp.ehloName to the FQDN the relay accepts. For production SMTP auth, prefer backend.email.smtp.passwordRef instead of inline backend.email.smtp.password.

Private CA certificates

For internal HTTPS services such as Gitea, Forgejo, GitLab, or an LLM gateway, create a ConfigMap in the release namespace whose keys are PEM certificate filenames and reference it:

kubectl -n multica create configmap multica-private-ca --from-file=internal-ca.crt
backend:
  extraCACerts:
    configMap: multica-private-ca

The chart mounts the certificates read-only at /etc/multica/ca-certs and sets SSL_CERT_DIR=/etc/ssl/certs:/etc/multica/ca-certs, retaining public system CAs and TLS verification. The pre-upgrade migration Job gets the same trust roots, including for a PostgreSQL connection using sslmode=verify-full. To rotate trust roots, update the ConfigMap and run helm upgrade: its live data checksum rolls the backend because Go loads roots at process startup. Offline templates and client-side dry runs use a stable placeholder checksum. Do not override SSL_CERT_DIR through backend.extraEnv while this feature is enabled.

Server-side LLM gateways

backend.llm configures the backend's assist calls (chat titles and follow-up suggestions), not daemon/agent model reasoning. Set baseUrl and, if required, apiKeyRef for an OpenAI-compatible gateway; maxRetries accepts 0-5, with 0 disabling retries and an empty value preserving Multica's default.

For gateways that support it, backend.llm.disableThinking=true sends chat_template_kwargs: {"enable_thinking": false} on every assist request. Leave it false for standard OpenAI endpoints, which can reject this non-standard field.

GitHub App integration needs the app slug and webhook secret. Optionally set backend.github.appId with backend.github.appPrivateKeyRef so Multica can enrich the connected account name immediately after install. Store secrets in an existing Kubernetes Secret:

backend:
  github:
    appSlug: multica-example
    webhookSecretRef:
      name: multica-github
      key: GITHUB_WEBHOOK_SECRET
    appId: "123456"
    appPrivateKeyRef:
      name: multica-github
      key: GITHUB_APP_PRIVATE_KEY

Lark/Feishu Bot integration is disabled until backend.lark.secretKey or backend.lark.secretKeyRef is set. Use a base64-encoded 32-byte key, for example openssl rand -base64 32. International Lark tenants should set both backend.lark.httpBaseUrl and backend.lark.callbackBaseUrl to https://open.larksuite.com; backend.config.publicUrl must point at the public API origin used by Lark binding prompts. Set backend.lark.wsProxyUrl only when Lark WebSocket long-connection handshakes must go through a fixed HTTP CONNECT proxy instead of the standard pod HTTP_PROXY / HTTPS_PROXY / NO_PROXY environment.

backend:
  config:
    publicUrl: https://multica.example.com
  lark:
    secretKeyRef:
      name: multica-lark
      key: MULTICA_LARK_SECRET_KEY
    httpBaseUrl: https://open.larksuite.com
    callbackBaseUrl: https://open.larksuite.com

Slack integration is disabled until backend.slack.secretKey or backend.slack.secretKeyRef is set. Use a separate base64-encoded 32-byte key from the Lark key; Multica uses it to decrypt Slack bot/app tokens stored in channel installation rows.

backend:
  slack:
    secretKeyRef:
      name: multica-slack
      key: MULTICA_SLACK_SECRET_KEY

Feature flags are optional. Leave backend.featureFlags.rules and backend.featureFlags.existingConfigMap.name empty to use upstream defaults plus any FF_* overrides from backend.extraEnv. To ship file-backed rules, either provide inline rules and let the chart render a ConfigMap, or mount an existing ConfigMap; the chart exports MULTICA_FEATURE_FLAGS_FILE only when it also mounts the file.

backend:
  featureFlags:
    rules:
      runtime_brief_slim:
        default: true

Multica runs rollup_task_usage_hourly() in-process on every backend replica through its DB-backed scheduler (sys_cron_executions), so a fresh install needs no external rollup scheduler. usageRollups.cronJob.enabled therefore defaults to false; it remains only as a compatibility path for backend images older than v0.3.5 or when the in-process scheduler is unavailable. The SQL function holds advisory lock 4246, so the CronJob and the in-process schedul

Deploy multica with OpenTenant

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