Skip to content
Opod

Core

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, then First run.

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

What core does

AreaWhat you get
GatewayPOST /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.
KeysAPI keys with one scope each (user, admin, node) and an optional expiry. Keys are stored as SHA-256 hashes.
RoutingPlacement 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.
Clusteropod join registers a worker. Workers heartbeat every 5 seconds. Leader-to-worker calls are signed with HMAC-SHA256 per node.
ModelsA curated catalog embedded in the binary, plus any Hugging Face repo, Ollama tag or local GGUF. Admission control, eviction, pinning and live model moves.
ShardingGangs 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.
ObservabilityPrometheus /metrics, /loadz for an external autoscaler, OTLP traces and logs, and cursor-based usage and event streams.
ManagementA 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).
  • 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).

Platforms

PlatformLeaderWorker
macOS 13+ on Apple Siliconyesyes (Ollama, MLX-LM, llama.cpp)
Linux x86_64yesyes (vLLM, SGLang, TensorRT-LLM, llama.cpp, Ollama)
Linux arm64yesyes (Ollama, llama.cpp)
Windowsthrough WSL2no

Worker container images exist for NVIDIA, AMD, Intel and Tenstorrent accelerators. See 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.

Last updated · Source: content/docs/core/index.mdx · View as Markdown