---
title: "Opod core"
description: "What opod core is, what it does, and what it leaves to other layers."
url: "https://opod.io/docs/core/"
markdown_url: "https://opod.io/docs/core.md"
section: "Core"
last_updated: "2026-11-01"
---

# Opod core

> What opod core is, what it does, and what it leaves to other layers.

## In short

Opod core is the open-source runtime: one Go binary, `opod`, under Apache-2.0 with no usage limit. A leader (`opod up`) gives your machines one OpenAI-compatible URL; workers (`opod join`) run the engines that hold the models. Start with [Install](https://opod.io/docs/core/install/), then [First run](https://opod.io/docs/core/first-run/).

```bash
opod up                                                     # on the first machine: the leader
opod join "http://leader:8080?token=sk-orc-<node-token>"    # on each machine with a GPU
```

Core puts open-weight models on your own machines behind one OpenAI-compatible URL and one API key.

Core has two roles:

- A **leader** (`opod up`). It runs the gateway, the router, API keys, join tokens and the admin API `/admin/v1`.
- A **worker** (`opod join`). It runs next to an inference engine (vLLM, SGLang, llama.cpp, Ollama, MLX-LM or TensorRT-LLM), reports what that engine holds, and serves requests the leader sends it.

A client talks only to the leader. The leader picks a worker that holds the requested model and forwards the request. A model that is too big for one machine can be split across several workers as a **gang** (one model served by a group of processes on several machines).

- [Install](https://opod.io/docs/core/install/): The installer, packages, and a build from source.
- [First run](https://opod.io/docs/core/first-run/): One machine, one model, one request.
- [Concepts](https://opod.io/docs/core/concepts/): Leader, worker, placement, gang, front door.
- [Clusters](https://opod.io/docs/core/clusters/): Join workers, drain them, move models.
- [CLI reference](https://opod.io/docs/core-cli/): Every `opod` command and flag.
- [API reference](https://opod.io/docs/core-reference/): Gateway, admin API, streams, files, metrics.

## What core does

| Area          | What you get                                                                                                                                                                                                    |
| ------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Gateway       | `POST /v1/chat/completions`, `/v1/embeddings`, `/v1/rerank`, `GET /v1/models`, and Anthropic Messages (`POST /v1/messages`) translated to the chat path. Streaming, tools, structured output and image input.   |
| Keys          | API keys with one scope each (`user`, `admin`, `node`) and an optional expiry. Keys are stored as SHA-256 hashes.                                                                                               |
| Routing       | Placement by residency: a worker serves what its engine has loaded. The router picks the least-loaded worker that holds the model, with optional load-aware scoring, prefix-cache affinity and sticky sessions. |
| Cluster       | `opod join` registers a worker. Workers heartbeat every 5 seconds. Leader-to-worker calls are signed with HMAC-SHA256 per node.                                                                                 |
| Models        | A curated catalog embedded in the binary, plus any Hugging Face repo, Ollama tag or local GGUF. Admission control, eviction, pinning and live model moves.                                                      |
| Sharding      | Gangs on three backends: llama.cpp RPC (layer split), vLLM with Ray (tensor and pipeline parallel), and SGLang's own multi-node launcher. Several gangs of one model can serve in parallel.                     |
| Observability | Prometheus `/metrics`, `/loadz` for an external autoscaler, OTLP traces and logs, and cursor-based usage and event streams.                                                                                     |
| Management    | A stable admin API (`/admin/v1`) and three watched files (plan, auth snapshot, policy snapshot) so an external manager can run a leader.                                                                        |

## What core does not do

Core is the runtime only. These are out of scope on purpose:

- **A web UI, SSO, RBAC or teams.** Core is CLI-only, and `/` answers `404`. A console belongs to a manager such as the opod control plane.
- **Per-key rate limits, quotas or model allowlists.** A key is an identity: who calls, with which scope, until when. Put limits in the gateway in front of the endpoint (LiteLLM, for example). Every request is recorded per key in the usage stream (from core v0.4.0, in the [usage push](https://opod.io/docs/core-reference/streams/#usage-push)).
- **Cost or billing.** The usage records count tokens, never money.
- **A usage database.** From core v0.4.0 the leader keeps no usage table. It pushes each record to an OTLP/HTTP receiver you run, such as an OpenTelemetry Collector, and holds a bounded queue (64 MiB by default) while the receiver is away.
- **Proxying to model vendors.** Core serves your weights on your machines. It holds no vendor keys.
- **Kubernetes objects.** `opod` is a process. Scheduling processes across a fleet is an orchestrator's job.
- **Training and fine-tuning.** Core serves inference. It can serve a LoRA adapter you trained elsewhere.
- **Telemetry.** Core never calls home. `opod update` is the only command that contacts GitHub, and only when you run it.

The leader keeps its state in SQLite. A leader that fails is restarted, not replaced by a standby, and node traffic runs over your own network: the leader can require a certificate from every worker (`nodeMtls`) and signs every call it makes to one ([Security](https://opod.io/docs/core/security/)).

## Platforms

| Platform                   | Leader       | Worker                                              |
| -------------------------- | ------------ | --------------------------------------------------- |
| macOS 13+ on Apple Silicon | yes          | yes (Ollama, MLX-LM, llama.cpp)                     |
| Linux x86_64               | yes          | yes (vLLM, SGLang, TensorRT-LLM, llama.cpp, Ollama) |
| Linux arm64                | yes          | yes (Ollama, llama.cpp)                             |
| Windows                    | through WSL2 | no                                                  |

Worker container images exist for NVIDIA, AMD, Intel and Tenstorrent accelerators. See [Images](https://opod.io/docs/core-reference/images/).

## Licence

Core is Apache-2.0. You may use it commercially, modify it, redistribute it and compete with it. Keep the licence and notice files, and state significant changes. Contributions use the Developer Certificate of Origin (`git commit -s`); there is no CLA. Source: [github.com/opod-io/opod-core](https://github.com/opod-io/opod-core).
