Launchagent Manager
/install launchagent-manager
Launchagent Manager
Description
List, classify, prune LaunchAgents; analyze openclaw.json so the proper gateway LaunchAgent remains connected and tokens match. Keeps only OpenClaw-related agents; can unload/delete others.
LaunchAgent Manager
Manages LaunchAgents in ~/Library/LaunchAgents and analyzes openclaw.json so the gateway LaunchAgent stays correct: loaded when it should be, and tokens matching config vs running gateway.
- List/prune: Classify agents as OpenClaw (keep) or other (prune). OpenClaw = Label or path contains "openclaw".
- Config check: Read
openclaw.json→ gateway port, auth mode, token set; find the gateway plist (e.g. ai.openclaw.gateway); report loaded? running? tokens match? (Uses gateway-guard status when available.) Recommends loading the plist or running gateway-guard ensure --apply if needed. - --fix: With --config, can load the gateway plist if not loaded and run gateway-guard ensure --apply if tokens mismatch.
Usage
- Ensure gateway stays connected: Run
--configto verify the gateway LaunchAgent is loaded and tokens match; use--config --fixto load plist and sync auth. - List what's running: see OpenClaw vs other agents.
- Remove non-OpenClaw LaunchAgents: prune so only OpenClaw daemons remain.
python3 \x3Cskill-dir>/scripts/launchagent_manager.py [--list] [--json]
python3 \x3Cskill-dir>/scripts/launchagent_manager.py --config [--fix] [--json]
python3 \x3Cskill-dir>/scripts/launchagent_manager.py --prune [--dry-run]
python3 \x3Cskill-dir>/scripts/launchagent_manager.py --prune --apply [--delete-plists]
- --list (default) — List all LaunchAgents; show OpenClaw (kept) vs others (prune targets). Shows loaded/unloaded.
- --config — Analyze openclaw.json and gateway LaunchAgent: config path, gateway port, auth, token set; gateway plist label and loaded?; gateway process running?; tokens match (config vs running)? Recommendations if plist not loaded or tokens mismatch. Exit 0 if all ok, 1 if action needed.
- --config --fix — If gateway plist not loaded: run
launchctl load \x3Cplist>. If tokens don't match: run gateway-guardensure --apply --json. Requires gateway-guard skill. - --config --json — Machine-readable report: config_path, gateway, gateway_launchagent, gateway_loaded, tokens_match, gateway_running, recommendations.
- --json — For --list:
{ "openclaw": [...], "others": [...] }. - --prune — Operate on non-OpenClaw agents. Without --apply this is a dry-run (show what would be unloaded).
- --prune --dry-run — Only show what would be unloaded.
- --prune --apply — Unload each non-OpenClaw LaunchAgent. Plist files kept unless --delete-plists.
- --prune --apply --delete-plists — Unload and delete plist files (backed up to OPENCLAW_HOME/backups/launchagents).
Safety
- Only user domain is touched:
~/Library/LaunchAgents/. System domain is not modified. - OpenClaw detection is conservative: Label
com.openclaw.*or any ProgramArgument containing "openclaw" → kept. - With --delete-plists, backups are written to
OPENCLAW_HOME/backups/launchagents/before deletion.
Requirements
- macOS (launchctl, plist in user LaunchAgents).
- Python 3 with plistlib (standard library).
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install launchagent-manager - 安装完成后,直接呼叫该 Skill 的名称或使用
/launchagent-manager触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Launchagent Manager 是什么?
List, classify, prune LaunchAgents; analyze openclaw.json so the proper gateway LaunchAgent remains connected and tokens match. Keeps only OpenClaw-related a... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 328 次。
如何安装 Launchagent Manager?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install launchagent-manager」即可一键安装,无需额外配置。
Launchagent Manager 是免费的吗?
是的,Launchagent Manager 完全免费(开源免费),可自由下载、安装和使用。
Launchagent Manager 支持哪些平台?
Launchagent Manager 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Launchagent Manager?
由 austindixson(@austindixson)开发并维护,当前版本 v1.0.0。