{"article":{"title":"Lifecycle & sleep","breadcrumb":["Instance Management","Lifecycle & sleep"],"body":"### State Machine\n\n```\n[Starting] ──▶ [Running] ──(Idle timeout)──▶ [Sleeping]\n                   │                              │\n                   ├─(Explicit stop)              ├─(Link access / API trigger)\n                   ▼                              ▼\n               [Stopped]                      [Waking Up] ──▶ [Running]\n```\n\n### Smart Sleep\n- Instances transition to sleep mode automatically when all browser connections disconnect and no heavy background jobs run.\n- During sleep, **compute charges pause**, retaining only minimal disk storage fees.\n\n### Instant Wake\n- Accessing the link wakes the instance in 1–3 seconds, resuming the shell seamlessly."}}