First thing I did when I read your first tweet was to check ChatGPT. This is the answer I got. I just learned about the caffeinate command . Thought it was referencing a third-party app, but turns out its built-in.