Skip to main content
A Devbox stops once it has been idle for its idle timeout. Work your agent leaves running on its own, such as an overnight job in a session, keeps the Devbox awake only briefly, so it can stop partway through. Commands run with devbox exec don’t need this, because they keep the Devbox awake while they run. A task marker tells the Devbox that work is in progress: while one exists, it stays awake. A marker is a file in the directory $NAMESPACE_DEVBOX_TASKS_DIR points to. The commands below run from your machine with devbox exec. Inside the Devbox, run the quoted command on its own. For a process that should run until you stop it, such as a dev server, create a service that keeps the Devbox awake instead.
With the Devbox skill, ask your agent in plain language, for example: “Run the full test suite on my-devbox and keep it awake until it finishes.”

Keep the Devbox awake during the work

1

Mark work in progress

Create a marker before the work starts. Here the marker is named tests. Name yours after the task.
On Windows:
2

Clear the marker when the work ends

Clear it even if the work fails. A marker doesn’t expire and survives a restart. While one is left behind, the Devbox doesn’t stop for being idle. It keeps running, and is billed for that time, until you clear the marker or stop the Devbox yourself. It still stops at its maximum duration.
On Windows:

Find leftover markers

List the markers keeping the Devbox awake, then clear any that are left over. An empty result means none.
On Windows:
Last modified on December 2, 2026