Skip to content
Opod

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 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.

Configure

HTTP interfaces

Files a manager mounts

Operate

Ports and paths at a glance

ItemDefaultSet by
Leader listener:8080listen / OPOD_LISTEN
Worker listener<LAN address>:8081; the worker binds and advertises the same addressOPOD_ADVERTISE_ADDR; OPOD_BIND_ADDR to bind another (from core v0.4.0)
Probe listener (always plain HTTP)offprobe_listen / OPOD_PROBE_LISTEN
Plain listeneroffplain_listen
llama.cpp RPC partsfrom 50052 upthe catalog entry's sharding.rpc_port_base
llama.cpp coordinator9001the catalog entry's sharding.coordinator_port
vLLM on Ray: GCS / coordinator6379 / 9100fixed
Data directory~/.opoddata_dir / OPOD_DATA_DIR
Config file~/.opod/config.yamlfixed (home directory of the user)
Store<data_dir>/state.db (SQLite)storage.dsn
Models directory<data_dir>/modelsstorage.models_dir; opod fetch and opod cache take --dir / OPOD_MODELS_DIR
Admin key file<data_dir>/admin.key, mode 0600the first standalone opod up
Worker record<data_dir>/node.yaml, mode 0600opod join
Catalog overrides~/.opod/catalog/, $OPOD_CATALOG_DIRsee Catalog format
Plan file/etc/opod/plan.jsonOPOD_PLAN_FILE
Auth snapshot/etc/opod-auth/auth.jsonOPOD_AUTH_FILE (off = no watcher)
Policy snapshot/etc/opod-auth/policy.jsonOPOD_POLICY_FILE (off = no watcher)

Timings at a glance

ItemValue
Heartbeat interval5 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 error10 s, then 20 s
Worker exits after refused re-registers6 in a row
Worker drain on stop10 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 up15 s / 45 s / 15, 30, 60 s / after 3 failures
HMAC clock window±5 min
CLI admin call limit5 min; 45 min for shard create, model add --node, model load, model move
opod down wait for the leader to exit10 s
Source check before model add5 s HEAD
Stale auth snapshot answer503, 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