Skip to main content
You can configure an idle timeout for your sandboxes to automatically stop or pause when no active connections are detected. The idle timeout is configured via the metadata field when creating a sandbox. The key is idle_timeout and the value is the number of seconds as a string.

Basic usage

Pausing instead of killing

If you want the sandbox to be paused instead so you can resume it later, enable the auto-pause option.

Combining with other metadata

The idle_timeout metadata key can be combined with other metadata keys you may already use.

Disabling idle timeout

To explicitly disable the idle timeout for a sandbox, simply omit the idle_timeout key from the metadata, or set it to 0.
Last modified on August 5, 2026