Documentation
Everything to install, run and operate opod: the open-source core runtime and the control plane that manages it on Kubernetes.
Get started
- What opod isopod has two parts. Core serves models on your GPUs. The control plane installs with one Helm chart and runs core for you on Kubernetes.
- QuickstartInstall the control plane on a Kubernetes cluster with GPUs, create an endpoint and send it a chat request.
- ConceptsThe words the control plane uses — endpoint, leader, worker, gang, cell, plan, ledger, placer, run — and how they fit together.
- ArchitectureWhat runs where in a cluster with opod, how a plan becomes pods, and what keeps working when the control plane is down.
- Use with LiteLLMPut LiteLLM in front of any opod endpoint with one key and a few lines of config. LiteLLM keeps users, budgets and limits; opod keeps the GPUs.
- RequirementsWhat the cluster, the nodes, the database and the network need before you install the control plane, and what the chart brings itself.
- Releases and versionsWhich control plane release these docs describe, what changed from 0.3.3, 0.3.2, 0.3.0 and 0.2.1, and how to verify what you pull.
- Docs for AI toolsEvery page of these docs as plain Markdown, an llms.txt index and one file per section, so an AI assistant or agent can read opod's docs fast and cheaply.
Design decisions
- Why opod is built this wayEvery major design decision in opod on one screen — what it gives you, what it costs, and the decision record behind it — and the architecture told as a short story.
- The leader/worker patternWhy each endpoint has its own leader, why workers join it, why the control plane stays off the request path, and what that costs compared with a shared router, a mesh or a Service per model.
- Why our own autoscaler, and KEDAWhy opod scales endpoints with an embedded loop that reads inference signals and the VRAM ledger, what KEDA gives instead, and when to pick each.
- Kubernetes, capacity and placementKubernetes as the only executor but never the truth, a ledger of measured VRAM, dedicated cards by default, advice instead of refusal, identities instead of names, and proof per engine and vendor.
- Install, images and rolloutsWhy the chart installs no service pods, why the database is the one thing you provide, why one deployer serves every target, and why images are pinned and changes are proven.
- What opod leaves to other layersWhy opod exports usage facts but no prices, keeps usage only as a buffer, leaves per-user keys and budgets to a gateway such as LiteLLM, and never logs prompts or answers.
- Open core, licence and trainingWhy core is Apache-2.0 and never knows the control plane exists, why a licence never stops a running endpoint, and why training runs as a Job beside endpoints.
Core
- Opod coreWhat opod core is, what it does, and what it leaves to other layers.
- InstallInstall the opod binary with the script, a .deb or .rpm package, or a build from source, and keep it up to date.
- First runStart a leader on one machine, serve a model, send the first request, and add a second machine.
- ConceptsThe terms opod core uses — leader, worker, engine, placement, gang, front door, cell door, keys and the watched files.
- ClustersJoin workers, pin them to a GPU, drain and remove them, and move a model between workers without failing a request.
- ModelsFind, install, load, unload, pin and remove models, add your own entries, serve LoRA adapters, and reclaim cache space.
- Sharding and gangsSplit a model across several machines with llama.cpp RPC, vLLM on Ray, or SGLang, run several gangs of one model, and read the failure codes.
- Managed modeRun a leader and its workers under an external manager — the environment contract, the watched files, and what survives a manager outage.
- SecurityHow opod core authenticates callers and workers, how to encrypt the north side, what it stores, and every network call it can make.
- TroubleshootingFixes for the common failures — the leader will not start, a worker will not join, a model is not found, or requests are slow.
Core CLI
- CLI overviewEvery opod command at a glance, and the conventions all of them share — help, JSON output, prompts, pickers, keys and colour.
- opod up, down, statusStart a leader, a front door or a cell door; stop the local leader; and check what is running.
- opod joinJoin a machine to a cluster as a worker, with a token or a certificate, pinned to one GPU and a memory budget if needed; what it does and how it fails.
- opod nodeList and inspect the cluster's nodes, drain and undrain them, and remove a node from the leader.
- opod modelSearch the catalog, install models on the leader or on named workers, manage what is in engine memory, move a model between workers, and remove it.
- opod shardCreate, list and remove gangs (one model split across several workers), run several gangs of one model, and read the errors a create returns.
- opod tokenCreate, list, expire, renew and revoke API keys and node join tokens on the leader, with the key format and the errors a caller sees.
- opod catalogList the model catalog embedded in the binary and export it as files you can read, copy or override.
- opod fetchDownload one GGUF file or a safetensors snapshot from Hugging Face into a models directory, exclusively, atomically and resumably, with no leader.
- opod cacheList a node's weight cache, prune what no plan references without touching files opod did not fetch, and keep a disk KV-cache tier under a size bound.
- opod imageList the container images opod publishes, show one image's node requirements and limits, and find the image that serves a model, offline.
- opod batchRun an OpenAI batch input file against any OpenAI-compatible URL at bounded concurrency, resumably, never sending a line twice.
- opod connect, disconnectPrint copy-paste settings that point a coding tool or SDK at your opod leader, and the steps to point it back. Neither command changes any file.
- config, doctor, update, completion, versionShow and locate the effective configuration, diagnose a node, update the binary, install shell completion, and print the version or the leader's feature keys.
Core reference
- Reference overviewAn index of every opod core interface — configuration, environment, HTTP APIs, streams, files, metrics, engines, images and the catalog.
- config.yamlEvery field of the opod configuration file, its default, and the environment variable that overrides it.
- Environment variablesEvery environment variable opod reads, who reads it (leader, worker or CLI), and what it does.
- Gateway API (/v1)The OpenAI-compatible and Anthropic-compatible routes a leader serves, how to authenticate, the opod request extensions, and the error codes.
- Admin API (/admin/v1)Every /admin/v1 route a leader serves, the request and response bodies, which routes are stable, and the capability flags.
- Usage and event streamsRead a leader's usage rows and lifecycle events by cursor, receive the usage push that replaces the usage stream from core v0.4.0, and subscribe to live notifications.
- Probes and load signalsThe unauthenticated /healthz, /readyz, /loadz and /gatewayz endpoints, what each field means, and how an external autoscaler should read them.
- Metrics, traces and logsThe Prometheus series a leader exposes on /metrics, the OpenTelemetry spans it emits, and how its logs are written and exported.
- Plan fileThe JSON plan a manager mounts for a leader — every field the leader reads, what each one changes, how the file is watched, and how the leader heals declared gangs.
- Auth snapshotThe JSON auth file a manager mounts — API keys as hashes, revocations, request classes, worker-certificate policy — and exactly how the leader applies it.
- Policy snapshotThe JSON policy file a manager mounts — load-aware routing, traffic split by revision, cache isolation, admission and request classes, wake rules and fallback.
- Front doors and cell doorsRun extra gateway copies for one endpoint with --role gateway, or one URL for many endpoints with --role door and its routes file.
- EnginesThe six engine drivers opod links, their names, aliases and default endpoints, how a worker launches them, and the engine flags a plan may set.
- Container imagesThe leader and worker images opod publishes, what each one needs from the node, the entrypoint's environment contract, labels and verification.
- Catalog formatThe YAML schema of a catalog entry, where opod looks for catalog files and in which order, and how to add or override a model.
- Worker APIThe HTTP routes a worker serves to its leader, how the leader authenticates to them, their bodies and errors, and what the register and heartbeat carry.
Control plane
- Control plane overviewWhat the opod control plane manages, the jobs it takes off your hands, and where each part is documented.
- LicensingThe free tier, licence keys, grace, burst headroom and several cells. A licence limits new placements only and never stops a running endpoint.
- Several cellsRun one control plane per cluster and a fleet control plane over them for one view and a licence key summed across cells.
Install
- Choose an install pathInstall on a Kubernetes cluster you already run, or let opodcp build a k3s cluster on bare machines first. Both end at helm install opodcp.
- Install on KubernetesInstall the opod chart on a cluster you already run (EKS, GKE Standard, AKS, k3s, on-premises), connect the database and reach the console.
- Install on bare machinesopodcp infra reads every host, runs a host gate, installs k3s server and agents over SSH, labels the nodes and writes a kubeconfig.
- Preflightopodcp preflight checks a cluster before helm install. Every row, its severity, and the flags that change what it checks.
- ConfigurationThe chart settings most installs change (database, admin token, install key, tolerations, leader placement, resources, exposure) and every OPODCP_* variable the binary reads.
- Air-gapped installMirror the images with their signatures, point the chart at your registry and model mirror, and keep signature verification working with no egress.
- High availabilityRun several control-plane replicas over one database with leader election and a shared event bus, your own or provided by the chart.
- Upgrade and uninstallUpgrade the control plane with one helm command, what happens to the store and to running endpoints, the way back, and a clean uninstall.
- Backup and restoreTake a logical dump of the control plane's store, restore it, move it to another Postgres, and bring the install key with it.
Endpoints
- Create an endpointCreate an endpoint from the console, the API or a scenario file, preview it first, watch it reach serving, and call it.
- The planEvery field of an endpoint's plan (apiVersion opod.io/v1) — model, workers, gangs, autoscale, workload, routing, doors, canary, eval and adapters.
- Placement and the VRAM ledgerHow the placer chooses cards from measured VRAM, dedicated and shared workers, the auto ladder, time-slicing, and what makes a plan fit or not.
- Gangs and parallelismSplit one model across several pods and machines with shard groups — pipeline, tensor and expert parallelism, LeaderWorkerSets, RDMA fabrics and the fabric proof.
- Mixed GPU vendorsRun NVIDIA, AMD, Intel and Tenstorrent cards in one cell — how each is measured, which engine runs where and what is proven, placement, gangs, growth and KV tiers across vendors.
- AutoscalingScale each endpoint on in-flight requests, queue, KV pressure and time to first token; sleep engines, scale to zero, grow onto other vendors, and hand scaling to KEDA.
- Rollouts and runsEvery change to an endpoint is a run with steps and proofs. Verified rollouts, canaries, eval gates, rollback, cancel, and how to read a run.
- API keysMint and revoke endpoint API keys, require them, bound the age of the auth snapshot, and revoke a key with the control plane down.
- Routing policy, doors and admissionHow a leader picks a worker, admits and ranks requests, falls back, and how front doors and the cell door put endpoints behind one URL.
- ModelsThe model catalog, adding your own models, versions with approval and licence, prefetch, the Hugging Face token, LoRA adapters and the node cache.
- KV cacheEvery KV-cache strategy in opod — sizing from plan.workload, 8-bit precision, prefix reuse, KV-aware routing, cache isolation and offload tiers — with formulas, knobs, proofs and costs.
- KV cache tiersHost-memory, disk and auto-sized KV tiers below VRAM — the engine arguments, the memory and disk claims, the pruner, the auto loop, gangs, and why the peer tier is refused.
- Gateways in frontPut LiteLLM or another gateway in front of an endpoint for per-user keys and budgets, join a Gateway API InferencePool, or serve Vertex AI's routes.
- Jobs and batchesRun training or batch Jobs on the same GPU ledger as serving, preemptible jobs that resume from checkpoints, and OpenAI's files and batches API.
Operate
- Console tourEvery page of the console built into opodcp, what it shows and what you can do there, and what its PARTIAL and TARGET chips mean.
- Doctor and runbookopodcp doctor prints one row per port and per check, embedded or connected, green or red. Every row, when it turns red, the flags, and how to fix it.
- ConnectorsPoint each port of the control plane at a service you already run — usage sink, events, logs, metrics, traces, OIDC, alerts, secrets, checkpoints, batch files, KV store.
- Connector setupWhat to prepare on each service before you connect it — the grants, policies, IdP client, webhooks and buckets — what Verify checks, what the control plane writes there, and each adapter's limits.
- Usage and exportUsage facts per request and per GPU-second, the summary and CSV export, GPU-hours per day, sinks, retention, and how to compute cost per team in your own tools.
- Metrics, events, alerts, logs and tracesWhat the control plane and the leaders publish. Prometheus series, the event stream, the bundled dashboards and rules, built-in alerts and rules, log shipping and traces.
- MachinesCordon, evacuate and drain a node safely, label it for leaders, time-slice it, prune its model cache, reset a card held outside opod, and clean remnants.
- TroubleshootingThe symptoms operators meet most often, what causes each one, and the command that fixes it, with the exact error codes and alerts.
Security
- Users, roles and SSOSign in with local users or your OIDC provider, the three roles, team scoping, machine tokens for automation, and retiring the bootstrap admin token.
- Network and TLSReach endpoints from outside through your Gateway or Ingress, turn on in-cluster TLS per endpoint, and close the network with NetworkPolicies and leader isolation.
- Worker identityHow workers prove who they are to their leader — HMAC-signed commands, join tokens, and per-worker certificates you can revoke while the pod still runs.
- Supply chainDigest-pinned images, offline cosign keyless verification against a trust list, enforce or warn, and model signature checks during prefetch.
- Audit log and evidenceThe hash-chained audit record of every change, its filters and export, chain verification and rebase, retention, and evidence files for an auditor.
- Threat modelFor a security reviewer — what the control plane protects, the trust boundaries and what enforces each, outage behaviour, what it does not claim, and the residual risks.
Reference
- REST APIEvery route the control plane serves, grouped by resource, with the minimum role each needs, plus auth, errors, conditional writes and the event stream.
- opodcp CLIEvery opodcp command and flag, with its type, default and a runnable example — install, preflight, audit, serve, doctor, keys, tokens, endpoints, models, scenarios, backup, restore, licence and more.
- Helm valuesEvery value of the opod chart with its default, what it does and what the chart refuses, for 0.3.0.
- Error codesEvery E- code the control plane returns, grouped by area, with its HTTP status, what causes it and what to do. Also the generic codes of the error body.