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.

0 1,018 2,037 Sep 24, 2026 Nov 2, 2026
GitHub stars for Insomnia: 2 on Sep 24, 2026, 1,886 on Nov 2, 2026. Source: GitHub.

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.

Last updated Nov 2, 2026. Tracked since Oct 28, 2026. Parts of this summary required judgment because the source material was brief. The summary was written by an AI model from the project's own description and checked against our copy rules. Spotted an error? Tell us.