Skip to content
Back to the app

On-Premise Deployment ​

CHANGENTS.AI can run entirely inside your own infrastructure, on-premises or in your private cloud. There are two routes:

RouteUse 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 skip docker 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:

FileWhat it is
docker-compose.ymlThe services above. Contains your licence key: do not share it
.env.templateEvery setting you fill in
nginx-lb.confTLS termination in front of the frontend
README.mdThe quick start
bash
unzip changents-enterprise-*.zip -d changents && cd changents
echo "$PULL_TOKEN" | docker login ghcr.io -u <user-you-were-given> --password-stdin

2. Fill in .env ​

bash
cp .env.template .env

Generate each random value with openssl rand -hex 32.

SettingRequiredNotes
FRONTEND_URLYesThe address your users open
JWT_SECRET, SESSION_SECRETYesRandom
ENCRYPTION_KEYYesExactly 64 hex characters. Encrypts stored tool credentials
AUDIT_CHAIN_KEYYesKeys the audit trail. Never change it after go-live
METRICS_TOKENYesProtects /metrics
MONGO_PASSWORD, REDIS_PASSWORDYesRandom
INTERNAL_SERVICE_TOKENYesRandom; shared by the backend and agent service
INTERNAL_SERVICE_TOKEN_NEXTNoOnly while rotating INTERNAL_SERVICE_TOKEN: both are accepted. See Zero-Trust Architecture
INTERNAL_SERVICE_STATIC_TOKENNoreject to accept only signed internal calls
AUDIT_CHAIN_KEY_REQUIREDNotrue refuses to start without AUDIT_CHAIN_KEY
AIR_GAPPEDNotrue removes every cloud model provider
SMTP_HOST, SMTP_PORT, SMTP_USER, SMTP_PASS, EMAIL_FROMFor emailYour relay: sign-up verification and invitations
OLLAMA_MODEL, OLLAMA_EMBED_MODEL, VISION_MODELNoModel overrides. See Models & GPU
OLLAMA_NUM_THREADNoCPU hosts: pin it (default 8) and test on your hardware
CHANGENTS_CHECKIN_URLNoSet it to empty to switch off the daily licence check-in
CAMERA_STREAM_ALLOWED_CIDRSNoCamera 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_RECIPIENTNoYour 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 ​

bash
docker compose pull
docker compose up -d
docker compose ps

4. Pull the models ​

bash
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         # vision

Air-gapped: copy the model files into the ollama_data volume from a connected machine instead.

5. Verify ​

bash
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:

  1. Put fullchain.pem and privkey.pem in ./ssl/.
  2. Replace YOUR_DOMAIN in nginx-lb.conf.
  3. 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 .env to 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=standard in .env to keep run history, or RETENTION_ENFORCED=true to stop organisations choosing it. See No-Retention Mode. Upgrading an install that kept history? It switches to no retention unless you set DEFAULT_RETENTION=standard before 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/v1 with an inference key. See Private Inference API.

Updates ​

bash
# Set the new release's image tags in docker-compose.yml (or download a new bundle), then:
docker compose pull && docker compose up -d

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

What's next? ​

Served from this deployment. No page view leaves it.