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
4 changed files with 18 additions and 63 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

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

@@ -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]