Skip to main content

corgi agent lid

corgi agent lid​

Ring the phone when this laptop wakes or its lid opens by day; lock or shut it down from there

Synopsis​

A laptop closed and left in a room says when someone opens it. The daemon notices the wake (or the lid) and rings the phone - by day only, inside --hours, since at night the one opening it is you. When you open it yourself, that is one push to glance at. When it was not you, the push carries two buttons: Lock (sleep; the password is asked at the wake, past any caffeinate) and Shut down (as the Apple menu does). Neither needs root.

corgi agent lid on ring between 08:00 and 23:00 corgi agent lid on --hours 09:00-22:00 corgi agent lid off corgi agent lid what is set now corgi agent lid lock | sleep | shutdown do it from here

sleep works where the Apple menu's Sleep does not: with SleepDisabled set (sudo pmset -a disablesleep 1, so the lid may close) macOS ignores the menu. With the sudoers rule from corgi agent away, corgi clears the bit, sleeps the machine, and sets it again at the wake.

One ring per opening, never twice in ten minutes. It is for a trip: off by default, corgi agent away turns it on, corgi agent lid off when you are back. The daemon reads the setting at start (corgi agent restart).

corgi agent lid [on|off|lock|sleep|shutdown] [flags]

Options​

-h, --help help for lid
--hours string The local HH:MM-HH:MM window in which an opening rings (default 08:00-23:00)

Options inherited from parent commands​

--describe Describe contents of corgi-compose file
--dockerContext string Specify docker context to use, can be default,orbctl,colima (default "default")
-l, --exampleList List examples to choose from. Click on any example to download it
-f, --filename string Custom filepath for for corgi-compose
--fromScratch Clean the .corgi/corgi_services folder before running
-t, --fromTemplate string Create corgi service from template url
--fromTemplateName string Create corgi service from template name and url
-g, --global Use global path to one of the services
--interactive Force interactive prompts even when no TTY/agent detected
--isolate string Run this workspace under a named lease: own port block, own database names, own containers
--json Emit machine-readable JSON output
--privateToken string Private token for private repositories to download files
-o, --runOnce Run corgi once and exit
--silent Hide all welcome messages

SEE ALSO​

  • corgi agent - Keep Claude Code Remote Control running for your corgi workspaces
Auto generated by spf13/cobra on 16-Nov-2026​