Installation
GenAI Smart Router is self-managed software. Choose the release artifact that matches the host architecture and the operating model your team can secure, back up, upgrade, and troubleshoot.
| Shape | Best fit | State boundary | Canonical guide |
|---|---|---|---|
| Linux binary | Existing process supervision and reverse proxy | Host files plus SQLite or PostgreSQL | Binary |
| Docker Compose | One-host container deployment | Bind-mounted config/state plus SQLite by default | Docker Compose |
| Kubernetes | Cluster-owned ingress, Secrets, and storage | One-writer SQLite PVC or explicit PostgreSQL design | Kubernetes |
Release packages support Linux amd64 and arm64. Use immutable versioned
artifacts; do not deploy latest.
For a laptop or workstation trial, use the Local Quickstart instead of a release package.
Required Inputs
config.yaml, based onconfig.minimal.example.yamlfor local trials or the shippedconfig.example.yamlfor production-shaped catalogs;- protected
env.jsonor equivalent secret injection for provider keys; - an operator-generated
license.jsonand its configured public key; - at least one caller token and allowed deployment-defined model group;
- persistent state and usage storage;
- a TLS and network-access plan.
Never commit or publish provider keys, caller tokens, token hashes, signing keys, full production configs, or customer data.
Installation Flow
- Verify the package checksum, architecture, notices, and expected contents.
- Back up any existing config, state, license state, and usage database.
- Install the immutable binary or image and protected runtime files.
- Run the release's non-serving database migration gate when required.
- Start one router writer when using SQLite.
- Verify
/healthz,/readyz,/version,/docs/, authenticated/v1/models, and one representative request. - Verify ordinary callers receive
403 metrics-forbiddenfrom/metrics. - Record the deployed version and retain the previous artifact for rollback.
Rollback Planning
Before changing production, know whether the release permits package rollback against the current database or requires restoration of the pre-migration backup. Restore the previous artifact, reviewed config, runtime license inputs, and database snapshot as one coherent release state, then repeat the same smokes. See the Upgrade Guide.