feat(mars): honcho-console phase 3 — metrics, stage models, spend

Honcho now exports Prometheus metrics (METRICS_ENABLED) for the
console's token, cost and latency views. The console prices each stage
with the models read from honcho-api's own environment, and reads
Honcho's OpenRouter key as a systemd credential for actual spend.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-02 23:54:48 +02:00
co-authored by Claude Opus 5.5
parent 8886b9a2b5
commit c13a0093c3
3 changed files with 25 additions and 5 deletions
+3
View File
@@ -20,6 +20,9 @@ let
DB_CONNECTION_URI = "postgresql+psycopg://honcho@/honcho?host=/run/postgresql";
AUTH_USE_AUTH = "false";
CACHE_ENABLED = "false";
# Read by honcho-console (token usage, latency). The deriver serves its own
# on 0.0.0.0:9090, which the firewall keeps off the LAN.
METRICS_ENABLED = "true";
HOME = "/tmp";
LLM_OPENAI_BASE_URL = "https://openrouter.ai/api/v1";