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.
Connections
| 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
A message from one of your people takes this path:
- 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.
- 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.
- Gary's server reports usage as a count. It doesn't report content.
- Updates come down when the provisioner asks for them.
- 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.
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.
Install
An organization owner starts the install in the console, under Self-hosted Install.
-
Copy the install command. It includes a one-time code for your organization.
kubectl apply -f https://platform.getquantis.com/install/<code>.yaml -
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.
-
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.
-
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.
-
Add your model key inside the cluster. The key doesn't pass through QUANTIS.
-
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.
Run Gary on your own hardwareIf 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.