---
title: "Discussion on \"Will Claude Code keep running overnight if I close my MacBook?\" | Hashnode"
description: "Discussion on \"Will Claude Code keep running overnight if I close my MacBook?\". Not by default: the closed lid puts the Mac to sleep and the claude process stops with it. How to keep it working until morning."
url: "https://hashnode.com/posts/claude-code-overnight-macbook-lid-closed/6af9de129029cca3b0b7a09a"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Will Claude Code keep running overnight if I close my MacBook?](https://keepmacawake.hashnode.dev/claude-code-overnight-macbook-lid-closed?utm_source=hashnode&utm_medium=feed)

Not by default: the closed lid puts the Mac to sleep and the claude process stops with it. How to keep it working until morning.

1d ago · 3 min read · keepmacawake.hashnode.dev  
Read the article

-   [#claude-code](https://hashnode.com/tag/claude-code)
-   [#ai-agents](https://hashnode.com/tag/ai-agents)
-   [#macos](https://hashnode.com/tag/macos)
-   [#macbook](https://hashnode.com/tag/macbook)

## Written by

[Keep Mac Awake](https://hashnode.com/@keepmacawake)

@keepmacawake

  
[View profile](https://hashnode.com/@keepmacawake)

Guides to keeping a MacBook awake with the lid closed: pmset, sleep, agents and long jobs.

Keep Mac Awake is a Mac menu bar app and command line tool that keeps a MacBook awake with the lid closed for a session you start. These guides explain Mac sleep, pmset and long jobs with the lid closed, and first appear on keepmacawake.com.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
