Insomnia
Insomnia is a macOS menu bar app that keeps a MacBook awake with the lid closed for timed sessions, so long-running AI agents can keep working.
What it is good for
- Keeping a laptop running while an AI agent works
- Stopping a MacBook from sleeping during long tasks
- Setting an end time for a closed-lid work session
- Restoring settings if a session ends unexpectedly
At a glance
- Who it is for
- Setup
- Install a desktop app or browser extension
Level 3 of 5. Download and install it like any other app or extension.
- Cost
- Free and open source
- Type
- Agent app
- Tasks
- Works with
- Claude Code, Codex, tmux
Momentum
- Rank this week
- Not ranked yet
- Best rank
- None yet
- GitHub stars
- 1,886
GitHub numbers as of Nov 2, 2026. Updated weekly.
Official links
Setup steps are on the official pages. We do not repeat them here, since they change.
Questions
- Is Insomnia free?
- Yes. It is free and open source (MIT license).
- Do I need to know how to code to use Insomnia?
- No. Download and install it like any other app or extension.
- What does Insomnia work with?
- According to its own documentation, it works with Claude Code, Codex, and tmux.
- What is Insomnia good for?
- Keeping a laptop running while an AI agent works, stopping a MacBook from sleeping during long tasks, setting an end time for a closed-lid work session, and restoring settings if a session ends unexpectedly.
Similar agents to Insomnia
- pi
Pi is a minimal, extensible coding agent CLI that runs in your terminal for developers who want to customize their own agent setup.
- Gemini CLI
Gemini CLI is an open-source terminal agent that helps developers query, edit, and debug code from the command line.
- OmniRoute
OmniRoute is a self-hosted AI gateway that routes coding requests across many AI providers for developers who want to keep working when one provider runs out of quota.
- Ruflo
Ruflo is a coordination layer that runs teams of AI agents alongside Claude Code and Codex for developers who need multi-agent work done.
- Cline
Cline is an open source coding agent that writes, edits, and runs code in your editor, terminal, or desktop app for developers.
- goose
goose is an agent app that runs on your computer and handles coding, research, writing, and automation tasks for developers and power users.