Running the enterprise proxy on your own servers
For RTK Cloud admins on the Enterprise plan.
On the Proxy page, On-prem is marked Coming soon. Until it opens there,
create the deployment through the API: POST /api/orgs/{orgId}/proxy/deployments
with {"kind": "self_hosted", "publicUrl": "https://proxy.acme.example"}. The
answer holds the token (shown once) and the install commands; the Proxy page
shows them again after you rotate the token.
You need
- A host name for the proxy (for example
proxy.acme.example) and a TLS certificate for it (tls/tls.crt,tls/tls.key). - A container registry your proxy can pull from, or a Linux host for the systemd setup. For systemd, install the
rtk-proxy-enterprisebinary in/usr/local/bin, thertk-proxy-enterprise.serviceunit and anrtk-proxyuser yourself: the Proxy page gives the env file only. - Outbound HTTPS from the proxy to your RTK Cloud and to the AI providers.
- Members reaching the proxy on 443. With device certificates on (the default), TLS must end in the proxy: use a TCP load balancer or passthrough, not an ingress that decrypts TLS.
Install
- Create the deployment with its public URL (
https://proxy.acme.example), so the install commands carry it. Copy the token (shown once) intortk-proxy.token. Keep the install commands. - Get image access. You get a username and a password valid 24 hours, and the commands that pull the chart and the image and push the image to your registry. Set
REGISTRYto your registry, run them, paste the password whendocker loginandhelm registry loginask. - Install with one of the commands from step 1 (Helm, Docker or systemd), in the same shell as step 2: the commands use
$REGISTRYand$IMAGE_TAGset there. Each serves TLS on 443 with your certificate. Docker mountsrtk-proxy.token, Helm puts it in a Secret, systemd reads/etc/rtk-proxy-enterprise/token(certificate in/etc/rtk-proxy-enterprise/tls/). - Check the URL in the Settings tab of the Proxy page (Edit), then, as an admin, turn on the Mode switch in the Overview tab.
- The card turns Ready on the proxy's first heartbeat. Members are routed at their next
rtk loginor Claude Code session start.
Device certificates
Required by default: only your members' computers, with the certificate rtk gets for them at login, can connect. If your network must decrypt TLS before the proxy, set Device certificates: Off on the Proxy page (weaker: only the member credential is checked). While they are required and the proxy has no certificate of its own, members are refused and the card says so.
Upgrades and data
- New versions: Get image access again, pull the new chart version,
helm upgrade(or pull and restart the container). - The Helm chart (0.4.0 and later) runs 2 instances, each with its own volume, and updates them one at a time: an instance stops taking new requests, finishes the open ones (up to about 3 minutes), then restarts. Set
replicaCountfor more; keep at least 2 so an update or a node failure does not interrupt members. Docker and systemd installs run one instance. - Coming from chart 0.3.0 (one pod, one volume): run the upgrade with
helm upgrade --timeout 15m. The chart keeps the old volume and, once the old pod has stopped, a one-off job sends the usage still waiting on it to RTK Cloud, so it is not lost (legacyMigration.enabled, on by default). If the job fails, the upgrade reports a failure while the new instances already serve and the old volume is kept: run the upgrade again. The job runs again on each later upgrade as long as the old volume exists; once it has succeeded, delete the old volume withkubectl -n <namespace> delete pvc <release>-data. This particular upgrade briefly interrupts members: do it in a quiet window. - Monitoring: each instance serves
/readyand Prometheus metrics on its health port (8081 in the chart, not exposed to members). - The proxy keeps its queue and caches in its volume:
/var/lib/rtk-proxy(Docker, Helm) or/var/lib/rtk-proxy-enterprise(systemd); keep it across upgrades. Usage waits there while RTK Cloud is unreachable, up to 7 days or 500,000 records; anything dropped is listed on the Proxy page.
When something is refused
| Message | Fix |
|---|---|
| The proxy URL must use https:// | Give the proxy an https:// address; plain HTTP off loopback is never accepted |
| Members are refused: this proxy does not terminate TLS | Give the proxy its TLS certificate (RTK_PROXY_TLS_CERT, RTK_PROXY_TLS_KEY, or tls.enabled), or set Device certificates to Off |
| Five image access tokens are already live | Wait for one to expire (24 hours) |
| On-prem is part of the Enterprise plan | Upgrade the plan |
| Image access is not available here | Ask RTK support: image access is not set up for your RTK Cloud |