Skip to main content
An agent that handles many similar tasks, such as reviewing each pull request, can take a Devbox from a pool instead of creating one per task. A reused Devbox already has the repository checked out, dependencies installed, and build output on disk. A pool is a group of Devboxes that share a name, such as review-bot. Your agent acquires a free Devbox from it. If all are in use, a new one is created and added. When a task releases its Devbox, the next task gets it back, files and all.

Acquire a Devbox

It returns the Devbox’s name and a lease ID. While the lease is held, no other acquire gets that Devbox. The create settings apply only when a new Devbox is created.

Release it

Release the lease when the task ends, whether it succeeded, failed, or was cancelled, so the next task can use the Devbox. Releasing doesn’t stop or delete it, and its files stay, so reset the repository before the next task. It stops when idle, and acquiring it again starts it. To take a Devbox out of the pool, delete it.
Last modified on December 2, 2026