On-Premise Deployment
CHANGENTS.AI can run entirely inside your own infrastructure, on-premises or in your private cloud. There are two routes:
| Route | Use it for |
|---|---|
| Kubernetes (Helm chart) | Production, high availability, air-gapped clusters |
| Docker Compose bundle (this page) | A single server: a pilot or a small department |
Start with the On-Premises Rollout Plan. It covers what to decide and prepare before either route.
When to choose on-premises
- You have strict data sovereignty requirements (government, defence, healthcare)
- Your security policy prohibits cloud processing of sensitive data
- You want to use private or fine-tuned models
- You need an air-gapped deployment (no internet access)
Architecture
Your infrastructure
┌──────────────────────────────────────────────────────────┐
│ nginx-lb (TLS, optional) :443 │
│ │ │
│ changents-frontend :8087 ── serves the app and /docs/ │
│ │ /api │
│ changents-backend :8085 (loopback only) │
│ │ │ │ │
│ ai-service :8003 MongoDB Redis │
│ │ │
│ ollama :11434 (text, embedding and vision models) │
│ │ │
│ your internal APIs and databases │
└──────────────────────────────────────────────────────────┘Only the frontend (and nginx-lb, when you use it) publishes a port to your network. The backend is bound to 127.0.0.1 for health checks. The model server, database and cache are not published.
Prerequisites
- Server: 16 CPU cores, 48 GiB RAM and 200 GB SSD is a workable pilot host (estimate). See Models & GPU for GPU sizing.
- OS: Ubuntu 22.04 LTS, RHEL 8+, or any Linux that runs Docker
- Docker: Docker Engine 24+ and Docker Compose 2.20+
- Registry access: the read-only pull token issued with your licence, or the image archive for your release. Load an archive with
scripts/onprem/import-images.sh <archive>, then skipdocker compose pull.
Installation
1. Download your bundle
In the app: Enterprise Setup → Download Bundle. You get a zip that embeds your licence key and pins the image versions your licence was issued for:
| File | What it is |
|---|---|
docker-compose.yml | The services above. Contains your licence key: do not share it |
.env.template | Every setting you fill in |
nginx-lb.conf | TLS termination in front of the frontend |
README.md | The quick start |
unzip changents-enterprise-*.zip -d changents && cd changents
echo "$PULL_TOKEN" | docker login ghcr.io -u <user-you-were-given> --password-stdin2. Fill in .env
cp .env.template .envGenerate each random value with openssl rand -hex 32.
| Setting | Required | Notes |
|---|---|---|
FRONTEND_URL | Yes | The address your users open |
JWT_SECRET, SESSION_SECRET | Yes | Random |
ENCRYPTION_KEY | Yes | Exactly 64 hex characters. Encrypts stored tool credentials |
AUDIT_CHAIN_KEY | Yes | Keys the audit trail. Never change it after go-live |
METRICS_TOKEN | Yes | Protects /metrics |
MONGO_PASSWORD, REDIS_PASSWORD | Yes | Random |
INTERNAL_SERVICE_TOKEN | Yes | Random; shared by the backend and agent service |
INTERNAL_SERVICE_TOKEN_NEXT | No | Only while rotating INTERNAL_SERVICE_TOKEN: both are accepted. See Zero-Trust Architecture |
INTERNAL_SERVICE_STATIC_TOKEN | No | reject to accept only signed internal calls |
AUDIT_CHAIN_KEY_REQUIRED | No | true refuses to start without AUDIT_CHAIN_KEY |
AIR_GAPPED | No | true removes every cloud model provider |
SMTP_HOST, SMTP_PORT, SMTP_USER, SMTP_PASS, EMAIL_FROM | For email | Your relay: sign-up verification and invitations |
OLLAMA_MODEL, OLLAMA_EMBED_MODEL, VISION_MODEL | No | Model overrides. See Models & GPU |
OLLAMA_NUM_THREAD | No | CPU hosts: pin it (default 8) and test on your hardware |
CHANGENTS_CHECKIN_URL | No | Set it to empty to switch off the daily licence check-in |
CAMERA_STREAM_ALLOWED_CIDRS | No | Camera subnets live camera feeds may come from, e.g. 10.40.0.0/16. Other private addresses stay refused |
ADMIN_EMAIL, SALES_EMAIL, SUPPORT_EMAIL, DPO_REPORT_RECIPIENT | No | Your own mailboxes for platform notifications. Unset, those notifications are not sent; an on-prem install never mails Changents |
docker compose refuses to start if a required value is missing, and names it.
Back up ENCRYPTION_KEY and AUDIT_CHAIN_KEY in your own secret manager now. Your licence key is already in docker-compose.yml, and nothing secret is needed to verify it.
3. Start the services
docker compose pull
docker compose up -d
docker compose ps4. Pull the models
docker exec changents-ollama ollama pull qwen2.5:7b # the text model chosen for your bundle
docker exec changents-ollama ollama pull nomic-embed-text # embeddings
docker exec changents-ollama ollama pull gemma3:4b # visionAir-gapped: copy the model files into the ollama_data volume from a connected machine instead.
5. Verify
curl http://localhost:8085/health
curl http://localhost:8085/api/health/providers
docker logs changents-backend 2>&1 | grep LicenseGate # expect "On-prem license OK"Open http://YOUR-SERVER:8087, sign up, and run one agent. Then work through the full verification checklist.
TLS
Terminate TLS in front of the frontend with the bundled nginx-lb:
- Put
fullchain.pemandprivkey.pemin./ssl/. - Replace
YOUR_DOMAINinnginx-lb.conf. docker compose --profile tls up -d
nginx-lb.conf already allows 310-second responses (agent runs) and 210 MB uploads (videos). If you use your own load balancer instead, give it the same limits.
What leaves your network
Nothing is needed from outside after the images and models are in place. Two things can leave if your network allows them:
- The daily licence check-in posts the model name and uptime to us. Set
CHANGENTS_CHECKIN_URL=(empty) in.envto switch it off. Air-gapped sites rely on offline validation alone. - Hosted models, only if you add cloud provider keys and do not run air-gapped. Leave them out to keep every model call inside your network.
These docs are served by your own frontend at /docs/ and make no outside requests.
Run content and keys
- No-Retention Mode is the default here. Runs keep no prompts, step results or outputs once they end: only ids, timings, token counts and digests. Set
DEFAULT_RETENTION=standardin.envto keep run history, orRETENTION_ENFORCED=trueto stop organisations choosing it. See No-Retention Mode. Upgrading an install that kept history? It switches to no retention unless you setDEFAULT_RETENTION=standardbefore upgrading. - Customer-Held Keys. Set
CUSTOMER_KEK(64 hex characters) in.env, and organisations can seal their integration credentials under it. Keep a copy: without it those credentials cannot be read. See Customer-Held Keys. - Private Inference API. Your own systems can call the install's models at
https://<your-host>/api/v1with an inference key. See Private Inference API.
Updates
# Set the new release's image tags in docker-compose.yml (or download a new bundle), then:
docker compose pull && docker compose up -dBack up MongoDB before every update. LTS releases are available for organisations that need longer testing periods.
Licensing
On-premises deployment needs a Business or Enterprise licence. The licence key (it starts CHNGT2.) carries its organisation, seats, agent packs and expiry, signed with a key only Changents.ai holds. Your install checks that signature offline at start-up and on every agent-execution request against a public key built into the platform, so no internet connection is needed until the expiry date. Keys in the older CHNGT- format are no longer accepted: ask for a reissued key. Contact sales@changents.ai for licensing.
Known limitations
- Cameras on your own network work once you list their subnets in
CAMERA_STREAM_ALLOWED_CIDRS. Any other private address is refused, and so are loopback and link-local addresses even if listed. - Tested on our machines, not yet a customer's. A generated bundle was installed end to end on 10 October 2026 and passed the verification checklist, including sign-up email through an SMTP relay and an agent run on the private model. Install on a test server first.