remnant

by janip81

Helm chartv0.2.11App 0.2.0Verified publisher

Remnant — a shared local memory layer for stateless AI agents

About this chart

remnant

Remnant — a shared local memory layer for stateless AI agents

Homepage: https://github.com/janip81/helm-charts/tree/main/charts/remnant

Maintainers

NameEmailUrl
janip81[email protected]https://github.com/janip81

Source Code

Overview

Helm chart for deploying claude-memory — a self-hosted MCP memory server built on mem0, pgvector (via CNPG), and Ollama embeddings.

Gives Claude Code persistent semantic memory across sessions. Facts are stored directly in pgvector and retrieved via semantic search — no LLM API calls required.

Adding this helm repository

helm repo add janip81 https://janip81.github.io/helm-charts/
helm search repo claude-memory

Prerequisites

  • Ollama running and reachable with nomic-embed-text pulled:
    ollama pull nomic-embed-text
    
  • CNPG operator installed in the cluster (for the managed PostgreSQL cluster)
  • A Kubernetes Secret with BEARER_TOKEN key (pre-created or via AVP):
    kubectl -n claude-memory create secret generic claude-memory-auth \
      --from-literal=BEARER_TOKEN='your-token'
    

TL;DR

helm repo add janip81 https://janip81.github.io/helm-charts/
helm install claude-memory janip81/claude-memory \
  --namespace claude-memory \
  --create-namespace \
  --set gatewayApi.host=mem0-mcp.your-domain.com \
  --set ollama.baseUrl=http://your-ollama-host:11434 \
  --set cnpg.storage.storageClass=your-storage-class

Connecting Claude Code

After deployment:

claude mcp add --transport http --scope user mem0-mcp https://mem0-mcp.your-domain.com/mcp

Enter the bearer token when prompted.

Gateway API (HTTPRoute)

gatewayApi:
  enabled: true
  host: mem0-mcp.your-domain.com
  parentRefs:
    - name: internal-shared
      namespace: kube-system

CNPG Backup (Barman S3)

cnpg:
  backup:
    enabled: true
    destinationPath: s3://my-bucket/claude-memory
    endpointURL: https://s3.example.com
    s3CredentialsSecret: cnpg-barman-s3-creds
    retentionPolicy: "30d"

The s3CredentialsSecret must contain keys: access-key-id, secret-access-key, region.

Values

KeyTypeDefaultDescription
auth.secretNamestring"remnant-auth"Name of the Secret containing BEARER_TOKEN (pre-created or rendered by AVP)
cnpg.backup.destinationPathstring"s3://my-bucket/remnant"S3 destination path
cnpg.backup.enabledboolfalseEnable Barman S3 backup
cnpg.backup.endpointURLstring"https://s3.example.com"S3 endpoint URL
cnpg.backup.retentionPolicystring"30d"Backup retention policy
cnpg.backup.s3CredentialsSecretstring"cnpg-barman-s3-creds"Name of the Secret containing S3 credentials (keys: access-key-id, secret-access-key, region)
cnpg.databasestring"remnant"PostgreSQL database name (also used as the owner role name for new clusters)
cnpg.enabledbooltrueEnable CNPG PostgreSQL cluster
cnpg.instancesint1Number of CNPG instances
cnpg.ownerstring"remnant"PostgreSQL owner role (override to match existing cluster if migrating)
cnpg.storage.sizestring"5Gi"Storage size for the CNPG cluster
cnpg.storage.storageClassstring""Storage class for the CNPG cluster
dedup.enabledbooltrueEnable the deduplication CronJob
dedup.llm.apiKeySecretstring""Existing Secret holding the API key (provider=openai)
dedup.llm.apiKeySecretKeystring"api-key"Key within apiKeySecret
dedup.llm.fallbackbooltrueFall back to local Ollama when the OpenAI-compatible endpoint fails
dedup.llm.modelstring""Model name at the OpenAI-compatible endpoint
dedup.llm.providerstring"ollama"LLM for nightly tagging/merges: ollama (local, default) or openai (OpenAI-compatible, e.g. OmniRoute)
dedup.llm.urlstring""OpenAI-compatible base URL (provider=openai), e.g. http://omniroute.omniroute.svc:20128/v1
dedup.resources.limits.cpustring"500m"
dedup.resources.limits.memorystring"256Mi"
dedup.resources.requests.cpustring"100m"
dedup.resources.requests.memorystring"128Mi"
dedup.schedulestring"30 3 * * *"Cron schedule (default: 03:30 daily, after CNPG backup window)
dedup.semanticThresholdstring"0.92"Cosine similarity threshold for semantic near-dedup (0–1, higher = stricter)
dedup.suspendboolfalseSuspend the CronJob without deleting it
gatewayApi.enabledbooltrueEnable Gateway API HTTPRoute
gatewayApi.hoststring"remnant-mcp.prod.example.com"Hostname for the MCP HTTPRoute
gatewayApi.parentRefslist[{"name":"internal-shared","namespace":"kube-system"}]Gateway parentRefs
image.pullPolicystring"IfNotPresent"Image pull policy
image.repositorystring"ghcr.io/janip81/remnant"Image repository
image.tagstring"latest"Image tag
imagePullSecretslist[]Image pull secrets for private registries (e.g. ghcr.io)
mcp.allowedHostslist[]Allowed Host headers for /mcp ("host" or "host:*"). Empty = the in-cluster service (:<service.port>, used by the UI and the dedup job) plus gatewayApi.host when enabled. Loopback is always allowed by the server.
mcp.dnsRebindingProtectionbooltrueDNS rebinding protection for /mcp: sets MCP_ALLOWED_HOSTS. false sets MCP_DNS_REBINDING_PROTECTION=false, the explicit opt-out (images from 2026-11 protect /mcp by default).
mem0.agentIdstring"default"Default agent ID tag (overridden per client via X-Agent-ID header)
mem0.inferstring"true"Enable LLM extraction and deduplication on add_memory calls
mem0.userIdstring"default"User ID namespace for stored memories
ollama.baseUrlstring"http://ollama:11434"Ollama server URL
ollama.embedBaseUrlstring""Optional separate Ollama for embeddings (writes and search), e.g. an always-on CPU instance while baseUrl (the LLM) is a GPU host that may sleep. Empty = baseUrl. It must serve the same embedModel. Needs a Remnant image with OLLAMA_EMBED_BASE_URL support.
ollama.embedModelstring"nomic-embed-text"Embedding model (must be pulled in Ollama)
ollama.modelstring"qwen2.5:7b"Chat model for LLM operations
redis.dbint0Redis database number
redis.enabledboolfalseEnable Redis-backed async queue for add_memory (offloads Ollama LLM extraction to background, returns immediately)
redis.hoststring"redis-replication-master.redis.svc"Redis host (master service)
redis.passwordSecret.keystring"password"Key within the secret
redis.passwordSecret.namestring""Name of an existing Secret in the same namespace containing the Redis password
redis.portint6379Redis port
replicaCountint1Number of replicas
resources.limits.cpustring"500m"CPU limit
resources.limits.memorystring"512Mi"Memory limit
resources.requests.cpustring"100m"CPU request
resources.requests.memorystring"256Mi"Memory request
service.portint8080Service port
service.typestring"ClusterIP"Service type
serviceMonitor.clusterLabelstring""Value for the k8s_cluster relabel (defaults to Release.Namespace if unset)
serviceMonitor.enabledboolfalseEnable Prometheus ServiceMonitor
serviceMonitor.intervalstring"30s"Scrape interval
serviceMonitor.labelsobject{}Additional labels (e.g. release: my-prometheus) to match your Prometheus operator selector
serviceMonitor.scrapeTimeoutstring"10s"Scrape timeout
tagging.llmModelstring""Override LLM model for tagging (empty = use ollama.model)
tagging.modestring"keyword"Tagging mode: keyword (fast, rules-only), llm (Ollama at write time), hybrid (keyword at write + LLM nightly)
ui.enabledbooltrueEnable the memory browser UI (separate pod, separate image)
ui.hoststring""Hostname for the UI HTTPRoute (leave empty to share MCP hostname with path routing)
ui.image.pullPolicystring"IfNotPresent"Image pull policy
ui.image.repositorystring"ghcr.io/janip81/remnant-ui"UI image repository (separate from MCP image)
ui.image.tagstring"latest"Image tag
ui.oauth2Proxy.allowedEmailslist[]Only these e-mail addresses may log in (empty = any user the issuer authenticates)
ui.oauth2Proxy.clientIdstring"remnant-ui"OIDC client id (confidential client)
ui.oauth2Proxy.clientSecretKeystring"client-secret"
ui.oauth2Proxy.cookieExpirestring"168h"Session cookie lifetime
ui.oauth2Proxy.cookieSecretKeystring"cookie-secret"
ui.oauth2Proxy.enabledboolfalsePut an oauth2-proxy sidecar (OIDC login) in front of the UI
ui.oauth2Proxy.existingSecretstring""Existing Secret with the client secret and cookie secret
ui.oauth2Proxy.extraArgslist[]Extra oauth2-proxy arguments
ui.oauth2Proxy.image.pullPolicystring"IfNotPresent"
ui.oauth2Proxy.image.repositorystring"quay.io/oauth2-proxy/oauth2-proxy"
ui.oauth2Proxy.image.tagstring"v7.15.5"
ui.oauth2Proxy.issuerUrlstring""OIDC issuer, e.g. https://keycloak.example.com/realms/myrealm
ui.oauth2Proxy.portint4180Port the proxy listens on
ui.oauth2Proxy.resources.limits.cpustring"100m"
ui.oauth2Proxy.resources.limits.memorystring"64Mi"
ui.oauth2Proxy.resources.requests.cpustring"10m"
ui.oauth2Proxy.resources.requests.memorystring"32Mi"
ui.portint8081Port the UI listens on inside the container
ui.resources.limits.cpustring"200m"
ui.resources.limits.memorystring"128Mi"
ui.resources.requests.cpustring"50m"
ui.resources.requests.memorystring"64Mi"

Autogenerated from chart metadata using helm-docs v1.14.2

Deploy remnant with OpenTenant

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