Skip to content
A white glass tile carrying the Kubernetes wheel, linked by a glowing blue line to a raised blue Tembo tile on a field of frosted glass tiles.

Announcing Tembo Self-Hosted

All of Tembo, inside your own cloud. Install with one Helm chart, and it scales on its own.

Daniel Miller

24 November, 20265 min read

Coding agents clone your code, hold your credentials, and run commands in your cloud. For a lot of teams, sending all of that through someone else's SaaS is a non-starter.

So we built self-hosted Tembo. You install it into your own Kubernetes cluster with Helm, and all of it runs in your account.

The obvious next step was to run every agent in that cluster too, one pod per session. We didn't.

Inside your cloud account, Tembo runs in your Kubernetes cluster and launches agent hosts, which save snapshots to object storage. Providers send webhooks to Tembo, and Tembo makes model calls to them. Your cluster pulls the chart and images, and agent hosts the host image, from the Tembo registry.

Why agents don't run in pods

An agent needs a whole computer. It installs packages, runs Docker, starts a browser, uses sudo, and sometimes does all of that at once. Give it a container on a shared kernel and you're one bad command away from a noisy neighbor, or worse, a container escape.

So every session runs in its own VM, with its own kernel. Those VMs need hardware virtualization, and that's not something you want to bolt onto the nodes running your cluster.

Kubernetes runs what it's good at: the API, the web app, workers, and the other services around them. Agent hosts are VMs in your cloud account with nested virtualization, and each one runs many session VMs. Today they run on AWS and Google Cloud, with Azure and your own external hosts next.

Kubernetes is great at running services. Agents need machines.

A controller for machines, not pods

Something has to manage those machines. That's the host controller. It runs in your cluster next to the app and works with three resources:

Host classCloud settings: instance types, zones, and the host image
Host poolScaling: the minimum and maximum number of hosts
HostOne VM, from launch to drain

If you've used Karpenter, this will feel familiar. When a cloud runs out of one instance type in one zone, the controller tries the next type or zone instead of failing the session.

Hosts that scale themselves

You don't size the fleet. The controller does.

When sessions need more room than your hosts have, it launches another one. When a host has sat idle long enough, it saves any paused sessions to your bucket and shuts the VM down. You set a minimum and a maximum for each pool, and it stays between them.

Scale upSessions need room, so a new host launches
RunEach session runs in its own VM on a host
DrainAn idle host saves paused sessions to your bucket
Scale downThe empty VM is terminated
Every pool stays between the minimum and maximum you set.

Removing a host never interrupts anyone. A host only drains once nothing is running on it, and paused sessions resume from your bucket on whichever host picks them up next. Keep the minimum above zero and a host is always ready. Set it to zero and an idle pool runs no VMs at all.

In our dev clusters, a new host is ready in five to eight minutes, and a drain takes about 90 seconds.

Upgrades reuse the same machinery. When a new chart version changes what a host runs, like its image or instance type, the controller launches a replacement first, stops sending new sessions to the old host, and drains it once it's idle. Upgrading stays one helm upgrade. You can cap how many hosts drain at once, or mark a host do-not-disrupt while you're debugging on it.

You set the limits. The controller does the capacity planning.

Easy to install, easy to keep current

Installing is a Terraform module for your cloud's permissions and one helm install. The chart sets up the rest: the control plane, the host controller, and everything around them.

Updates are self-serve. Each chart version pins everything it runs, so moving to a new release is one helm upgrade, on your schedule. Your agent hosts follow on their own.

Your cluster runs Tembo. Your account runs the agents. We just ship the chart.

Self-hosted Tembo needs a license. Talk to us to get started, or read the docs first.

Run any coding agent in the cloud

Tembo agents execute tasks in secure cloud environments and return reviewable output. Use any agent or model, run in parallel, and keep humans in control.

Share on LinkedIn or X.

Related posts