Runtime Integrator Guide
Use this guide if you are integrating nimi-runtime into a host application, launcher, or managed environment.
Core integration points
- Process lifecycle: start/stop/health
- Endpoint wiring: gRPC + HTTP health
- Route policy and provider key provisioning
- Audit and error observability
Minimal host checks
- Runtime process is reachable on gRPC endpoint.
/v1/runtime/healthis healthy.nimi doctor --jsonreports healthy daemon, provider, and model state.- First AI call succeeds through
nimi run "<prompt>"or an equivalent SDK call.
Recommended operations
- Use pinned runtime versions per deployment ring.
- Keep model/provider configuration declarative.
- Prefer
nimi provider setor env-backed credentials over app-local secret sprawl. - Aggregate logs with
traceIdpropagation.
If you are integrating from a source checkout instead of an installed binary, run the same commands through go run ./cmd/nimi ... from runtime/.
See Runtime Reference and Provider Matrix.