Default windows
Each time work completes in a session, Tembo pushes the stop time out based on where the work came from:
These automatic extensions only ever move the stop time later. They never shorten a longer window you set yourself.
Self-hosted deployments can change the dashboard and Slack windows with the
SANDBOX_KEEP_ALIVE_APP_MINUTES and SANDBOX_KEEP_ALIVE_SLACK_MINUTES environment variables. See Self-hosted.An open session tab holds the VM open
While a session is the active tab and your browser window is focused, the dashboard sends a keep-alive heartbeat every 4 minutes that pushes the stop time 10 minutes out. You do not need to do anything to keep a sandbox alive while you are actively looking at it. Switching tabs, backgrounding the window, or closing the session stops the heartbeat, so the VM stops roughly 10 minutes later.Extend from the composer
To hold a sandbox open for longer than the default window:- Type
/in the session composer. - Select Keep alive.
- Choose 10 minutes, 1 day, or 1 week.
Extend from inside the sandbox
Run thetembo CLI from a session terminal, a hook, or a script:
setVmKeepAlive tool taking the same seconds argument. That is what an agent reaches for when you ask it to keep the sandbox up while you take a look.
When the window expires
Tembo does not discard the sandbox outright. It suspends the VM, captures a session snapshot, then stops it. When the session needs a VM again — for example because you send another message — Tembo resumes from that snapshot instead of cloning and installing from scratch, falling back to the project environment and then to a cold boot if the snapshot cannot be restored. Tembo also skips stopping a VM that still has active agent work, even if the window has technically expired.Constraints
- Keep-alive applies to VM sandboxes and requires the VM to be running.
- A VM that stays alive keeps consuming compute for the whole window, billed at the hourly rate for its sandbox size. A 1 week keep-alive on a large sandbox is expensive — prefer the shortest window that covers what you need.
- Only one window is in effect at a time. Setting a new one replaces the previous value rather than adding to it.
- The keep-alive window controls how long the VM stays up, not how long the session lasts. Sessions and their history remain available after the sandbox stops.