laborany
基于 Claude Code 的桌面 AI 工作力平台 — 支持飞书/QQ 远程调度、技能创建、定时任务。OpenClaw 的桌面实现,零代码养好你的 AI 🦞 Desktop AI workforce platform built on Claude Code. Feishu/QQ bot integration, skill c...
Run OpenClaw as a system-level LaunchDaemon on macOS for 24/7 operation, surviving screen lock, logout, and user switching. Uses caffeinate to prevent sleep. Verified working for long-term locked screen scenarios.
Suivez les instructions du dépôt pour votre agent. Consultez les fichiers et dépendances avant l’installation.
SkillHub CLI
skillhub install happydog-intj/openclaw-macos-always-onExaminez la source et la compatibilité, puis suivez les étapes d’installation.
Donnez le lien à votre agent et demandez-lui d’examiner instructions et dépendances avant d’expliquer les étapes.
Run OpenClaw as a system-level service (LaunchDaemon) with caffeinate to ensure 24/7 operation. This configuration has been tested and verified to work even after extended screen lock periods (30+ minutes).
Ensures OpenClaw continues running when:
Use LaunchDaemon if:
Use LaunchAgent if:
curl -fsSL https://raw.githubusercontent.com/YOUR_USERNAME/clawd/master/skills/macos-launchdaemon/install.sh | bash
Or manual setup below ⬇️
Create the plist file with your actual username. This configuration uses caffeinate and has been tested and verified to work even after 30+ minutes of screen lock:
cat > /tmp/ai.openclaw.gateway.plist << 'EOF'
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>ai.openclaw.gateway</string>
<key>Comment</key>
<string>OpenClaw Gateway (System Daemon - Network Always On)</string>
<key>RunAtLoad</key>
<true/>
<!-- Enhanced KeepAlive for network services -->
<key>KeepAlive</key>
<dict>
<key>SuccessfulExit</key>
<false/>
<key>NetworkState</key>
<true/>
<key>Crashed</key>
<true/>
</dict>
<!-- Prevent ANY throttling -->
<key>ThrottleInterv...
Ces informations proviennent de l’analyse indexée et peuvent être anciennes. Vérifiez les fichiers actuels.
Keep OpenClaw running 24/7 on macOS - even when your screen is locked for hours!
English | 简体中文
By default, macOS suspends user processes when you lock your screen, causing your OpenClaw bot to stop responding to messages. This project provides a tested and verified solution using LaunchDaemon + caffeinate.
Verified Working:
One-line installation:
curl -fsSL https://raw.githubusercontent.com/happydog-intj/openclaw-macos-always-on/master/install.sh | bash
Or manual installation - see SKILL.md for detailed instructions.
Converts OpenClaw from a user-level LaunchAgent to a system-level LaunchDaemon with these enhancements:
| Feature | Before (LaunchAgent) | After (LaunchDaemon + caffeinate) |
|---|---|---|
| Screen locked | ❌ Suspends after ~10min | ✅ Runs indefinitely |
| User logged out | ❌ Stops | ✅ Continues running |
| Boot startup | At login | At system boot |
| Priority | User-level | System-level |
| Sleep prevention | None | caffeinate -s |
The solution uses three key components:
<!-- Key configuration -->
<key>ProgramArguments</ke...
# macOS LaunchDaemon Setup for OpenClaw
Run OpenClaw as a system-level service (LaunchDaemon) with `caffeinate` to ensure 24/7 operation. This configuration has been **tested and verified** to work even after extended screen lock periods (30+ minutes).
**Ensures OpenClaw continues running when:**
- 🔒 Screen is locked (short or long duration)
- 👤 User is logged out
- 🔄 Switching between user accounts
- 💤 Display sleeps (system stays awake)
## When to Use This
**Use LaunchDaemon if:**
- You need 24/7 bot availability
- You lock your Mac regularly but want messages to still work
- Multiple users on the same Mac need to access the bot
- Running on a home server/always-on Mac
**Use LaunchAgent if:**
- Only need bot while logged in
- Prefer simpler setup (no sudo)
- Security-conscious about system-level services
## Quick Setup
### One-Command Installation
```bash
curl -fsSL https://raw.githubusercontent.com/YOUR_USERNAME/clawd/master/skills/macos-launchdaemon/install.sh | bash
```
Or manual setup below ⬇️
## Manual Setup
### Step 1: Create LaunchDaemon Configuration
Create the plist file with your actual username. This configuration uses **caffeinate** and has been **tested and verified** to work even after 30+ minutes of screen lock:
```bash
cat > /tmp/ai.openclaw.gateway.plist << 'EOF'
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>ai.openclaw.gateway</string>
<key>Comment</key>
<string>OpenClaw Gateway (System Daemon - Network Always On)</string>
<key>RunAtLoad</key>
<true/>
<!-- Enhanced KeepAlive for network services -->
<key>KeepAlive</key>
<dict>
<key>SuccessfulExit</key>
<false/>
<key>NetworkState</key>
<true/>
<key>Crashed</key>
<true/>
</dict>
<!-- Prevent ANY throttling -->
<key>ThrottleInterv...# OpenClaw macOS Always-On **Keep OpenClaw running 24/7 on macOS - even when your screen is locked for hours!** [](https://www.apple.com/macos/) [](https://github.com/happydog-intj/openclaw-macos-always-on) [](LICENSE) English | [简体中文](README.zh-CN.md) ## 🎯 Problem Solved By default, macOS suspends user processes when you lock your screen, causing your OpenClaw bot to stop responding to messages. This project provides a **tested and verified** solution using LaunchDaemon + caffeinate. **Verified Working:** - ✅ Screen locked for 30+ minutes - ✅ macOS 14.4 (and earlier versions) - ✅ Both Intel and Apple Silicon Macs ## 🚀 Quick Install One-line installation: ```bash curl -fsSL https://raw.githubusercontent.com/happydog-intj/openclaw-macos-always-on/master/install.sh | bash ``` Or manual installation - see [SKILL.md](./SKILL.md) for detailed instructions. ## ✨ What This Does Converts OpenClaw from a user-level LaunchAgent to a system-level LaunchDaemon with these enhancements: | Feature | Before (LaunchAgent) | After (LaunchDaemon + caffeinate) | |---------|---------------------|----------------------------------| | **Screen locked** | ❌ Suspends after ~10min | ✅ Runs indefinitely | | **User logged out** | ❌ Stops | ✅ Continues running | | **Boot startup** | At login | At system boot | | **Priority** | User-level | System-level | | **Sleep prevention** | None | `caffeinate -s` | ## 🔧 How It Works The solution uses three key components: 1. **LaunchDaemon** - System-level service (runs as your user but managed by system launchd) 2. **caffeinate** - macOS utility that prevents system sleep while keeping display sleep enabled 3. **Enhanced KeepAlive** - Network-aware restart with crash recovery ```xml <!-- Key configuration --> <key>ProgramArguments</ke...
基于 Claude Code 的桌面 AI 工作力平台 — 支持飞书/QQ 远程调度、技能创建、定时任务。OpenClaw 的桌面实现,零代码养好你的 AI 🦞 Desktop AI workforce platform built on Claude Code. Feishu/QQ bot integration, skill c...
Bambu Lab 3D printer control and automation. Activate when user mentions: printer status, 3D printing, slice, analyze model, generate 3D, AMS filament, print monitor, Bambu Lab, or any 3D printing task. Full pi...
Reusable OpenClaw skill for remote Linux deployment with MiniMax M2.1 and Telegram bot setup
Bots learn, human earns, curated open claw playbook list and skill list for life long learners at https://botlearn.ai