Home Ops Search

Honcho

Honcho runs in dev as a private API and background memory worker. The pod runs upstream migrations before either container starts. CloudNativePG stores messages, memories and vectors in the dedicated honcho-db cluster. PostgreSQL replication provides availability. Barman Cloud archives WAL continuously and takes a base backup daily at 03:40 UTC. The dedicated RustFS bucket cnpg-honcho has a 30-day recovery window.

On this page

Provision credentials before reconciliation #

Create these items in the existing home-ops 1Password vault. External Secrets syncs them into dev.

Item Field Value
honcho-db password Random PostgreSQL password
honcho jwt-secret Independent signing secret, at least 32 random bytes
litellm-honcho key Dedicated LiteLLM virtual key using the Honcho policy in keys.json
rustfs-cnpg-honcho username, password Dedicated RustFS access key and secret key

The LiteLLM key permits gpt-5.4-mini and text-embedding-3-small. LiteLLM forwards these workloads to OpenAI, including conversation content required for generation and embedding. Replacing the signing secret invalidates existing JWTs. Issue replacement tokens after the Honcho pod has reloaded.

Connect a client #

In-cluster clients in dev use http://honcho.dev.svc.cluster.local:8000 and need the pod label honcho-client: "true". For workstation access, use a localhost port-forward through your authorised Kubernetes context.

kubectl -n dev port-forward --address 127.0.0.1 svc/honcho 8000:8000

Mint an expiring, workspace-scoped JWT from the API container and store it in your client’s secret store. Use it as the API bearer token. Treat the output as a credential and keep it out of logs and shell history.

kubectl -n dev exec deploy/honcho -c api -- \
  /app/.venv/bin/python scripts/generate_jwt.py \
  --workspace my-workspace --expires 7d --print-only

Codex memory through LiteLLM #

Codex connects to https://litellm.ironstone.casa/honcho/mcp with the dedicated litellm-codex-honcho/key credential from 1Password. The gateway exposes remember for notes the user asks to save and recall for semantic search. Conversation capture is opt-in through the save tool. Notes and search queries use Honcho’s existing LiteLLM embedding route.

The gateway uses the workspace-scoped JWT in honcho-codex-mcp/jwt. Prepare the codex workspace and its codex peer before granting client access. Use codex as both the observer and observed peer when saving and searching. Rotate the gateway JWT before it expires and confirm a save and recall after External Secrets reloads LiteLLM.

Verify a rollout #

Check the honcho-db Cluster is Ready and the honcho Deployment has both containers ready. Use a synthetic workspace to check scoped JWT access, message ingestion, semantic search and chat. Confirm unauthenticated and wrong-workspace requests return HTTP 401. Check that a labelled pod can reach the API and an unlabelled pod cannot. For rollback, stop the application reconciliation before changing the database and preserve its volumes.

Check backups and restore #

When enabling backups on an existing cluster, wait for the database rollout and check that continuous archiving is healthy before starting the first backup. The schedule runs automatically at the next daily slot.

kubectl -n dev wait --for=condition=ContinuousArchiving cluster/honcho-db --timeout=10m
kubectl cnpg backup -n dev honcho-db --method=plugin --plugin-name=barman-cloud.cloudnative-pg.io
kubectl -n dev get scheduledbackup honcho-db
kubectl -n dev get backups.postgresql.cnpg.io -l cnpg.io/cluster=honcho-db
kubectl -n dev get objectstore honcho-rustfs-store

Restore into a separate CloudNativePG cluster using bootstrap.recovery and the honcho-rustfs-store ObjectStore with source server name honcho-db. Use a PostgreSQL image with pgvector available. Verify the restored data before redirecting Honcho. The bucket resides on the shared RustFS storage service.

Chart versions and upstream documentation: Helm chart reference.

Skip to content Close