# TLS-inspecting proxies This page is for the IT team that runs a secure web gateway or a proxy that inspects TLS. It lists the hostnames Gary's apps and a self-hosted Gary need, which connections must not be inspected, and how to trust your root certificate where inspection stays on. Gary's apps stream replies over long-lived connections. A proxy that buffers responses or re-signs WebSockets makes chat stall, even when every hostname is allowed. ## What connects to what Three kinds of traffic can cross your proxy. - **A person's device to QUANTIS.** The web app, the iPhone and Mac apps, and the `gary` tool connect to QUANTIS for sign-in, chat, and Gary's desktop. - **A self-hosted Gary to QUANTIS.** Gary's server and the provisioner connect out for the tunnel, usage, and updates. See [Installing for your organization](/installing-for-your-organization). - **Gary's computer to the internet.** On your own hardware, Gary's computer browses the web and calls your model provider through your network. A hosted Gary's computer runs in QUANTIS's cloud, and its traffic doesn't cross your proxy. To control where it connects, see [Private networks](/private-networks). ## Hostnames to allow Allow these on the gateway and in any DNS filtering. All of them use port 443. | Hostname | Used for | Used by | | --- | --- | --- | | `chat.getquantis.com` | The web app, chat, streamed replies, Gary's desktop, and the `gary` tool's connection | Devices | | `auth.getquantis.com` | Sign-in | Devices | | `platform.getquantis.com` | The console, the apps' requests, the tunnel, usage, and updates | Devices and a self-hosted Gary | | `*.getquantis.com` | Labs. Each Lab has an address of its own, such as `orders--yourcompany.getquantis.com`. | Devices | | `qcr.getquantis.com` | Gary's images | A self-hosted Gary | | `docs.getquantis.com`, `support.getquantis.com` | Documentation and the help center | Devices | | `api.anthropic.com` | Claude models, with your own key | A self-hosted Gary | | Your model endpoint | Any OpenAI-compatible endpoint you connected | A self-hosted Gary | Prefer the `*.getquantis.com` wildcard over a list of names. Lab addresses are created as people build Labs, so a fixed list goes out of date. People also sign in with Google or Apple, and the apps install from the App Store, Google Play, and npm. Allow those services as you do for other software. ## Connections that must not be inspected Exempt these from TLS inspection, response buffering, and content scanning. | Connection | Host | Why | | --- | --- | --- | | Streamed replies | `chat.getquantis.com` | Replies arrive as a stream. A proxy that waits for the whole response shows nothing until Gary finishes. | | Gary's desktop and take control | `chat.getquantis.com` | A WebSocket carries the desktop and your clicks. | | The `gary` tool and Gary for Mac folders | `chat.getquantis.com` | One WebSocket, held open for hours. | | The tunnel | `platform.getquantis.com` | A WebSocket that Gary's server signs. A re-signed connection fails its identity check. | | Images | `qcr.getquantis.com` | Large downloads, checked against a signature. | | The iPhone and Mac apps | `chat.getquantis.com`, `auth.getquantis.com`, `platform.getquantis.com` | The apps accept only QUANTIS's certificate for these hosts. | Where inspection is exempted, also turn off idle timeouts shorter than 10 minutes for these hosts. Gary sends a keepalive every 30 seconds, and some gateways close a quiet stream sooner than that. Apply the exemptions to every profile, including the one devices use off the office network. A setup that works in the office and fails at home has the exemption on one location only. ## Trust your root certificate Where your policy inspects everything else, each place that makes TLS connections must trust your corporate root certificate. ### In the web app The web app uses the browser's trust store. If your devices already trust the root certificate, there's nothing to do. ### In the iPhone and Mac apps Install the root certificate with your device management tool and mark it trusted. The apps use the system trust store for Labs and for links they open. They don't accept a re-signed certificate for QUANTIS's own hosts, so those need the exemption above. ### In the `gary` tool The tool uses the system trust store on macOS and Linux. To point it at a certificate file, set `SSL_CERT_FILE` before you run `gary install`. To send it through an explicit proxy, set `HTTPS_PROXY`. ``` export HTTPS_PROXY=http://proxy.example.com:3128 export SSL_CERT_FILE=/etc/ssl/certs/corp-root.pem gary install ``` ### On Gary's computer, on your own hardware Gary's computer browses the web through your network, so its browser and its tools must trust your root. 1. In the console, choose **Computers**, then **Settings**, then **Root certificates**. 2. Choose **Add certificate** and paste the certificate in PEM format. 3. Choose **Save**. Each computer picks it up at its next start. Gary adds the certificate to the computer's system store and to Chrome. It also sets it for the tools that keep their own list: Python, Node.js, git, curl, and pip. On a single machine, add the certificate in **Settings**, under **Security**. If your network has an explicit proxy, enter its address in the install file's `proxy` setting. Gary's server, the provisioner, and each computer then send outbound traffic through it. ## Check from a device Run these on a device that has the problem, with the gateway client on. 1. **Check who issues the certificate.** The issuer for `chat.getquantis.com` must be a public certificate authority. If it names your gateway, inspection is still on. ``` openssl s_client -connect chat.getquantis.com:443 -servername chat.getquantis.com /dev/null | openssl x509 -noout -issuer ``` 2. **Check that names resolve.** Run `nslookup chat.getquantis.com` and `nslookup platform.getquantis.com`. Both must return a public address. 3. **Check streaming.** Send Gary "Count from 1 to 20, one number per line, slowly." The numbers must appear one at a time. If they appear all at once, a proxy is buffering. 4. **Check the tool.** Run `gary status`. It says whether the machine is connected, and why if it isn't. ## Symptoms and fixes | Symptom | Likely cause | Fix | | --- | --- | --- | | Gary's reply appears all at once after a long wait | The proxy buffers responses | Exempt `chat.getquantis.com` from buffering and scanning | | Chat works, and Gary's desktop stays on "Connecting…" | WebSockets are blocked or re-signed | Allow WebSocket upgrades to `chat.getquantis.com` and exempt it from inspection | | The web app works, and the iPhone or Mac app can't sign in | The apps refuse the re-signed certificate | Exempt `auth.getquantis.com`, `chat.getquantis.com`, and `platform.getquantis.com` | | A long answer stops partway and the chat reconnects | An idle timeout closes the stream | Raise the timeout for `chat.getquantis.com` to 10 minutes or more | | `gary status` shows signed in and not connected | The WebSocket can't get through the proxy | Set `HTTPS_PROXY`, and exempt `chat.getquantis.com` | | A Lab won't open, and everything else works | Only named hosts are allowed | Allow `*.getquantis.com` | | It works in the office and fails at home | The exemptions are on one location profile | Apply them to every profile | | The console shows a self-hosted organization as disconnected | The tunnel is inspected or closed | Exempt `platform.getquantis.com`, and allow long-lived WebSockets | | A self-hosted computer never finishes updating | Image downloads are blocked or scanned | Allow and exempt `qcr.getquantis.com` | | On your own hardware, Gary's browser shows certificate warnings on every site | The computer doesn't trust your root | Add the certificate under **Root certificates** | | On your own hardware, Gary says it couldn't reach the model | The model provider's host is blocked | Allow `api.anthropic.com` or your endpoint's host | ## If your policy requires inspection everywhere Some policies allow no exemptions. In that case the web app is the one to use: it accepts your root certificate through the browser. Turn off response buffering for `chat.getquantis.com` and allow WebSocket upgrades, and chat streams as it should. The iPhone and Mac apps and the tunnel need the exemption. A company that can't grant it for the tunnel can run the air-gapped install, which has no connection to QUANTIS. See [Run Gary on your own hardware](/own-hardware). ## Related - [Installing for your organization](/installing-for-your-organization) for the four outbound rules a company cluster needs. - [Private networks](/private-networks) to let Gary reach systems inside your network. - [Troubleshooting](/troubleshooting) for problems that aren't about the network.