Core reference
Reference overview
An index of every opod core interface — configuration, environment, HTTP APIs, streams, files, metrics, engines, images and the catalog.
In short
This section is the exact contract of opod core: every config field, environment variable, HTTP route, file format and metric, with its default. Use it when you script opod or write a manager for it. For the commands, see the CLI reference.
opod version --features | tr , '\n' | head -3 # what this binary speaksThis section is the exact contract of opod core: every field, route and variable, with its default. For the commands, see the CLI reference.
Configure
config.yaml →
Environment variables →
Engines →
Catalog format →
HTTP interfaces
Gateway API →
/v1 routes, extensions, headers and errors.Admin API →
/admin/v1 route and its body.Usage and event streams →
Probes and load signals →
/healthz, /readyz, /loadz, /gatewayz.Worker API →
Files a manager mounts
Plan file →
Auth snapshot →
Policy snapshot →
Door routes →
Operate
Metrics, traces and logs →
Container images →
Ports and paths at a glance
| Item | Default | Set by |
|---|---|---|
| Leader listener | :8080 | listen / OPOD_LISTEN |
| Worker listener | <LAN address>:8081; the worker binds and advertises the same address | OPOD_ADVERTISE_ADDR; OPOD_BIND_ADDR to bind another (from core v0.4.0) |
| Probe listener (always plain HTTP) | off | probe_listen / OPOD_PROBE_LISTEN |
| Plain listener | off | plain_listen |
| llama.cpp RPC parts | from 50052 up | the catalog entry's sharding.rpc_port_base |
| llama.cpp coordinator | 9001 | the catalog entry's sharding.coordinator_port |
| vLLM on Ray: GCS / coordinator | 6379 / 9100 | fixed |
| Data directory | ~/.opod | data_dir / OPOD_DATA_DIR |
| Config file | ~/.opod/config.yaml | fixed (home directory of the user) |
| Store | <data_dir>/state.db (SQLite) | storage.dsn |
| Models directory | <data_dir>/models | storage.models_dir; opod fetch and opod cache take --dir / OPOD_MODELS_DIR |
| Admin key file | <data_dir>/admin.key, mode 0600 | the first standalone opod up |
| Worker record | <data_dir>/node.yaml, mode 0600 | opod join |
| Catalog overrides | ~/.opod/catalog/, $OPOD_CATALOG_DIR | see Catalog format |
| Plan file | /etc/opod/plan.json | OPOD_PLAN_FILE |
| Auth snapshot | /etc/opod-auth/auth.json | OPOD_AUTH_FILE (off = no watcher) |
| Policy snapshot | /etc/opod-auth/policy.json | OPOD_POLICY_FILE (off = no watcher) |
Timings at a glance
| Item | Value |
|---|---|
| Heartbeat interval | 5 s; the engine is asked with a 2 s limit on each beat |
Heartbeat bound (lost, engine-silent) | 30 s (router.heartbeat_max_age_seconds; 0 = 60 s) |
| Worker heartbeat retry after an error | 10 s, then 20 s |
| Worker exits after refused re-registers | 6 in a row |
| Worker drain on stop | 10 s (OPOD_DRAIN_SECONDS, 0 to 3600) |
| Watched-file re-read (plan, auth, policy) | 10 s |
| Gang heal: look / absent before heal / back-off / give up | 15 s / 45 s / 15, 30, 60 s / after 3 failures |
| HMAC clock window | ±5 min |
| CLI admin call limit | 5 min; 45 min for shard create, model add --node, model load, model move |
opod down wait for the leader to exit | 10 s |
Source check before model add | 5 s HEAD |
| Stale auth snapshot answer | 503, Retry-After: 30 |
Versioning
The admin contract version is v1 (GET /admin/v1/version). Routes marked stable on the Admin API page only gain fields. Feature keys on /admin/v1/capabilities are only added. The wire types live in core's own Go packages pkg/adminapi, pkg/nodeapi and pkg/catalog (module github.com/opod-io/opod-core). pkg/ exists so a manager can decode the wire; it is not a supported public API, and it carries no client. What changed in each release is in the changelog.
Last updated · Source: content/docs/core-reference/index.mdx · View as Markdown