---
title: "Idle stop"
description: "Stop environments nobody is using, and start them again on the next connection."
---

> Documentation Index
> Fetch the complete documentation index at: https://regent.c4n.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Idle stop

```sh
regent idle dev 30m          # stop it after 30 minutes unused
regent idle dev off
regent create api --idle-stop 1h
regent config set idle-stop 30m   # the default for new environments
```

An environment is idle when no Rex app is attached, no program reports it's working (Claude
Code does), no ssh terminal is open and its CPU is quiet. Connecting to it again with
`regent ssh`, `ssh` or Rex starts it.

Source: https://regent.c4n.dev/docs/guides/idle-stop/index.mdx
