返回顶部
🇺🇸 English
🇨🇳 简体中文
🇨🇳 繁體中文
🇺🇸 English
🇯🇵 日本語
🇰🇷 한국어
🇫🇷 Français
🇩🇪 Deutsch
🇪🇸 Español
🇷🇺 Русский
l

launchagent-manager

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.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
296
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

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 `--config` to verify the gateway LaunchAgent is loaded and tokens match; use `--config --fix` to load plist and sync auth. - List what's running: see OpenClaw vs other agents. - Remove non-OpenClaw LaunchAgents: prune so only OpenClaw daemons remain. ```bash python3 <skill-dir>/scripts/launchagent_manager.py [--list] [--json] python3 <skill-dir>/scripts/launchagent_manager.py --config [--fix] [--json] python3 <skill-dir>/scripts/launchagent_manager.py --prune [--dry-run] python3 <skill-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 <plist>`. If tokens don't match: run gateway-guard `ensure --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).

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 launchagent-manager-1776289944 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 launchagent-manager-1776289944 技能

通过命令行安装

skillhub install launchagent-manager-1776289944

下载

⬇ 下载 launchagent-manager v1.0.0(免费)

文件大小: 6.4 KB | 发布时间: 2026-4-16 16:47

v1.0.0 最新 2026-4-16 16:47
Initial release of Launchagent Manager.

- Lists, classifies, and prunes LaunchAgents in ~/Library/LaunchAgents, keeping only OpenClaw-related agents.
- Analyzes openclaw.json to ensure the correct gateway LaunchAgent is connected and tokens match.
- Offers --config and --fix options to verify and correct LaunchAgent status and token sync.
- Supports prune operations to safely unload or delete non-OpenClaw agents, with dry run and backup options.
- Provides both human-readable and machine-readable (--json) output formats for reporting and automation.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部