Skip to content
86% off$349 $48.86code BF2026

Docs

Glowmoth docs25 pages

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.

ActionWhat it doesParameters
Start Keeping AwakeKeeps your Mac awake for a number of minutes, until a time, or until you stop itMinutes (optional), Until (date), Keep Display On (optional)
Stop Keeping AwakeEnds your session. Automatic rules keep workingAlso Pause Automatic Reasons (default off)
Toggle Keeping AwakeStarts your default duration, or stops the running session. Returns a Boolean: true when a session is now runningNone
Adjust Keep-Awake TimeAdds minutes to the session, or removes them with a negative numberMinutes (default 15)
Set Automatic ModeSwitches between Automatic and ManualAutomatic (default on)
Get Keep-Awake StatusReturns whether Glowmoth is keeping the Mac awake, until when, and whyNone

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".

PropertyMeaning
Is AwakeWhether Glowmoth is keeping the Mac awake
End DateUntil when
ReasonsA list of the reasons holding the Mac
Keeps Display OnWhether 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.

SayTile nameDoes
"Keep my Mac awake with Glowmoth" or "Start Glowmoth"Keep AwakeStarts keeping awake
"Let my Mac sleep with Glowmoth" or "Stop Glowmoth"Allow SleepStops your session
"Toggle Glowmoth"ToggleStarts or stops your session
"Is Glowmoth keeping my Mac awake"StatusReports the current status

glowmoth:// URL commands

CommandAliasesWhat it does
glowmoth://starton, activateStarts your session. With no time parameter, uses your default duration
glowmoth://stopoff, deactivateEnds your session
glowmoth://toggleNoneStarts your default duration, or stops the running session
glowmoth://extend?minutes=NadjustAdds 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:

text
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=-15

Time and display parameters for URLs

These apply to start. toggle takes an optional display, and extend takes minutes.

ParameterAcceptsNotes
minutes=NA number, decimals allowedCan be combined with hours
hours=NA number, decimals allowedhours=1&minutes=30 is 90 minutes
duration=A duration such as 1h30
until=18:00, 1800, 6pm, 6:30 pmA time that has already passed today means tomorrow
indefinitelyNo valueKeeps awake until you stop it
display=1 or 0, also true/false, yes/no, on/off1 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 pm contains 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:

sh
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

MessageCauseFix
"Glowmoth didn't finish starting. Try again."Glowmoth hadn't finished starting when the action ranRun 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 verifiedClick 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 until time 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).

Every app.
One purchase.