Repository navigation
Melatonin 0.1.0
Close the lid. Keep the agents running. Melatonin keeps your MacBook awake with the lid closed — on battery, no external display — while Claude Code, Codex and friends finish their work.
Download
- Melatonin.dmg: open it and drag Melatonin to Applications
- Homebrew:
brew install --cask jugol/tap/melatonin - Universal binary (Apple silicon and Intel), macOS 14 Sonoma or later
First launch: this build isn't notarized by Apple yet, so macOS stops the first launch. Open System Settings › Privacy & Security and click Open Anyway, or run
xattr -dr com.apple.quarantine /Applications/Melatonin.app.
What's in 0.1.0
- Lid-closed keep-awake through a tiny privileged helper (
pmset disablesleep), with one password prompt the first time - Lives in your notch: a glowing lamp and countdown while awake, hover to expand. On displays without a notch it hangs from the menu bar.
- Menu bar switch with 1, 2, 4 and 8 hour timers, or until you turn it off
- Auto for AI agents: stays awake only while Claude Code, Codex, Hermes, OpenCode, T3 Code, Gemini CLI, Cursor Agent, Amp, Goose or Crush is actually working
- Stay online: pick backup networks from your saved Wi-Fi, set their priority, mark your phone's hotspot. If the internet drops while awake, Melatonin joins the next one.
- Safety: battery floor, heat guard, and normal sleep restored automatically if the app quits, crashes or is killed, or the helper is stopped
- 12 languages: English, 한국어, 简体中文, 日本語, Español, Français, Deutsch, Português (Brasil), Русский, العربية, हिन्दी, Bahasa Indonesia
한국어 요약
뚜껑을 닫아도 맥북이 잠들지 않게 해주는 메뉴바 앱의 첫 릴리스예요. 노치 알약 UI, 타이머, AI 에이전트 자동 감지, 연결 유지(Wi-Fi·핫스팟 자동 전환), 배터리·발열 안전장치를 담았어요. 첫 실행이 막히면 시스템 설정 › 개인정보 보호 및 보안 › 그래도 열기를 눌러주세요.