# Installing for your organization This page explains how to run Gary for a company on its own infrastructure. Gary's server, its database, your secrets, and each person's computer run in your cluster. People sign in and chat the same way as before, on the web, iPhone, Mac, and Slack. Your cluster opens every connection outbound, and nothing connects in. To connect one machine of your own to Gary instead, see [Self-hosted Install](/self-hosted-install). ## Connections ::: network locks - **Your people** — Web, iPhone, Mac, Slack - **QUANTIS** — Sign-in · The way in for chat and the apps · Admin console · Updates and images - **Your model provider** — Anthropic, or your own endpoint #### Your cluster - **Gary's server** - **The provisioner** - **Each person's computer** - **Database** - **Secrets store** 1. Your people -> QUANTIS 2. Gary's server -> QUANTIS — **The tunnel.** wss 443 3. Gary's server -> QUANTIS — HTTPS 443 4. The provisioner -> QUANTIS — HTTPS 443 5. Each person's computer -> Your model provider — HTTPS 443 `Your infrastructure` Each arrow starts at the side that opens the connection. All five are encrypted. ::: | | From | To | Port | What it is for | |---|---|---|---|---| | 1 | Your people | QUANTIS | 443 | Sign-in, messages, and replies | | 2 | Gary's server | `platform.getquantis.com` | 443 | The tunnel. Held open; requests for your Garys come down it and replies go back up | | 3 | Gary's server | `platform.getquantis.com` | 443 | Usage counts, and reading your settings | | 4 | The provisioner and your nodes | `platform.getquantis.com`, `qcr.getquantis.com` | 443 | What to run, and Gary's images | | 5 | Each person's computer | Your model provider | 443 | Prompts and replies | Rows 2 to 5 are the only rules your firewall needs, and all four are outbound. You don't need an inbound rule, a VPN, or a public address. ## The tunnel Gary's server opens the tunnel from inside your cluster and keeps it open. QUANTIS sends each request for one of your Garys down it. - **The server proves its identity.** It signs with a key that is created in your cluster and stays there. It then signs a one-time challenge, so a recorded connection can't be replayed. - **Your server checks every request.** QUANTIS signs each request, and your server refuses any request it can't verify. An open tunnel alone doesn't let anyone send requests. - **The tunnel reconnects automatically.** The server holds two connections. If one drops, the other carries traffic while the first reconnects. If your cluster can't reach QUANTIS, people can't reach their Garys until the connection returns. Nothing in your cluster is lost. ## Where your data goes ::: network - **Your people** — Web, iPhone, Mac, Slack - **QUANTIS** — Keeps only · Names, emails, and roles · Settings and schedules · Usage counts - **Your model provider** — Sees the prompts you send it #### Your cluster - **Gary's server** — Runs your Garys - **The provisioner** — Builds and updates - **Each person's computer** — Files and the browser - **Database** — Conversations, memory, tasks - **Secrets store** — Secrets, Vault, your model key 1. Your people <-> QUANTIS — Messages 2. QUANTIS <-> Gary's server — **Messages.** Not stored 3. Gary's server -> QUANTIS — Usage 4. QUANTIS -> The provisioner — Updates 5. Each person's computer <-> Your model provider — Prompts `Kept only below this line` Each arrow shows which way the data moves. ::: A message from one of your people takes this path: 1. The person sends it from the web, their phone, or Slack. QUANTIS checks who they are and what they're allowed to do, then signs the request. 2. The request goes down the tunnel. Gary's server checks the signature and runs the work on that person's computer. The reply streams back the same way. 3. Gary's server reports usage as a count. It doesn't report content. 4. Updates come down when the provisioner asks for them. 5. Prompts go from the person's computer directly to your model provider. They don't pass through QUANTIS. - **Kept at QUANTIS:** your people's names, emails, and roles; which Garys exist, with their instructions, skills, and schedules; your limits; and usage counts for billing. - **Passes through and isn't stored:** messages, replies, files you attach, the live view of a computer, and a secret while you save it. - **Only in your cluster:** conversation history, memory, files, the work on each computer, your saved secrets, and your model key. QUANTIS can write a secret to your store but can't read one back. For how each piece is protected, see [Security](/security). ## What you need - **A Kubernetes cluster,** in your cloud or on your own machines. If you don't have a cluster, the same install runs on a single Linux machine. - **Room for each person:** 1 CPU core, 4 GB of memory, and 20 GB of disk. The organization's shared services need about 1 GB of memory and 12 GB of disk. - **The four outbound rules** in the table above. - **A bucket for backups.** Any S3-compatible storage works. - **A model.** Your own Anthropic key, any OpenAI-compatible endpoint, or Gary credits. See [Bring your own model](/own-model). ## Install An organization owner starts the install in the console, under **Self-hosted Install**. 1. Copy the install command. It includes a one-time code for your organization. ``` kubectl apply -f https://platform.getquantis.com/install/.yaml ``` 2. To review the file before you apply it, open it. It's plain YAML and starts with four settings: your storage class, how the secrets store unseals (your cloud's key service, or a key kept in the cluster), your backup bucket, and where your model key is stored. 3. Apply the file. It starts the provisioner, a small program, with the permissions it needs and the rules that isolate each person's computer from the others. 4. The provisioner exchanges the code for your organization's registration and creates the rest: the database, the secrets store, Gary's server, and a computer for each person with a seat. 5. Add your model key inside the cluster. The key doesn't pass through QUANTIS. 6. Gary's server opens its tunnel, and the console shows your organization as connected. People sign in as usual. ## Updating QUANTIS has no credentials for your cluster. The provisioner asks QUANTIS what to run, checks the signature on the answer, and pulls the new build itself. Every update runs on QUANTIS's own Garys before it reaches yours. The provisioner can't change its own permissions. When an update needs new permissions, the console tells you to apply the install file again. ::: callout ### [Run Gary on your own hardware](/own-hardware) If nothing can leave your network, use the air-gapped install. It runs sign-in, the console, and updates inside your network, with no connection to QUANTIS. :::