← 返回
数据分析 中文

Launchagent Manager

List, classify, prune LaunchAgents; analyze openclaw.json so the proper gateway LaunchAgent remains connected and tokens match. Keeps only OpenClaw-related a...
列出、分类、裁剪 LaunchAgents;分析 openclaw.json,确保网关 LaunchAgent 保持连接且令牌匹配;仅保留与 OpenClaw 相关的内容。
runeweaverstudios
数据分析 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 578
下载
💾 7
安装
1
版本
#latest

概述

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.
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 . 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).

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-30 06:23 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

Agent Swarm

runeweaverstudios
必须使用 OpenRouter。将任务路由至合适模型,并始终通过 sessions_spawn 委派工作。
★ 4 📥 3,606
data-analysis

Excel / XLSX

ivangdavila
创建、检查和编辑 Microsoft Excel 工作簿及 XLSX 文件,支持可靠的公式、日期、类型、格式、重算及模板保留功能。
★ 367 📥 140,275
data-analysis

Data Analysis

ivangdavila
{"answer":"数据分析与可视化。查询数据库、生成报告、自动化电子表格,将原始数据转化为清晰可行的见解。适用于:(1) 您……"}
★ 198 📥 65,027