Amphetamine osascript password prompt every session: the fix
Amphetamine asks for your password for osascript at every session start and stop? Update to 5.3.1 or later, or disable the script folder. Steps and limits.
TroubleshootingUpdated 5 min read
On this page
You start or stop an Amphetamine session and macOS asks for authentication, every time. The report we found reads like this:
macOS asks for my password for osascript to make changesThe reports we found are from 2023, the latest from November 2023. As of November 2026, Amphetamine's last update was also November 2023 (per our competitor notes). Check your version before assuming this applies to you.
We make Glowmoth, a competing keep-awake app, so weigh our view accordingly. The fixes below need nothing from us. Glowmoth only helps with one narrow case, covered near the end.
Why the osascript password prompt appears
What the reports agree on:
- The prompt shows up on Apple silicon Macs.
- It is tied to Amphetamine's Closed-Display Mode, which keeps the Mac running with the lid closed.
- In the affected versions it asked for Touch ID or a password at every session start and stop.
- The dialog names
osascript, the macOS tool that runs AppleScript.
What we don't know: exactly what the script does, or why the authentication was needed on every start and stop. The sources don't say, and we won't guess. What the reports do say is that version 5.3.1 removed the requirement.
| Situation | What you see | Fix |
|---|---|---|
| Version older than 5.3.1 | Touch ID or password prompt at each start and stop | Update (Fix 1) |
| No newer version offered | Same prompt | Rename the script folder (Fix 2) |
| You don't need lid-closed use | Same prompt | Leave Closed-Display Mode off (Fix 3) |
Fix 1: update Amphetamine to 5.3.1 or later
- Quit any running session, then quit Amphetamine.
- Update it through the same channel you installed it from. Amphetamine is listed on the Mac App Store (per our competitor notes), so check there first.
- Open Amphetamine and check its version in the About window.
- Start and stop a session with Closed-Display Mode on. Check whether the prompt is gone.
If no update is offered, you are on the newest version available to you. Go to Fix 2.
Fix 2: disable the script by renaming its folder
People on community forums report that renaming Amphetamine's script folder stops the prompt. We haven't verified this. We also don't know what else Amphetamine uses that folder for, so Closed-Display Mode may stop working. Use this only if you don't need that mode.
- Quit Amphetamine completely, including its menu bar icon.
- In Finder, press ⌘⇧G (Command-Shift-G) to open Go to Folder.
- Paste
~/Library/Application Scriptsand press Return. - Find the folder named
com.if.Amphetamine. - Rename it to
com.if.Amphetamine.disabled. Don't delete it. - Reopen Amphetamine and start a session.
If you prefer Terminal, this renames the folder and changes nothing else:
mv ~/Library/Application\ Scripts/com.if.Amphetamine ~/Library/Application\ Scripts/com.if.Amphetamine.disabledTo undo it, rename the folder back:
mv ~/Library/Application\ Scripts/com.if.Amphetamine.disabled ~/Library/Application\ Scripts/com.if.AmphetamineFix 3: leave Closed-Display Mode off
If you only close the lid occasionally and don't need the mode, turn it off in Amphetamine's settings. The reports tie the prompt to Closed-Display Mode, so start and stop a session without it and see whether the prompt returns. We couldn't confirm from the sources that ordinary sessions never trigger it, so treat the test as the answer.
Checklist before you try again
- Amphetamine is quit fully, not just its window closed.
- You checked the version number in Amphetamine's About window.
- The dialog names
osascript. If it names another app or tool, it is a different problem. - You are on an Apple silicon Mac, which is the setup the reports describe.
- If you renamed the folder, the original name was exactly
com.if.Amphetamine, inside~/Library/Application Scripts.
Where Glowmoth helps, and where it doesn't
Glowmoth can't fix Amphetamine or change what it does. It covers one case: you want the Mac to stay awake with the lid closed and are willing to approve a helper once.
Glowmoth's closed-lid mode is off by default:
- Open Settings ▸ Safety ▸ Closed Lid and turn on Stay awake with the lid closed.
- Approve the Glowmoth helper in System Settings ▸ General ▸ Login Items. Glowmoth opens that pane for you.
After that, the helper sets and clears the sleep setting itself (pmset -a disablesleep 1, then 0) while Glowmoth is keeping the Mac awake. Between sessions your Mac sleeps as usual. Some limits:
- It works only on Macs with a battery, and the battery floor (default 20%) and heat limit are forced on while it's enabled.
- It needs no external display or power adapter.
- Normal sleep returns immediately if Glowmoth quits or crashes, and within 30 seconds if it stops responding.
What we can't promise: we haven't confirmed whether macOS asks for an administrator password when you approve the helper. As of November 2026, closed-lid mode also hasn't been verified on hardware. Glowmoth is part of MacSuite, with a 7-day free trial. See the Glowmoth closed-lid docs.
If nothing works
Contact Amphetamine's developer through the app's support link or its store listing. Include your macOS version, your Amphetamine version, whether the Mac is Apple silicon, whether Closed-Display Mode is on, and the exact dialog text. Say what you already tried.
Subject: osascript password prompt at every session start and stop
Hi, Amphetamine asks for authentication for osascript every time I
start or stop a session.
macOS version:
Amphetamine version:
Mac: Apple silicon (model: )
Closed-Display Mode: on / off
Exact dialog text: "macOS asks for my password for osascript to make changes"
Already tried: updating Amphetamine, restarting the Mac, renaming
com.if.Amphetamine in ~/Library/Application Scripts (yes / no).Common questions
Is it safe to enter my password when the dialog appears?
Only if the prompt appears right after you start or stop a session in an app you installed. If one appears at random, close it and don't enter your password until you know what triggered it.
Will renaming the folder break Amphetamine?
It may disable Closed-Display Mode, but we haven't verified what else the folder affects. The rename is reversible: change the name back and relaunch.
Is the prompt still a problem in current versions?
The reports say 5.3.1 removed it. If you still see it on 5.3.1 or later, send the developer the message above, since we have no newer reports.
Does a different keep-awake app avoid the prompt?
It depends on the app. For Glowmoth, closed-lid mode needs a one-time helper approval in Login Items, and whether macOS also asks for an admin password there is unverified.