feat: self-hosted Honcho memory provider (PostgreSQL + Redis) #51

Open
Hermes wants to merge 15 commits from feat/honcho-only-rebased into master
Collaborator

What

Adds a self-hosted Honcho stack for AI-native user memory modeling, plus memory provider config for Hermes.

Architecture

ai_backend
  ├── hermes ─────── depends_on ──┐
  ├── honcho (API :8000) ←───────┘
  │   ├── honcho-db (PostgreSQL 15 + pgvector :5432)
  │   └── honcho-redis (Redis 8 :6379)
  └── ollama (:11434)
Service Image Role Persistence
honcho Build from source User memory API (FastAPI) /mnt/HoardingCow_docker_data/Honcho/data
honcho-db pgvector/pgvector:pg15 Vector storage (768d) /mnt/HoardingCow_docker_data/Honcho/postgres
honcho-redis redis:8 Session cache /mnt/HoardingCow_docker_data/Honcho/redis

Configuration

Models:

  • LLM (deriver, summary, dialectic): DeepSeek V3 Flash via OpenCode Go (https://opencode.ai/zen/go/v1)
  • Embeddings: nomic-embed-text on local Ollama (http://ollama:11434/v1)

Honcho features enabled:

  • Deriver — builds dynamic user profiles from conversation
  • Dialectic — 5 levels of user reasoning deduction
  • Summary — conversation summaries (short at 20 msg, long at 60 msg)
  • Peer Card — user identity card
  • Vector store — pgvector with 768 dimensions

Changes

File Change
ai/compose.yml Add honcho, honcho-db, honcho-redis services with Traefik + Authelia; depends_on: honcho on Hermes
ai/hermes/Dockerfile Add WORKDIR, httpx for OpenViking, openai + mautrix[encryption]
ai/honcho/Dockerfile Multi-stage build from source (pinned at main)
ai/honcho/config.toml Honcho config with model endpoints, feature toggles
ai/honcho/init-db.sql Enable pgvector extension

Notes

  • Honcho is exposed at honcho.lazyworkhorse.net via Traefik with Authelia auth
  • Hermes config.yaml already lists honcho as a memory provider — the stack just needs deployment
## What Adds a self-hosted [Honcho](https://github.com/plastic-labs/honcho) stack for AI-native user memory modeling, plus memory provider config for Hermes. ## Architecture ``` ai_backend ├── hermes ─────── depends_on ──┐ ├── honcho (API :8000) ←───────┘ │ ├── honcho-db (PostgreSQL 15 + pgvector :5432) │ └── honcho-redis (Redis 8 :6379) └── ollama (:11434) ``` | Service | Image | Role | Persistence | |---------|-------|------|-------------| | `honcho` | Build from source | User memory API (FastAPI) | `/mnt/HoardingCow_docker_data/Honcho/data` | | `honcho-db` | `pgvector/pgvector:pg15` | Vector storage (768d) | `/mnt/HoardingCow_docker_data/Honcho/postgres` | | `honcho-redis` | `redis:8` | Session cache | `/mnt/HoardingCow_docker_data/Honcho/redis` | ## Configuration **Models:** - **LLM** (deriver, summary, dialectic): DeepSeek V3 Flash via OpenCode Go (`https://opencode.ai/zen/go/v1`) - **Embeddings:** `nomic-embed-text` on local Ollama (`http://ollama:11434/v1`) **Honcho features enabled:** - Deriver — builds dynamic user profiles from conversation - Dialectic — 5 levels of user reasoning deduction - Summary — conversation summaries (short at 20 msg, long at 60 msg) - Peer Card — user identity card - Vector store — pgvector with 768 dimensions ## Changes | File | Change | |------|--------| | `ai/compose.yml` | Add `honcho`, `honcho-db`, `honcho-redis` services with Traefik + Authelia; `depends_on: honcho` on Hermes | | `ai/hermes/Dockerfile` | Add `WORKDIR`, `httpx` for OpenViking, `openai` + `mautrix[encryption]` | | `ai/honcho/Dockerfile` | Multi-stage build from source (pinned at `main`) | | `ai/honcho/config.toml` | Honcho config with model endpoints, feature toggles | | `ai/honcho/init-db.sql` | Enable pgvector extension | ## Notes - Honcho is exposed at `honcho.lazyworkhorse.net` via Traefik with Authelia auth - Hermes `config.yaml` already lists `honcho` as a memory provider — the stack just needs deployment
Hermes added 5 commits 2026-05-23 02:08:09 +00:00
- Remove OpenViking/Holographic dependencies (only Honcho stays)
- Remove httpx install from Dockerfile (was for OpenViking)
- Add Traefik routing for honcho at honcho.lazyworkhorse.net
- Add Authelia auth middleware on honcho HTTPS
- Add ai_net network to honcho for Traefik access
feat: configure Honcho LLM via OpenCode Go, cleanup compose.yml
Some checks failed
Build Hermes agent / build (pull_request) Has been cancelled
Build ollama (gfx906) / build (pull_request) Has been cancelled
58b5355780
Hermes force-pushed feat/honcho-only-rebased from 58b5355780 to 261536d74d 2026-05-23 02:16:56 +00:00 Compare
Hermes added 1 commit 2026-05-23 02:29:05 +00:00
fix: remove stray uv cache copy from builder stage
Some checks failed
Build Hermes agent / build (pull_request) Has been cancelled
Build ollama (gfx906) / build (pull_request) Has been cancelled
930cacad78
Hermes added 1 commit 2026-05-23 02:39:56 +00:00
fix: change honcho host port to 8001 (8000 taken by ddns-updater)
Some checks failed
Build Hermes agent / build (pull_request) Has been cancelled
Build ollama (gfx906) / build (pull_request) Has been cancelled
2678f34610
Hermes added 1 commit 2026-05-23 02:55:43 +00:00
fix: install dev deps (fastapi-cli) in honcho image
Some checks failed
Build Hermes agent / build (pull_request) Has been cancelled
Build ollama (gfx906) / build (pull_request) Has been cancelled
b4e1a0d87d
Hermes added 1 commit 2026-05-23 03:07:24 +00:00
fix: use system Python instead of uv's downloaded one in honcho image
Some checks failed
Build Hermes agent / build (pull_request) Has been cancelled
Build ollama (gfx906) / build (pull_request) Has been cancelled
4bcf0619b6
Hermes added 1 commit 2026-05-23 03:13:31 +00:00
fix: remove Traefik labels for Honcho (not exposed externally)
Some checks failed
Build Hermes agent / build (pull_request) Has been cancelled
Build ollama (gfx906) / build (pull_request) Has been cancelled
96d6c37cca
Hermes added 1 commit 2026-05-23 03:21:54 +00:00
fix: set EMBEDDING_VECTOR_DIMENSIONS=1536 (match existing DB columns)
Some checks failed
Build Hermes agent / build (pull_request) Has been cancelled
Build ollama (gfx906) / build (pull_request) Has been cancelled
a003663e6c
Hermes added 1 commit 2026-05-23 03:25:59 +00:00
fix: suppress deprecation warning for VECTOR_STORE_DIMENSIONS
Some checks failed
Build Hermes agent / build (pull_request) Has been cancelled
Build ollama (gfx906) / build (pull_request) Has been cancelled
c694505e9a
Hermes added 1 commit 2026-05-23 03:40:41 +00:00
feat: add OpenConcho web UI for Honcho (protege par Authelia)
Some checks failed
Build Hermes agent / build (pull_request) Has been cancelled
Build ollama (gfx906) / build (pull_request) Has been cancelled
71db97f78c
Some checks failed
Build Hermes agent / build (pull_request) Has been cancelled
Build ollama (gfx906) / build (pull_request) Has been cancelled
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin feat/honcho-only-rebased:feat/honcho-only-rebased
git checkout feat/honcho-only-rebased
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: gortium/compose#51
No description provided.