Code Awake
Keep your computer awake with one click in VS Code. Install Code Awake from the VS Code Marketplace Give your coding agent a task, turn Code Awake On, and step away. Code Awake prevents idle system sleep while VS Code is open, so local work can continue. Your display can still turn off, and you can still lock your screen. Click. Lock. Walk away.Find Code Awake at the bottom right of VS Code. | Status | What it means | | Status | What it means | | --- | --- | | Code Awake: Off | Normal system sleep is allowed. Click to turn Code Awake On. | | Code Awake: On | Idle system sleep is prevented. Click to turn Code Awake Off. | Prefer the keyboard? Open the Command Palette and run Code Awake: Enable or Code Awake: Disable. Every new session starts Off. Windows in the same local VS Code edition and profile share one toggle. Close the last participating window and Code Awake releases its sleep request. Small by designNo settings to tune. No separate Node.js to install. No resident background service or polling loop. Code Awake uses your operating system’s sleep-prevention API. It never fakes keystrokes or mouse movement, reads your workspace, sends telemetry or network requests, or changes permanent power settings.
Requires VS Code 1.95+ on desktop. With SSH, WSL, Dev Containers or desktop Codespaces, Code Awake acts on your local computer. Browser VS Code is unsupported. Before you step awayOn means an active sleep-prevention backend. Lid closure, forced sleep, critical battery and organization policies can still override it. Windows Modern Standby on battery can limit requests. On Linux, the sleep inhibitor may also block ordinary manual suspend. Keeping a computer awake uses power. Code Awake does not override sleep when you close the lid. For a MacBook, use Apple’s supported external-display setup; see closed-lid use. If something goes wrong, hover over the toggle for details or run Code Awake: Show Logs. For current validation status, see verification and release gates. For current validation status, see verification and release gates. |