Compare commits

..

5 Commits

Author SHA1 Message Date
58b5355780 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
2026-05-22 22:07:53 -04:00
70e687a343 fix: restore ai/honcho/ files lost during rebase conflict resolution 2026-05-22 22:04:53 -04:00
3c8a5886e4 feat: honcho-only memory provider with Traefik + Authelia
- 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
2026-05-22 22:03:40 -04:00
611adb1a8b fix: restore command: gateway run and OPENROUTER_API_KEY variable 2026-05-22 22:03:25 -04:00
0924feb988 feat: keep only Honcho, remove OpenViking from memory providers 2026-05-22 22:03:25 -04:00
6 changed files with 31 additions and 109 deletions

View File

@@ -32,7 +32,7 @@ services:
- default - default
container_name: hermes container_name: hermes
entrypoint: ["/bin/bash", "-c", entrypoint: ["/bin/bash", "-c",
"bash /opt/data/hermes-tools/install.sh && bash /usr/local/bin/run-multi-gateways.sh && exec /usr/bin/tini -g -- /opt/hermes/docker/entrypoint.sh \"$@\"", "bash /opt/data/hermes-tools/install.sh && exec /usr/bin/tini -g -- /opt/hermes/docker/entrypoint.sh \"$@\"",
"hermes-entrypoint"] "hermes-entrypoint"]
restart: always restart: always
# Gateway run enables the internal API server on port 8642 # Gateway run enables the internal API server on port 8642
@@ -40,10 +40,6 @@ services:
environment: environment:
- OLLAMA_HOST=http://ollama:11434 - OLLAMA_HOST=http://ollama:11434
- HERMES_DASHBOARD=1 - HERMES_DASHBOARD=1
# Multi-profile: comma-separated list of profiles to run as gateways.
# The entrypoint reads this and starts one gateway per profile.
# Add profiles here when they exist on disk (e.g. default,researcher,writer)
- HERMES_PROFILES=ashley,claire,finn,matt,paul
- API_SERVER_ENABLED=true - API_SERVER_ENABLED=true
- API_SERVER_PORT=8642 - API_SERVER_PORT=8642
- API_SERVER_HOST=0.0.0.0 - API_SERVER_HOST=0.0.0.0
@@ -127,7 +123,6 @@ services:
- "traefik.http.routers.syncthing-https.tls.certresolver=njalla" - "traefik.http.routers.syncthing-https.tls.certresolver=njalla"
- "traefik.http.services.syncthing.loadbalancer.server.port=8384" - "traefik.http.services.syncthing.loadbalancer.server.port=8384"
ollama: ollama:
build: build:
context: ./ollama context: ./ollama
@@ -167,13 +162,11 @@ services:
container_name: honcho container_name: honcho
restart: unless-stopped restart: unless-stopped
ports: ports:
- "127.0.0.1:8001:8000" - "127.0.0.1:8000:8000"
environment: environment:
- DB_CONNECTION_URI=postgresql+psycopg://honcho:honcho_pass@honcho-db:5432/honcho - DB_CONNECTION_URI=postgresql+psycopg://honcho:honcho_pass@honcho-db:5432/honcho
- CACHE_URL=redis://honcho-redis:6379/0 - CACHE_URL=redis://honcho-redis:6379/0
- CACHE_ENABLED=true - CACHE_ENABLED=true
- EMBEDDING_VECTOR_DIMENSIONS=1536
- VECTOR_STORE_DIMENSIONS=
volumes: volumes:
- /mnt/HoardingCow_docker_data/Honcho/data:/app/data - /mnt/HoardingCow_docker_data/Honcho/data:/app/data
networks: networks:
@@ -184,32 +177,23 @@ services:
condition: service_healthy condition: service_healthy
honcho-redis: honcho-redis:
condition: service_healthy condition: service_healthy
# --- OpenConcho: Honcho web UI ---
openconcho:
build: ./openconcho
container_name: openconcho
restart: unless-stopped
networks:
- ai_backend
- ai_net
labels: labels:
- "traefik.enable=true" - "traefik.enable=true"
# Router for HTTP + redirect to HTTPS # Router for HTTP + redirect to HTTPS
- "traefik.http.routers.openconcho-http.rule=Host(`honcho.lazyworkhorse.net`)" - "traefik.http.routers.honcho-http.rule=Host(`honcho.lazyworkhorse.net`)"
- "traefik.http.routers.openconcho-http.entrypoints=web" - "traefik.http.routers.honcho-http.entrypoints=web"
- "traefik.http.routers.openconcho-http.middlewares=redirect-to-https" - "traefik.http.routers.honcho-http.middlewares=redirect-to-https"
# Router for HTTPS with TLS — protected by Authelia # Router for HTTPS with TLS — protected by Authelia
- "traefik.http.routers.openconcho-https.rule=Host(`honcho.lazyworkhorse.net`)" - "traefik.http.routers.honcho-https.rule=Host(`honcho.lazyworkhorse.net`)"
- "traefik.http.routers.openconcho-https.entrypoints=websecure" - "traefik.http.routers.honcho-https.entrypoints=websecure"
- "traefik.http.routers.openconcho-https.tls=true" - "traefik.http.routers.honcho-https.tls=true"
- "traefik.http.routers.openconcho-https.tls.certresolver=njalla" - "traefik.http.routers.honcho-https.tls.certresolver=njalla"
- "traefik.http.routers.openconcho-https.middlewares=hermes-auth" - "traefik.http.routers.honcho-https.middlewares=hermes-auth"
# Service Loadbalancer # Service Loadbalancer
- "traefik.http.services.openconcho.loadbalancer.server.port=80" - "traefik.http.services.honcho.loadbalancer.server.port=8000"
honcho-db: honcho-db:
image: pgvector/pgvector:pg15 image: pgvector/pgvector:pg15

View File

@@ -43,12 +43,6 @@ RUN apt-get update && \
# ---------- UV ---------- # ---------- UV ----------
COPY --chmod=0755 --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/ COPY --chmod=0755 --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/
# ---------- Matrix bridge + extra pip deps ----------
# Previously installed inline at container startup and persisted via volume mount.
# Now baked into the image so the fragile venv volume mount can be removed.
RUN . /opt/hermes/.venv/bin/activate && \
uv pip install --no-cache-dir 'mautrix[encryption]' openai
WORKDIR /opt/hermes WORKDIR /opt/hermes
# ---------- Matrix bridge + extra pip deps ---------- # ---------- Matrix bridge + extra pip deps ----------
@@ -84,10 +78,6 @@ os.remove(tgz)
print('himalaya v1.2.0 installed') print('himalaya v1.2.0 installed')
PYEOF PYEOF
# ---------- Install multi-gateway launcher ----------
# Launches one gateway process per profile (HERMES_PROFILES env var)
COPY --chmod=0755 run-multi-gateways.sh /usr/local/bin/run-multi-gateways.sh
# ---------- Runtime ---------- # ---------- Runtime ----------
USER hermes USER hermes
ENV HERMES_HOME=/opt/data ENV HERMES_HOME=/opt/data

View File

@@ -1,32 +0,0 @@
#!/bin/bash
# Multi-gateway launcher for HERMES_PROFILES env var.
# Reads comma-separated profile names, spawns one gateway per profile.
# Designed to run before the main entrypoint — gateways run in background.
set -e
if [ -z "${HERMES_PROFILES}" ]; then
echo "HERMES_PROFILES not set — skipping multi-gateway launch"
exit 0
fi
# Source venv to make 'hermes' available (entrypoint.sh sources it later,
# but we need it NOW for the background gateways)
HERMES_BIN="/opt/hermes/.venv/bin/hermes"
if [ ! -x "$HERMES_BIN" ]; then
echo "ERROR: hermes binary not found at $HERMES_BIN"
exit 1
fi
mkdir -p /opt/data/logs
IFS=',' read -ra PROFILES <<< "${HERMES_PROFILES}"
for profile in "${PROFILES[@]}"; do
profile="$(echo "${profile}" | xargs)" # trim whitespace
[ -z "${profile}" ] && continue
echo "Starting gateway for profile: ${profile}"
nohup env API_SERVER_ENABLED=false API_SERVER_KEY= gosu hermes "$HERMES_BIN" --profile "${profile}" gateway run \
>> "/opt/data/logs/gateway-${profile}.log" 2>&1 &
done
echo "All gateways launched: ${HERMES_PROFILES}"

View File

@@ -17,9 +17,9 @@ WORKDIR /app
ENV UV_COMPILE_BYTECODE=1 ENV UV_COMPILE_BYTECODE=1
ENV UV_LINK_MODE=copy ENV UV_LINK_MODE=copy
ENV UV_PYTHON=/usr/local/bin/python3.13
RUN uv sync --frozen RUN --mount=type=cache,target=/root/.cache/uv \
uv sync --frozen --no-group dev
# --- runtime stage --- # --- runtime stage ---
FROM python:3.13-slim-bookworm FROM python:3.13-slim-bookworm
@@ -28,6 +28,7 @@ RUN groupadd --system app && \
useradd --system --gid app --create-home app useradd --system --gid app --create-home app
COPY --from=builder /app /app COPY --from=builder /app /app
COPY --from=builder /root/.cache/uv /root/.cache/uv
WORKDIR /app WORKDIR /app
ENV PATH="/app/.venv/bin:$PATH" ENV PATH="/app/.venv/bin:$PATH"

View File

@@ -29,7 +29,7 @@ URL = "redis://honcho-redis:6379/0"
[llm] [llm]
DEFAULT_MAX_TOKENS = 4096 DEFAULT_MAX_TOKENS = 4096
# Embeddings via Ollama (nomic-embed-text recommended on this system) # Embeddings via Ollama local (nomic-embed-text)
[embedding] [embedding]
VECTOR_DIMENSIONS = 768 VECTOR_DIMENSIONS = 768
MAX_INPUT_TOKENS = 8192 MAX_INPUT_TOKENS = 8192
@@ -40,6 +40,7 @@ model = "nomic-embed-text"
base_url = "http://ollama:11434/v1" base_url = "http://ollama:11434/v1"
# --- Deriver (user representation builder) --- # --- Deriver (user representation builder) ---
# Uses DeepSeek V3 Flash via OpenCode Go
[deriver] [deriver]
ENABLED = true ENABLED = true
WORKERS = 1 WORKERS = 1
@@ -48,10 +49,11 @@ FLUSH_ENABLED = true
[deriver.model_config] [deriver.model_config]
transport = "openai" transport = "openai"
model = "hermes-3" model = "deepseek/deepseek-v3-flash"
base_url = "http://ollama:11434/v1" base_url = "https://opencode.ai/zen/go/v1"
# --- Dialectic --- # --- Dialectic ---
# All levels use DeepSeek V3 Flash via OpenCode Go
[dialectic] [dialectic]
MAX_INPUT_TOKENS = 4096 MAX_INPUT_TOKENS = 4096
SESSION_HISTORY_MAX_TOKENS = 8192 SESSION_HISTORY_MAX_TOKENS = 8192
@@ -61,36 +63,36 @@ MAX_TOOL_ITERATIONS = 1
MAX_OUTPUT_TOKENS = 512 MAX_OUTPUT_TOKENS = 512
[dialectic.levels.minimal.model_config] [dialectic.levels.minimal.model_config]
transport = "openai" transport = "openai"
model = "hermes-3" model = "deepseek/deepseek-v3-flash"
base_url = "http://ollama:11434/v1" base_url = "https://opencode.ai/zen/go/v1"
[dialectic.levels.low] [dialectic.levels.low]
MAX_TOOL_ITERATIONS = 3 MAX_TOOL_ITERATIONS = 3
[dialectic.levels.low.model_config] [dialectic.levels.low.model_config]
transport = "openai" transport = "openai"
model = "hermes-3" model = "deepseek/deepseek-v3-flash"
base_url = "http://ollama:11434/v1" base_url = "https://opencode.ai/zen/go/v1"
[dialectic.levels.medium] [dialectic.levels.medium]
MAX_TOOL_ITERATIONS = 2 MAX_TOOL_ITERATIONS = 2
[dialectic.levels.medium.model_config] [dialectic.levels.medium.model_config]
transport = "openai" transport = "openai"
model = "hermes-3" model = "deepseek/deepseek-v3-flash"
base_url = "http://ollama:11434/v1" base_url = "https://opencode.ai/zen/go/v1"
[dialectic.levels.high] [dialectic.levels.high]
MAX_TOOL_ITERATIONS = 4 MAX_TOOL_ITERATIONS = 4
[dialectic.levels.high.model_config] [dialectic.levels.high.model_config]
transport = "openai" transport = "openai"
model = "hermes-3" model = "deepseek/deepseek-v3-flash"
base_url = "http://ollama:11434/v1" base_url = "https://opencode.ai/zen/go/v1"
[dialectic.levels.max] [dialectic.levels.max]
MAX_TOOL_ITERATIONS = 10 MAX_TOOL_ITERATIONS = 10
[dialectic.levels.max.model_config] [dialectic.levels.max.model_config]
transport = "openai" transport = "openai"
model = "hermes-3" model = "deepseek/deepseek-v3-flash"
base_url = "http://ollama:11434/v1" base_url = "https://opencode.ai/zen/go/v1"
# --- Summary --- # --- Summary ---
[summary] [summary]
@@ -100,8 +102,8 @@ MESSAGES_PER_LONG_SUMMARY = 60
[summary.model_config] [summary.model_config]
transport = "openai" transport = "openai"
model = "hermes-3" model = "deepseek/deepseek-v3-flash"
base_url = "http://ollama:11434/v1" base_url = "https://opencode.ai/zen/go/v1"
# --- Dream --- # --- Dream ---
[dream] [dream]

View File

@@ -1,23 +0,0 @@
# build stage
FROM node:22-bookworm AS builder
ENV PNPM_HOME=/pnpm
ENV PATH=$PNPM_HOME:$PATH
RUN corepack enable && corepack prepare pnpm@latest --activate
WORKDIR /app
RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
ARG OPENCONCHO_SHA=e490d911fcb27ee193558fd9a28856cde2057665
RUN git clone --depth 1 https://github.com/offendingcommit/openconcho.git /app && \
git -C /app fetch --depth 1 origin ${OPENCONCHO_SHA} && \
git -C /app checkout ${OPENCONCHO_SHA}
RUN pnpm install --frozen-lockfile
RUN pnpm --filter @openconcho/web build
# runtime stage
FROM nginx:alpine
COPY --from=builder /app/packages/web/dist /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]