mirror of
https://github.com/whit3rabbit/anyllm-proxy.git
synced 2026-09-22 08:00:51 +00:00
Localhost-only admin server (default port 3001) with: - Web UI dashboard with live request feed via WebSocket - SQLite-backed request log with pagination and filtering - Hot-reload config (model mappings, log level, log bodies) persisted to SQLite across restarts - Per-backend metrics with error rate tracking - Token-based auth (random UUID printed to stderr, or set ADMIN_TOKEN) - Automatic log retention purge (ADMIN_LOG_RETENTION_DAYS, default 7) Supporting changes: - Backend error types gain status_code() for request log entries - Metrics gains Clone, Default, error_rate() for admin aggregation - Routes track per-request context (RequestCtx) and log to admin - Error responses sanitized: internal details logged server-side only, clients receive generic messages (prevents infrastructure leaks) - SSE buffer guard (10 MB max) prevents unbounded memory from misbehaving backends - New deps: rusqlite (bundled), toml, indexmap, bytes, axum ws feature Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>