D
devasahithiyan/NeverSleep
Close your MacBook lid and keep AI agents and chosen apps running in the background — no more half-closed lid
在 GitHub 查看 ↗链接已于 2026-11-13 核查 · HTTP 200 · 打开的是厂商自己的官网
安装与配置
客户端配置(取自该仓库的安装命令)
{
"mcpServers": {
"devasahithiyan-neversleep": {
"command": "npx",
"args": ["wrangler"]
}
}
}解析自我们于 2026-11-12 抓取的该仓库 README;我们未执行过。
command/args 来自仓库写明的安装命令;不确定时请以该项目 README 为准。
VS Code(.vscode/mcp.json —— 键名是 servers)
{
"servers": {
"devasahithiyan-neversleep": {
"command": "npx",
"args": ["wrangler"]
}
}
}VS Code 顶层键是 <code>servers</code>,其余与上面那份相同。
Claude Code(命令行)
claude mcp add --transport stdio devasahithiyan-neversleep -- npx wrangler
Claude Code 不收 JSON 文件,用这条命令直接加。
配置项的键名以你的客户端为准:客户端与 CLI
- ★ 数取值
- 0 ★ · devasahithiyan/NeverSleep · 取自 GitHub 搜索 API · (2026-11-13 20:00:50 核对)
- 来源明细
- 从该仓库的 GitHub 页面直接读取 · 条目类型:开源项目
- 收录与活跃
- 收录于 2026-11-13 · 最近见到 2026-11-14 · 共见到 2 次 · 被 1 个来源列出
- 评分构成
- 综合分 103 · 1 个来源 · repo
- 安装
npx wrangler
常见问题(答案都来自我们的记录)
怎么安装?
该仓库给出的安装命令是
npx wrangler。我们的记录里它是仓库自己提供的;不保证在你的客户端上直接可用。它适合谁 / 用来做什么?
我们把它归在这些标签下: 开源项目。标签来自条目自身,不是我们强加的分类。
谁维护它、还在更新吗?
仓库
devasahithiyan/NeverSleep;我们收录于 2026-11-13;最近见到 2026-11-14。这里没有"官方认证"或"质量评级"——我们只记录来源与时间。# NeverSleep
以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →
Close your MacBook lid and keep your AI agents and apps running in the background. No more leaving the lid half-closed.
The goal of this project is simple. You start a long job on your Mac: an AI coding agent, a model download, a build, a scraper, a render. Then you need to leave, and the job stops when you close the lid. The usual workarounds are keeping the lid propped half-open, or plugging in an external display. NeverSleep lets you close the lid properly and keeps only the apps you chose running. You can check on the Mac and control it from your phone's browser.
macOS menu bar app · privileged helper · Cloudflare relay · mobile web dashboard
## What it does
Keeps chosen apps running with the lid closed. Pick apps from an allow-list, such as your terminal, Claude, Cursor, Ollama, a browser or a download manager. Everything else is paused (SIGSTOP) while the lid is closed, so it doesn't drain the battery, and resumed (SIGCONT) when you open it.
Safety cutoffs. Below a battery level (default 20%, only when unplugged), or when macOS reports serious or critical thermal pressure, NeverSleep resumes everything, re-enables sleep and puts the Mac to sleep.
Remote dashboard in any browser. Nothing to install on your phone. You see:
battery, charging and time remaining
lid state and thermal state
running apps, with Pause / Resume / Quit / Force quit
a search to open any installed app
lid mode on/off
the allow-list editor
online status and last seen
No passwords. A browser signs in by typing a one-time code shown in the Mac's menu bar.
Crash-safe. If NeverSleep quits, crashes or is killed, sleep is re-enabled and every paused app is resumed.
## How it works
macOS can't keep one app awake while the rest of the Mac sleeps, so NeverSleep keeps the whole Mac awake with pmset disablesleep 1. That's the same mechanism Amphetamine's closed-lid mode uses; caffeinate and power assertions don't stop lid-close sleep. It then freezes every app that's not on your list. When the lid opens, the frozen apps resume and normal sleep returns.
┌──────────── Your Mac ────────────┐ ┌──── Cloudflare (free plan) ────┐ ┌── Any browser ──┐
│ NeverSleep.app (menu bar) │ outbound │ Worker + Durable Objects │ HTTPS │ Dashboard │
│ • watches the lid (IOKit) │ WebSocket │ • one Durable Object per Mac │◀──────▶│ (phone/laptop) │
│ • pauses/resumes apps │──────────▶ │ • pairing + sign-in codes │ └─────────────────┘
│ • battery + thermal cutoffs │ (TLS) │ • fixed, validated commands │
│ NeverSleepHelper (root daemon) │ │ • static dashboard │
│ • only: pmset disablesleep 0|1 │ └────────────────────────────────┘
└──────────────────────────────────┘
The Mac only makes outbound connections, so it works behind any router or NAT, with no port forwarding.
## Requirements
A MacBook running macOS 14 Sonoma or later (Apple Silicon or Intel)
Xcode Command Line Tools (xcode-select --install). Full Xcode is not needed.
Node.js 18+ and a free Cloudflare account, only if you want the remote dashboard
## Quick start
### 1. Deploy your relay (for the remote dashboard)
Everyone runs their own relay, so your Mac never talks to someone else's server.
bash
git clone https://github.com/devasahithiyan/NeverSleep.git
The goal of this project is simple. You start a long job on your Mac: an AI coding agent, a model download, a build, a scraper, a render. Then you need to leave, and the job stops when you close the lid. The usual workarounds are keeping the lid propped half-open, or plugging in an external display. NeverSleep lets you close the lid properly and keeps only the apps you chose running. You can check on the Mac and control it from your phone's browser.
macOS menu bar app · privileged helper · Cloudflare relay · mobile web dashboard
## What it does
Keeps chosen apps running with the lid closed. Pick apps from an allow-list, such as your terminal, Claude, Cursor, Ollama, a browser or a download manager. Everything else is paused (SIGSTOP) while the lid is closed, so it doesn't drain the battery, and resumed (SIGCONT) when you open it.
Safety cutoffs. Below a battery level (default 20%, only when unplugged), or when macOS reports serious or critical thermal pressure, NeverSleep resumes everything, re-enables sleep and puts the Mac to sleep.
Remote dashboard in any browser. Nothing to install on your phone. You see:
battery, charging and time remaining
lid state and thermal state
running apps, with Pause / Resume / Quit / Force quit
a search to open any installed app
lid mode on/off
the allow-list editor
online status and last seen
No passwords. A browser signs in by typing a one-time code shown in the Mac's menu bar.
Crash-safe. If NeverSleep quits, crashes or is killed, sleep is re-enabled and every paused app is resumed.
## How it works
macOS can't keep one app awake while the rest of the Mac sleeps, so NeverSleep keeps the whole Mac awake with pmset disablesleep 1. That's the same mechanism Amphetamine's closed-lid mode uses; caffeinate and power assertions don't stop lid-close sleep. It then freezes every app that's not on your list. When the lid opens, the frozen apps resume and normal sleep returns.
┌──────────── Your Mac ────────────┐ ┌──── Cloudflare (free plan) ────┐ ┌── Any browser ──┐
│ NeverSleep.app (menu bar) │ outbound │ Worker + Durable Objects │ HTTPS │ Dashboard │
│ • watches the lid (IOKit) │ WebSocket │ • one Durable Object per Mac │◀──────▶│ (phone/laptop) │
│ • pauses/resumes apps │──────────▶ │ • pairing + sign-in codes │ └─────────────────┘
│ • battery + thermal cutoffs │ (TLS) │ • fixed, validated commands │
│ NeverSleepHelper (root daemon) │ │ • static dashboard │
│ • only: pmset disablesleep 0|1 │ └────────────────────────────────┘
└──────────────────────────────────┘
The Mac only makes outbound connections, so it works behind any router or NAT, with no port forwarding.
## Requirements
A MacBook running macOS 14 Sonoma or later (Apple Silicon or Intel)
Xcode Command Line Tools (xcode-select --install). Full Xcode is not needed.
Node.js 18+ and a free Cloudflare account, only if you want the remote dashboard
## Quick start
### 1. Deploy your relay (for the remote dashboard)
Everyone runs their own relay, so your Mac never talks to someone else's server.
bash
git clone https://github.com/devasahithiyan/NeverSleep.git
收录徽章(可选)
想把收录标记放进 README 就复制这行,可选,不影响收录。
[](https://anclum.com/zh/s/devasahithiyan-neversleep/)
- 来源
- github · https://github.com/devasahithiyan/NeverSleep
- 按领域浏览
- 开源项目
- 收录于
- 今天
同类推荐
所属领域与标签
每个标签都能点进去看同类的全部条目。数字是当前库里的真实条数。