Skip to content

Operations

The Operations surfaces report process topology, launch local services, open operator terminals, manage model servers, and inspect data health. Browser controls require an administrator session.

Runtime checks

Bash
curl -fsS http://127.0.0.1:7000/api/health
curl -fsS http://127.0.0.1:7000/api/ready
curl -fsS http://127.0.0.1:7000/api/runtime
Route Result
/api/health application process responds
/api/ready database opens, data directory is writable, storage metadata is valid
/api/runtime source/frozen/container platform details
/api/diagnostics/services bounded dependency checks
/api/diagnostics/logs bounded application-log tail

Readiness does not probe every model, vector, search, speech, or MCP service.

Process layout

app.py configures middleware, route factories, static files, logging, process managers, and lifespan tasks. src/app_initializer.py:initialize_managers() constructs shared session, upload, memory, skill, preset, model, chat, and research managers.

flowchart TD
    A[app.py] --> B[shared managers]
    A --> C[route modules]
    A --> D[lifespan tasks]
    C --> E[data/app.db]
    C --> F[data JSON stores]
    C --> G[model and search services]
    D --> H[cleanup, scheduler, MCP, warmups]

Long response routes have prefix-based exemptions in app.py:_TIMEOUT_EXEMPT_PREFIXES. Chat, research, uploads, model downloads, image operations, and shell streams are among the exempt paths.

Operations guides