---
title: "Reference overview"
description: "An index of every opod core interface — configuration, environment, HTTP APIs, streams, files, metrics, engines, images and the catalog."
url: "https://opod.io/docs/core-reference/"
markdown_url: "https://opod.io/docs/core-reference.md"
section: "Core reference"
last_updated: "2026-11-01"
---

# 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](https://opod.io/docs/core-cli/).

```bash
opod version --features | tr , '\n' | head -3   # what this binary speaks
```

This section is the exact contract of opod core: every field, route and variable, with its default. For the commands, see the [CLI reference](https://opod.io/docs/core-cli/).

## Configure

- [config.yaml](https://opod.io/docs/core-reference/configuration/): Every field, default and override.
- [Environment variables](https://opod.io/docs/core-reference/environment/): Leader, worker, shared and CLI-only variables.
- [Engines](https://opod.io/docs/core-reference/engines/): Drivers, aliases, endpoints and engine flags.
- [Catalog format](https://opod.io/docs/core-reference/catalog/): The model entry schema and override order.

## HTTP interfaces

- [Gateway API](https://opod.io/docs/core-reference/gateway-api/): `/v1` routes, extensions, headers and errors.
- [Admin API](https://opod.io/docs/core-reference/admin-api/): Every `/admin/v1` route and its body.
- [Usage and event streams](https://opod.io/docs/core-reference/streams/): Cursor-based usage rows and lifecycle events, and the usage push that replaces the usage stream in the next release.
- [Probes and load signals](https://opod.io/docs/core-reference/probes/): `/healthz`, `/readyz`, `/loadz`, `/gatewayz`.
- [Worker API](https://opod.io/docs/core-reference/worker-api/): What a worker serves to its leader.

## Files a manager mounts

- [Plan file](https://opod.io/docs/core-reference/plan-file/): The endpoint's one model, gangs and context.
- [Auth snapshot](https://opod.io/docs/core-reference/auth-snapshot/): Keys as hashes, revocations, certificate policy.
- [Policy snapshot](https://opod.io/docs/core-reference/policy-snapshot/): Routing, admission, wake and fallback.
- [Door routes](https://opod.io/docs/core-reference/front-doors/): Front doors and the cell door's routes file.

## Operate

- [Metrics, traces and logs](https://opod.io/docs/core-reference/metrics/): Prometheus series, spans and log export.
- [Container images](https://opod.io/docs/core-reference/images/): Leader and worker images and their contract.

## 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](https://opod.io/docs/core-reference/catalog/)                   |
| 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](https://opod.io/docs/core-reference/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`](https://github.com/opod-io/opod-core/tree/main/pkg) (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](https://github.com/opod-io/opod-core/blob/main/CHANGELOG.md).
