Design decisions
Open core, licence and training
Why 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.
These decisions decide what you may do with opod's code, what a licence can and cannot do to your fleet, and where training fits.
Core is open, and never knows the control plane exists
The decision. Core (opod: the leader, the worker, the OpenAI-compatible gateway, the router, the engine drivers, sharding) is Apache-2.0 with no usage limit. Anyone may run, change and redistribute it, competitors included. Contributions use the DCO; there is no CLA. Core has no UI, no telemetry, no licence code, and no knowledge of the control plane, Kubernetes or any cloud.
The control plane drives core only through a frozen, additive-only contract: the /admin/v1 routes, the typed event and usage streams with cursors, the watched plan, auth and policy files, and a fixed list of environment variables. The wire types live in core's pkg/ packages, which use only the Go standard library. A test on each side holds the contract: core's CI walks its real router, and the control plane's make contract boots a real opod binary and calls every route it relies on.
The contract has one exception, made on purpose. In core v0.4.0 the usage stream (GET /admin/v1/usage/stream, feature usage_stream) leaves core with the usage table behind it. The leader pushes one OTLP log record per request instead (feature usage_push), and the control plane pulls only a leader without it, so a fleet that runs both versions loses no usage. Core's contract test records the retired key and holds it absent.
Why. A licence that forbids competing is the first clause a customer's lawyer reads, and it blocks adoption. The runtime on the request path is also the part a buyer most needs to read and trust. What the control plane sells (the ledger, placement, rollouts, autoscaling, usage export, SSO and the console) does not depend on hiding the leader.
What it gives you.
- You can read and audit every line that touches a request.
- You can run core by hand, with no control plane, on any machines:
opod upandopod join. See Core. - No lock-in on the request path. If you stop using the control plane, your leaders and workers are still core, and still Apache-2.0.
- The contract is frozen and additive-only, and tested from both sides, so a core release cannot quietly break the control plane. The one route ever retired, the usage stream, was retired by decision and with a replacement, not quietly.
What it costs.
- Anything the control plane wants from core must fit through the contract, or be added to it on purpose. Some cleanups wait on a contract change for that reason.
- A competitor may build a product on core. That is the point of the licence, not a side effect.
See Core reference → Admin API.
A licence never stops a running endpoint
The decision. The control plane is free, with every feature, up to 4 GPUs in total across all your cells. A licence key raises that number. The key is a signed string checked offline against a public key in the binary: nothing calls us to start, serve or check it. A licence limits new placements only:
- A placement beyond the licensed GPUs is refused
E-LICENCE, with the remedy. Running workers are never stopped. - An expired key keeps its full ceiling for a 60-day grace period. After grace, new placements fall back to the free tier; everything that runs keeps running, and the console stays usable.
- Nothing in the request path checks a licence. There is no remote kill.
Why. A licence check in the serving path turns an expired invoice into a production outage. No customer should have to plan for that, and a vendor should never be able to cause it.
What it gives you. Air-gapped installs that work, procurement answers that fit in one line, and a licence lapse that can never take traffic down. Only one number is licensed: GPUs. Endpoints, requests, tokens and users are not metered.
What it costs (for us, stated so you can trust it). An offline key cannot be revoked remotely. A modified binary could skip the check; we rely on the licence agreement for that, not on code in your serving path.
See Licensing.
One key, several cells
GPUs in use per cell, against the key's ceiling
Training is a Job beside endpoints
The decision. A training or offline run is a Job: a second kind of workload beside endpoints, with its own API (/api/v1/jobs), its own records and its own console page. It has no leader and no URL. It runs your container as a Kubernetes Job and claims GPUs from the same ledger as endpoint workers. Core never runs it.
Why. Serving hardware sits partly idle at night. A separate training scheduler would need its own view of the cards and would double-book them. One ledger for both cannot.
What it gives you.
- Fine-tunes and batch scripts fill idle cards without colliding with serving.
priority: preemptiblejobs give their card back when an endpoint create or an autoscale grow needs it, and resume from their checkpoint. Serving always wins.- Job GPU-seconds land in the same usage store and export as endpoints.
What it costs. opod is not a training platform: it runs your training image and does not write training loops, queues or experiment tracking. Fair share and queues across many teams belong to a scheduler such as Kueue. A preemptible job must checkpoint to resume; without a checkpoint store it runs with "no resume" stated.
See Jobs and batches.
Last updated · Source: content/docs/design/open-core-and-licence.mdx · View as Markdown