remnant
by janip81
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
| Name | Url | |
|---|---|---|
| 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-textpulled:ollama pull nomic-embed-text - CNPG operator installed in the cluster (for the managed PostgreSQL cluster)
- A Kubernetes Secret with
BEARER_TOKENkey (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
| Key | Type | Default | Description |
|---|---|---|---|
| auth.secretName | string | "remnant-auth" | Name of the Secret containing BEARER_TOKEN (pre-created or rendered by AVP) |
| cnpg.backup.destinationPath | string | "s3://my-bucket/remnant" | S3 destination path |
| cnpg.backup.enabled | bool | false | Enable Barman S3 backup |
| cnpg.backup.endpointURL | string | "https://s3.example.com" | S3 endpoint URL |
| cnpg.backup.retentionPolicy | string | "30d" | Backup retention policy |
| cnpg.backup.s3CredentialsSecret | string | "cnpg-barman-s3-creds" | Name of the Secret containing S3 credentials (keys: access-key-id, secret-access-key, region) |
| cnpg.database | string | "remnant" | PostgreSQL database name (also used as the owner role name for new clusters) |
| cnpg.enabled | bool | true | Enable CNPG PostgreSQL cluster |
| cnpg.instances | int | 1 | Number of CNPG instances |
| cnpg.owner | string | "remnant" | PostgreSQL owner role (override to match existing cluster if migrating) |
| cnpg.storage.size | string | "5Gi" | Storage size for the CNPG cluster |
| cnpg.storage.storageClass | string | "" | Storage class for the CNPG cluster |
| dedup.enabled | bool | true | Enable the deduplication CronJob |
| dedup.llm.apiKeySecret | string | "" | Existing Secret holding the API key (provider=openai) |
| dedup.llm.apiKeySecretKey | string | "api-key" | Key within apiKeySecret |
| dedup.llm.fallback | bool | true | Fall back to local Ollama when the OpenAI-compatible endpoint fails |
| dedup.llm.model | string | "" | Model name at the OpenAI-compatible endpoint |
| dedup.llm.provider | string | "ollama" | LLM for nightly tagging/merges: ollama (local, default) or openai (OpenAI-compatible, e.g. OmniRoute) |
| dedup.llm.url | string | "" | OpenAI-compatible base URL (provider=openai), e.g. http://omniroute.omniroute.svc:20128/v1 |
| dedup.resources.limits.cpu | string | "500m" | |
| dedup.resources.limits.memory | string | "256Mi" | |
| dedup.resources.requests.cpu | string | "100m" | |
| dedup.resources.requests.memory | string | "128Mi" | |
| dedup.schedule | string | "30 3 * * *" | Cron schedule (default: 03:30 daily, after CNPG backup window) |
| dedup.semanticThreshold | string | "0.92" | Cosine similarity threshold for semantic near-dedup (0–1, higher = stricter) |
| dedup.suspend | bool | false | Suspend the CronJob without deleting it |
| gatewayApi.enabled | bool | true | Enable Gateway API HTTPRoute |
| gatewayApi.host | string | "remnant-mcp.prod.example.com" | Hostname for the MCP HTTPRoute |
| gatewayApi.parentRefs | list | [{"name":"internal-shared","namespace":"kube-system"}] | Gateway parentRefs |
| image.pullPolicy | string | "IfNotPresent" | Image pull policy |
| image.repository | string | "ghcr.io/janip81/remnant" | Image repository |
| image.tag | string | "latest" | Image tag |
| imagePullSecrets | list | [] | Image pull secrets for private registries (e.g. ghcr.io) |
| mcp.allowedHosts | list | [] | 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.dnsRebindingProtection | bool | true | DNS 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.agentId | string | "default" | Default agent ID tag (overridden per client via X-Agent-ID header) |
| mem0.infer | string | "true" | Enable LLM extraction and deduplication on add_memory calls |
| mem0.userId | string | "default" | User ID namespace for stored memories |
| ollama.baseUrl | string | "http://ollama:11434" | Ollama server URL |
| ollama.embedBaseUrl | string | "" | 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.embedModel | string | "nomic-embed-text" | Embedding model (must be pulled in Ollama) |
| ollama.model | string | "qwen2.5:7b" | Chat model for LLM operations |
| redis.db | int | 0 | Redis database number |
| redis.enabled | bool | false | Enable Redis-backed async queue for add_memory (offloads Ollama LLM extraction to background, returns immediately) |
| redis.host | string | "redis-replication-master.redis.svc" | Redis host (master service) |
| redis.passwordSecret.key | string | "password" | Key within the secret |
| redis.passwordSecret.name | string | "" | Name of an existing Secret in the same namespace containing the Redis password |
| redis.port | int | 6379 | Redis port |
| replicaCount | int | 1 | Number of replicas |
| resources.limits.cpu | string | "500m" | CPU limit |
| resources.limits.memory | string | "512Mi" | Memory limit |
| resources.requests.cpu | string | "100m" | CPU request |
| resources.requests.memory | string | "256Mi" | Memory request |
| service.port | int | 8080 | Service port |
| service.type | string | "ClusterIP" | Service type |
| serviceMonitor.clusterLabel | string | "" | Value for the k8s_cluster relabel (defaults to Release.Namespace if unset) |
| serviceMonitor.enabled | bool | false | Enable Prometheus ServiceMonitor |
| serviceMonitor.interval | string | "30s" | Scrape interval |
| serviceMonitor.labels | object | {} | Additional labels (e.g. release: my-prometheus) to match your Prometheus operator selector |
| serviceMonitor.scrapeTimeout | string | "10s" | Scrape timeout |
| tagging.llmModel | string | "" | Override LLM model for tagging (empty = use ollama.model) |
| tagging.mode | string | "keyword" | Tagging mode: keyword (fast, rules-only), llm (Ollama at write time), hybrid (keyword at write + LLM nightly) |
| ui.enabled | bool | true | Enable the memory browser UI (separate pod, separate image) |
| ui.host | string | "" | Hostname for the UI HTTPRoute (leave empty to share MCP hostname with path routing) |
| ui.image.pullPolicy | string | "IfNotPresent" | Image pull policy |
| ui.image.repository | string | "ghcr.io/janip81/remnant-ui" | UI image repository (separate from MCP image) |
| ui.image.tag | string | "latest" | Image tag |
| ui.oauth2Proxy.allowedEmails | list | [] | Only these e-mail addresses may log in (empty = any user the issuer authenticates) |
| ui.oauth2Proxy.clientId | string | "remnant-ui" | OIDC client id (confidential client) |
| ui.oauth2Proxy.clientSecretKey | string | "client-secret" | |
| ui.oauth2Proxy.cookieExpire | string | "168h" | Session cookie lifetime |
| ui.oauth2Proxy.cookieSecretKey | string | "cookie-secret" | |
| ui.oauth2Proxy.enabled | bool | false | Put an oauth2-proxy sidecar (OIDC login) in front of the UI |
| ui.oauth2Proxy.existingSecret | string | "" | Existing Secret with the client secret and cookie secret |
| ui.oauth2Proxy.extraArgs | list | [] | Extra oauth2-proxy arguments |
| ui.oauth2Proxy.image.pullPolicy | string | "IfNotPresent" | |
| ui.oauth2Proxy.image.repository | string | "quay.io/oauth2-proxy/oauth2-proxy" | |
| ui.oauth2Proxy.image.tag | string | "v7.15.5" | |
| ui.oauth2Proxy.issuerUrl | string | "" | OIDC issuer, e.g. https://keycloak.example.com/realms/myrealm |
| ui.oauth2Proxy.port | int | 4180 | Port the proxy listens on |
| ui.oauth2Proxy.resources.limits.cpu | string | "100m" | |
| ui.oauth2Proxy.resources.limits.memory | string | "64Mi" | |
| ui.oauth2Proxy.resources.requests.cpu | string | "10m" | |
| ui.oauth2Proxy.resources.requests.memory | string | "32Mi" | |
| ui.port | int | 8081 | Port the UI listens on inside the container |
| ui.resources.limits.cpu | string | "200m" | |
| ui.resources.limits.memory | string | "128Mi" | |
| ui.resources.requests.cpu | string | "50m" | |
| ui.resources.requests.memory | string | "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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartremnant is pinned at v0.2.11 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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