Skip to content

Latest commit

 

History

13 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Methamphetamine

Methamphetamine is a small macOS menu bar app that keeps your Mac awake while Codex is working. It detects active Codex tasks automatically, prevents sleep while they run, and allows your Mac to sleep again when they finish.

Download

Download the latest version for macOS

Open the DMG, then drag Methamphetamine to Applications. Requires macOS 13 or later.

Current release: 0.2.0 (build 40). SHA-256: 44cb2e92865d4866c405e057f74b6cd973d6d8465f4f9f5d337e6212cd500517.

How it works

  • Keeps Codex running when your Mac would normally go to sleep
  • Can keep tasks running when the lid is closed
  • Turns sleep protection off when the last task finishes
  • Restores protection if the task starts working again
  • Allows sleep at 10% battery or below
  • Runs locally with no account or API connection

Methamphetamine requires macOS 13 or later. Keeping a Mac awake with the lid closed can use more battery and generate heat, so do not leave it running inside a bag.

Privacy and permissions

Methamphetamine reads lifecycle markers from local Codex session files to know when a task starts and finishes. It does not store or send your prompts, responses, or code.

Keeping a Mac awake with the lid closed requires a one-time administrator confirmation. This installs a narrow sudoers rule that allows only the two required pmset commands. To remove the rule:

sudo rm /private/etc/sudoers.d/methamphetamine_power_protect_$(id -u)

Build

swift test
swift build -c release
./scripts/package.sh

The packaging script creates a local ad-hoc signed app in dist/. Public releases must be signed with Developer ID and notarized by Apple.

About

Methamphetamine is a small macOS menu bar app that keeps your Mac awake while Codex is working. It detects active Codex tasks automatically, prevents sleep while they run, and allows your Mac to sleep again when they finish

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages