Glowmoth Shortcuts, Siri and the glowmoth:// URL Scheme
Every Glowmoth Shortcuts action with its parameters and results, the Siri phrases, and each glowmoth:// URL command with time formats and examples.
Updated 6 min read
On this page
This page lists the Glowmoth Shortcuts actions, the Siri phrases, and every glowmoth:// URL command with the parameters it accepts. Use them to start, stop, extend or check keep-awake sessions from Shortcuts, scripts or other apps without clicking the menu bar icon.
Before you start
- Glowmoth needs an active MacSuite license or trial. Without one, the start and toggle actions return a license error, and URLs do nothing.
- Every Shortcuts action and every URL runs in the background. Glowmoth doesn't open a window or come to the front.
- "Your session" on this page means the keep-awake session you start yourself. Automatic reasons, such as rules, apps, folders or coding agents, are separate.
Glowmoth Shortcuts actions
Open the Shortcuts app and search the actions list for "Glowmoth". There are six actions.
| Action | What it does | Parameters |
|---|---|---|
| Start Keeping Awake | Keeps your Mac awake for a number of minutes, until a time, or until you stop it | Minutes (optional), Until (date), Keep Display On (optional) |
| Stop Keeping Awake | Ends your session. Automatic rules keep working | Also Pause Automatic Reasons (default off) |
| Toggle Keeping Awake | Starts your default duration, or stops the running session. Returns a Boolean: true when a session is now running | None |
| Adjust Keep-Awake Time | Adds minutes to the session, or removes them with a negative number | Minutes (default 15) |
| Set Automatic Mode | Switches between Automatic and Manual | Automatic (default on) |
| Get Keep-Awake Status | Returns whether Glowmoth is keeping the Mac awake, until when, and why | None |
Start Keeping Awake
- Minutes: how long to stay awake. Capped at 7 days (10,080 minutes).
- Until: a date and time to stay awake until. It's only used when Minutes is empty.
- Keep Display On: on keeps the display awake too. Off lets the display sleep while the Mac stays awake. Leave it empty to use your Keep the display on setting (Settings ▸ Sessions).
- Leave both Minutes and Until empty to start your default duration (Settings ▸ Sessions ▸ Default duration, which is Indefinitely unless you changed it).
In the editor the action reads "Keep awake for … minutes". Starting while a session is running replaces that session.
Stop Keeping Awake
With Also Pause Automatic Reasons off, this works like Stop: it ends your session and leaves rules, apps, folders and agents alone. Turn it on to get Stop Everything, which ends your session and suspends all automatic reasons until you next start a session (or relaunch Glowmoth).
Adjust Keep-Awake Time
How Minutes behaves depends on what's running:
- No session, positive number: starts a timed session for that long.
- Open-ended session, positive number: gives it an end time that far from now.
- Timed session: a positive number moves the end later; a negative number moves it earlier. If the session would then end within a minute, it stops instead.
Set Automatic Mode
Automatic on is the normal state. Off switches Glowmoth to Manual, which ignores rules, saved apps, processes and folders, one-off reasons, agents, scheduled runs and command-line leases without deleting them. Your own session keeps working. It's the same switch as Automatic | Manual in the panel and Keep awake automatically in Settings ▸ Automation.
What Get Keep-Awake Status returns
The action returns a Keep-Awake Status with four properties. In a result it shows as "Awake" or "Sleep Allowed".
| Property | Meaning |
|---|---|
| Is Awake | Whether Glowmoth is keeping the Mac awake |
| End Date | Until when |
| Reasons | A list of the reasons holding the Mac |
| Keeps Display On | Whether the display is kept on as well |
A useful pattern: Get Keep-Awake Status, then an If on Is Awake. If it's false, run Start Keeping Awake with Minutes set to 60. That way you don't replace a session that's already running.
Siri and Spotlight phrases
Glowmoth registers four App Shortcuts. You don't have to build anything to use them.
| Say | Tile name | Does |
|---|---|---|
| "Keep my Mac awake with Glowmoth" or "Start Glowmoth" | Keep Awake | Starts keeping awake |
| "Let my Mac sleep with Glowmoth" or "Stop Glowmoth" | Allow Sleep | Stops your session |
| "Toggle Glowmoth" | Toggle | Starts or stops your session |
| "Is Glowmoth keeping my Mac awake" | Status | Reports the current status |
glowmoth:// URL commands
| Command | Aliases | What it does |
|---|---|---|
glowmoth://start | on, activate | Starts your session. With no time parameter, uses your default duration |
glowmoth://stop | off, deactivate | Ends your session |
glowmoth://toggle | None | Starts your default duration, or stops the running session |
glowmoth://extend?minutes=N | adjust | Adds minutes, or removes them with a negative number. Behaves like Adjust Keep-Awake Time above |
The form without slashes also works, for example glowmoth:start.
Copy-ready examples:
glowmoth://start
glowmoth://start?minutes=45
glowmoth://start?hours=1.5
glowmoth://start?hours=1&minutes=30
glowmoth://start?duration=1h30
glowmoth://start?until=18:00
glowmoth://start?until=6pm&display=0
glowmoth://start?indefinitely
glowmoth://stop
glowmoth://toggle?display=1
glowmoth://extend?minutes=15
glowmoth://extend?minutes=-15Time and display parameters for URLs
These apply to start. toggle takes an optional display, and extend takes minutes.
| Parameter | Accepts | Notes |
|---|---|---|
minutes=N | A number, decimals allowed | Can be combined with hours |
hours=N | A number, decimals allowed | hours=1&minutes=30 is 90 minutes |
duration= | A duration such as 1h30 | |
until= | 18:00, 1800, 6pm, 6:30 pm | A time that has already passed today means tomorrow |
indefinitely | No value | Keeps awake until you stop it |
display= | 1 or 0, also true/false, yes/no, on/off | 1 keeps the display on, 0 lets it sleep while the Mac stays awake |
Limits:
- The longest timed session is 7 days. For anything longer, use
indefinitely. 6:30 pmcontains a space, which isn't valid in a URL as typed. The 24-hour form (until=18:30) avoids the problem.
Run a URL in the background
From Terminal or a shell script, use open with --background:
open --background 'glowmoth://start?minutes=30'This hands the URL to Glowmoth without bringing any app to the front. It changes no settings; to end the session, open glowmoth://stop the same way. Keep the single quotes: without them, zsh treats ? and & as special characters and the command fails or gets split.
If you script Glowmoth a lot, the glowmoth command-line tool is usually the better fit. It reports status through exit codes and JSON, holds the Mac while a command runs (glowmoth run -- <command>), and supports leases with a time-to-live.
Errors a Shortcut can show
| Message | Cause | Fix |
|---|---|---|
| "Glowmoth didn't finish starting. Try again." | Glowmoth hadn't finished starting when the action ran | Run the shortcut again. If it runs right after login, add a short Wait before the Glowmoth action |
| "Glowmoth needs a license. Open Glowmoth to activate it." | The trial has ended or the license couldn't be verified | Click the menu bar icon, choose Enter License… in the panel and enter your MacSuite key |
If something doesn't work
- A URL does nothing. URLs do nothing without a license, and there's no error. Open the panel: if it says "License needed", activate Glowmoth first.
- The session ends tomorrow instead of today. An
untiltime that has already passed rolls over to the next day. Check the time and whether you meant AM or PM. - A long session stopped early. Timed sessions can't run longer than 7 days. Use Indefinitely or
?indefinitely. - The Mac still sleeps after a shortcut starts a session. Glowmoth prevents idle sleep only. Choosing Sleep from the Apple menu still sleeps the Mac, and so does closing a laptop's lid unless closed-lid mode is on. A low-battery or heat pause also releases the hold; the panel shows "Paused" when that happens. See Troubleshooting Glowmoth.
- Rules stopped working after a shortcut. Stop Keeping Awake with Also Pause Automatic Reasons on, or Set Automatic Mode with Automatic off, pauses automatic reasons. Start a session (after Stop Everything) or switch back to Automatic in the panel (after Manual).
Related
- The glowmoth command-line tool
- Notifications and what happens when a session ends, including running a shortcut when a session ends
- Desktop widget and Control Center control
- Keep your Mac awake for a time, until a time, or indefinitely