Glowmoth Not Working? Troubleshooting by Symptom
Glowmoth not working? Fix it when your Mac still sleeps, the icon is missing, a rule never fires or the glowmoth command isn't found, by exact message.
Updated 9 min read
On this page
This page helps you fix Glowmoth when it's not working as expected, grouped by symptom. Each check quotes the exact text Glowmoth shows, so you can match it to what's on your screen.
The menu bar icon is missing
Glowmoth has no Dock icon and no main window. It only appears as a moth-and-lamp icon in the menu bar. A crowded menu bar or the camera notch can hide it.
- Hold ⌘ (Command) and drag other menu bar icons to make room.
- Quit menu bar apps you don't need.
- If the icon still doesn't show, make sure Glowmoth is running by opening it from the Applications folder.
You can control Glowmoth without the icon:
- A global hotkey you recorded for Toggle Keep Awake or Open Panel. No hotkey is set by default.
- The
glowmoth://URL scheme, for exampleopen --background 'glowmoth://start?minutes=30'. - The
glowmothcommand-line tool, Shortcuts actions, or the desktop widget.
For more on icons hidden by the notch, see menu bar icons hidden behind the notch.
Glowmoth not working: your Mac still sleeps
First, confirm that Glowmoth is holding the Mac. In Terminal, run this read-only command:
pmset -g assertionsIt lists the power assertions that apps currently hold. Glowmoth's entry is named after its first reason, for example Glowmoth: Session for 1 hour or Glowmoth: Xcode is running + 1 more. If there's no Glowmoth entry, Glowmoth wasn't keeping the Mac awake at that moment.
Then match what you see to a cause:
| What you see or did | Why the Mac slept | Fix |
|---|---|---|
| You closed a MacBook's lid | Glowmoth blocks idle sleep only, so closing the lid still sleeps the Mac | Turn on closed-lid mode (see Keep a MacBook awake with the lid closed) |
| You chose Apple menu ▸ Sleep or pressed the power button | Glowmoth doesn't block manual sleep | This is expected |
| The icon shows the Paused (slashed) state, and the panel says "Paused at N% battery. Will resume when you plug in." or "Paused while your Mac cools down. Will resume on its own." | A safety limit released every reason | Plug in or let the Mac cool, or click Resume Anyway (30 min) in the panel |
| The panel says "License needed" | Without a valid license or trial, nothing is kept awake | See the license messages below |
| A timed session ran out | It ended at its end time | Use a longer duration or Indefinitely |
| You unplugged the power adapter | Stop the session when switching to battery is on | Turn it off in Settings ▸ Safety |
| The screen locked | End the session when the screen locks is on | Turn it off in Settings ▸ Sessions (or End When Screen Locks under Show More in the panel) |
| The Mac slept right as a session ran out | When a Session Ends ▸ Then is set to Sleep the Mac | Set it to Do Nothing in Settings ▸ Sessions |
macOS settings can also put the Mac to sleep or log you out. Open the panel, click Show More, and read the notes under Also Keeping This Mac Awake. They show scheduled sleep, shutdown or restart times ("Scheduled to sleep/shut down/restart at …", "Set to sleep every day …") and "Logs out after N minutes of inactivity." On laptops they also show "Closing the lid sleeps this Mac unless it has power and an external display." That line appears on every laptop, even when closed-lid mode is on, so don't treat it as a sign that closed-lid mode failed.
Only the display turned off
If the Mac stayed awake but the screen went dark, check these:
- Keep Display On was off for that session.
- Let the screen saver start when I'm away is on. After the idle time you set, the display may sleep while the Mac stays awake.
- Only automatic reasons were active. App, process, folder, agent and scheduled-run reasons never keep the display on. A rule keeps it on only if that rule's own Keep the display on switch is on, and a command-line lease or
runonly with--display.
An automatic reason isn't holding the Mac
Go through these checks in order:
- Manual mode. If the panel shows Manual and "1 automatic reason on hold" (or "N automatic reasons on hold"), switch it back to Automatic. The same setting is Keep awake automatically in Settings ▸ Automation.
- Stop Everything. It ends your session and suspends every automatic reason until you next start a session. Nothing on screen shows that the suspension is in effect. To clear it, start a session (you can stop it again right away), or quit and reopen Glowmoth.
- You clicked ✕ on the reason. A rule or a saved app, process or folder stays ended until its condition turns false once.
- Safety pause. A battery or heat pause applies to every reason, not just your session.
- The rule itself. Check that the rule's switch is on. Incomplete conditions are ignored, and a rule with no complete conditions never fires. Check whether Keep awake when is set to All conditions are true or Any condition is true.
- On a Wi-Fi Network: "Without Location access the network name is unknown, so this condition stays off." Click Open Settings and allow Location Services for Glowmoth.
- Calendar Event in Progress: "Glowmoth can't read your calendars, so this condition stays off." Click Open Settings and allow Calendars access. All-day events and events marked Free don't count.
- Coding agents. Stay awake while coding agents work is off by default. Only command-line agents count; desktop apps such as Claude.app don't. An agent set to Track Only or Ignore never holds the Mac.
- Scheduled runs. In normal installs Glowmoth can't wake a sleeping Mac. A run starts only if the Mac is already awake at the start time, unless Keep awake until then is on.
Details are in Automatic rules and Stay awake while AI coding agents work.
What the closed-lid captions mean
Closed-lid mode is only on Macs with a battery. These captions appear under Stay awake with the lid closed in Settings ▸ Safety:
| Caption | Meaning and fix |
|---|---|
| "Installs a small helper. Battery and heat limits stay on." | Closed-lid mode is off. |
| "Allow the Glowmoth helper in Login Items to finish." | macOS is waiting for your approval. Click Open Login Items and allow the helper in System Settings ▸ General ▸ Login Items. |
| "macOS couldn't install the helper. Move Glowmoth to Applications and try again." | Move Glowmoth to the Applications folder, open it from there, and turn the switch on again. |
| "Works during a session. Your Mac sleeps as usual otherwise." | Ready. It only acts while Glowmoth is keeping the Mac awake. |
| "Active: your Mac stays awake with the lid closed." | Working now. |
| "Off below N% battery. Plug in to resume." | The battery is below your floor. |
| "Off while your Mac is running hot." | macOS reported serious thermal pressure. It resumes when the Mac cools. |
| "Sleep is already turned off with pmset, outside Glowmoth." | Something other than Glowmoth disabled sleep. Glowmoth leaves that setting alone. |
| "Can't reach the helper. Turn closed-lid mode off and on again." | Turn the switch off, then on. |
While closed-lid mode is on, the battery floor and heat limit can't be turned off.
The locked panel asks for a license
The locked panel shows one of two messages:
- "Your trial has ended. Enter a MacSuite license to keep your Mac awake."
- "Your license couldn't be verified. Enter it again to keep your Mac awake."
To fix either one:
- Click Enter License… in the panel.
- Paste the key from your purchase email from Polar into License key.
- Click Activate.
Activating and re-checking a license needs an internet connection. A licensed app keeps working offline for up to 7 days between license checks, so "couldn't be verified" can mean the Mac has been offline longer than that.
If you see "This license is already active on the maximum number of Macs. Deactivate it on another Mac first.", open any MacSuite app on a Mac you no longer use and choose Deactivate on this Mac…. If you no longer have that Mac, use Manage at polar.sh in the license window.
The glowmoth command isn't found
The tool isn't on your system until you install it.
- Open Settings ▸ Advanced ▸ Command Line.
- Click Install next to Command-line tool. This links the tool to
~/.local/bin/glowmoth.
If you see "Installed. Add ~/.local/bin to your shell's PATH if glowmoth isn't found.", add that folder to your PATH. For zsh, the default shell on macOS, run:
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrcThis adds ~/.local/bin to your PATH in new Terminal windows. Open a new window after running it. To undo it, delete that line from ~/.zshrc.
Other install messages:
- "~/.local/bin/glowmoth already exists and isn't Glowmoth's. Remove it first." Another file already uses that name. Move it away, then click Install again.
- "The tool is missing from this copy of Glowmoth." (a tooltip on the install button) Download a fresh copy of Glowmoth from macsuite.app and try again.
The installed tool is a link into the Glowmoth app. If you move the app, click Uninstall and then Install again.
Common CLI and Shortcuts errors
| Message | Fix |
|---|---|
| "glowmoth: Glowmoth isn't running." | Open Glowmoth. off, status and lease commands don't launch the app and exit with code 2. (on, for, until, toggle and extend start it in the background.) |
| "Glowmoth needs a license. Open Glowmoth to activate it." | Activate a license (see above). |
"No lease “<id>”. It may have expired; acquire it again." | The lease's TTL passed without a heartbeat (default 300 seconds). Acquire it again, or send heartbeats more often. |
| "Couldn't read “…”. Try 90, 1h30 or 2h 15m." | Fix the duration you passed to for. |
| "Couldn't read “…”. Try 18:00 or 6pm." | Fix the time you passed to until. |
| "extend takes minutes, like 30 or -15." | Pass a number of minutes. |
| "glowmoth: No process with ID N." | The process already exited, or the ID is wrong. |
| "Unknown command: X. Run glowmoth help." | Check the spelling. Argument errors exit with code 64. |
| "Glowmoth didn't finish starting. Try again." (Shortcuts) | Wait a moment, then run the shortcut again. |
glowmoth run and glowmoth wait keep working when the app can't be reached, because they then hold their own power assertion. Without a license, the app accepts leases but doesn't keep the Mac awake.
Settings import failed
A failed import shows the alert "Couldn't Import Settings" with one of these reasons:
- "This file isn't a Glowmoth settings file." Choose the exported
.glowmoth.jsonfile. - "This file is from a newer version of Glowmoth. Update Glowmoth to import it." Choose Check for Updates… from the right-click menu, then import again.
- "The file couldn't be read." Export the file again on the other Mac.
"Already matches your settings." means there was nothing to change. Exports don't include rules, saved apps, processes or folders, scheduled runs, Stop In buttons, notification and end-action settings, drives, closed-lid mode or launch at login, so set those up again by hand.
Notification and login item messages
- "Notifications are off for Glowmoth": click Open System Settings and turn them on in System Settings ▸ Notifications.
- "Allow Glowmoth in Login Items.": click Open Login Items and allow it.
- "Couldn't add Glowmoth to your login items. Add it in System Settings › General › Login Items.": add it there by hand.
- "macOS didn't register Glowmoth. Move it to Applications and try again.": Glowmoth must run from the Applications folder.
Still stuck
Contact support. Include the exact message you see, your macOS version, and the output of glowmoth status --json if you use the command-line tool.