Need help?
<- Back

Comments (63)

  • exabrial
    Amphetamine is what I use. It has a robust set of triggers, like if you ip address changes to a certain subnet (like private IPs on a work network)https://apps.apple.com/us/app/amphetamine/id937984704?mt=12
  • chopete3
    This is great. Will check it.Recently I bought a usb-c empty external monitor card to prevent mac from going to sleep. There are many of these external monitor simulators on Amazon.I still see the laptop go to sleep many times with the external monitor simulator.This is the one I bought.4K 60Hz USB-C Type-C Virtual Display Adapter DDC EDID Dummy Plug Headless Ghost Display Emulator 2K 60hz1080P@120Hz
  • 47
    I have been using the builtin macOS `caffeinate` command for this.For example:caffeinate -dimsuThat keeps the Mac awake so I can use Claude remotely from phone.You can also wrap your command as well, but I rarely use it.caffeinate -dimsu your-agent-command
  • aqme28
    Thank goodness. I can’t leave my laptop for a second unattended because my cat loves nothing more than to dance on the keyboard. I’ve need something like this.
  • processunknown
    Does it also make my Mac irritable?
  • lellow
    Interesting. Kind of similar in purpose, but I created a simple app to schedule and type the "continue" word in my terminal after X time has passed, since I have to wait for my usage to be restored. =)
  • rancar2
    For MacOS, keep awake with:sudo pmset -a disablesleep 1Reset back:sudo pmset -a disablesleep 0
  • AussieWog93
    How does this differ from https://github.com/samber/cc-caffeine?
  • mr_toad
    I’ve often wondered about the thermal performance or running a MacBook with the lid closed. One argument is that the reduced surface area from a closed lid increases temperature. Others argue that not running & rendering the display (and thus GPU) generates less heat. I’m not sure who to believe.
  • dawnerd
    But Amphetamine has an option to end when an app closes. I’m just so confused why everyone using ai is reinventing solutions that already exist.
  • kylehotchkiss
    `sudo pmset -a sleep 0`
  • geor9e
    Codex recently built this in - "Prevent sleep while running" toggle
  • moralestapia
    What's old is new again, but I welcome this.I used to do this 15 years ago to keep listening to music from my laptop (one of the white chiclet ones) in my backpack, can't remember the name of the app I used then.One caveat, your laptop cannot cool inside a backpack, it will overheat and shut down anyway. This happened to me several times.
  • xlii
    Um so it is sudo bash -c 'touch KEEP_RUNNING; pmset -b sleep 0; pmset -b disablesleep 1; while [ -e KEEP_RUNNING ]; do sleep 1; done; pmset -b sleep 5; pmset -b disablesleep 0' and Agent, when you're done do `rm KEEP_RUNNING`, kthxbye. ?(personally I have Ruby scripts that check activity on "tmux capture-output" for that)
  • slopinthebag
    15k loc for this? holy cow
  • anon
    undefined
  • operatingthetan
    So now we're naming apps after obscure Modafinil derivatives?
  • 2001zhaozhao
    We need people to rediscover remote development desperately, lol.
  • IncreasePosts
    At some point, if you closed the lid and didn't have an external monitor plugged in, macos would put the GPU in power save mode, which would tank local llm performance. Is that not the case any more? There were even small singles you could get which would trick the ps into thinking an external monitor was plugged in
  • WUMBOWUMBO
    reminds me of ye old caffeinate
  • anon
    undefined
  • anon
    undefined
  • cyanydeez
    you can run opencode inside a docker container and expose it's webui.
  • anon
    undefined
  • tangweigang
    [dead]
  • anon
    undefined
  • rnagulapalle
    [flagged]
  • huflungdung
    [dead]
  • cyclopeanutopia
    Ridiculous bloat.