← 返回 Skills 市场
alaminedits

Boot Installer

作者 Al Amin · GitHub ↗ · v1.0.0 · MIT-0
linux ⚠ suspicious
96
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install boot-installer
功能描述
Install, update, repair, or health-check the openclaw environment. Use when the user says install openclaw, run the bootstrapper, update packages, fix a brok...
使用说明 (SKILL.md)

boot_installer

Runs {baseDir}/boot.sh to manage the full openclaw environment lifecycle. Requires Linux and root/sudo access. The script handles privilege escalation automatically.

Slash commands

Command What it does
/boot-install Fresh install of all components
/boot-update Upgrade all packages to latest versions
/boot-repair Deep clean and rebuild broken state
/boot-check Health-check — verify all components

When to run which mode

  • User says "install openclaw", "set it up", "run the installer" → install (no flag)
  • User says "update", "upgrade packages" → update
  • User says "repair", "fix", "something is broken", "rebuild" → repair
  • User says "check", "status", "is everything installed", "health check" → check

How to invoke

Always run as the calling user (sudo is handled internally by the script):

bash {baseDir}/boot.sh                # install
bash {baseDir}/boot.sh --update       # update
bash {baseDir}/boot.sh --repair       # repair
bash {baseDir}/boot.sh --check        # check — exits with number of failed checks (max 125)

Use the exec tool. Stream output so the user sees the spinner progress live.

What gets installed (install mode)

  • Node.js v24+ via NodeSource
  • UV Python package manager (~/.local/bin/uv)
  • Python 3.10 venv at ~/venv with scrapling[fetchers]
  • Chromium browser via Playwright (~/.cache/ms-playwright)
  • NPM globals: 9router, openclaw@latest, clawhub, paperclipai, @presto-ai/google-workspace-mcp, mcporter
  • System symlinks in /usr/local/bin
  • 9router autostart via systemd user service (falls back to .bashrc hook)
  • openclaw-gateway-watchdog systemd user service
  • Mcporter Google Workspace connector

Key paths

Path Purpose
~/venv Python virtual environment
~/.local/bin UV binary
~/.local/npm/bin NPM global binaries
~/.cache/ms-playwright Chromium browser
~/.openclaw/workspace/skills Workspace skills
~/.config/systemd/user/9router.service 9router systemd unit
~/.config/systemd/user/openclaw-gateway-watchdog.service Gateway watchdog

After install

If .bashrc was modified, remind the user to reload their shell:

source ~/.bashrc

Logs and errors

The script writes a full log to /tmp/boot-YYYYMMDD-HHMMSS.log. If a step fails, the last 15 lines of output are printed inline and the log path is shown. Surface that path to the user on failure.

Check mode exit codes

--check exits with the count of failed checks (0 = all pass, 1–125 = N issues, capped at 125). Parse the exit code and tell the user how many checks failed and to run bash {baseDir}/boot.sh to repair.

Troubleshooting

  • APT lock held — script waits up to 120 s and kills blocking processes automatically. No user action needed.
  • Node.js wrong version — script upgrades it automatically if the installed major is below 24.
  • Broken Python venv — run --repair first, then run without flags to reinstall packages.
  • 9router not starting — logs at ~/.local/share/9router.log. Falls back to .bashrc login hook if systemd unavailable.
  • Gateway watchdog not starting — run journalctl --user -u openclaw-gateway-watchdog -n 50.
  • Permission errors on files — run without flags (install mode); _fix_ownership runs at the end of every install/update.
安全使用建议
This skill behaves like a full system bootstrapper and must be treated as such. Before installing: (1) review the full boot.sh contents line-by-line (it is included in the package) to verify every action; (2) be especially cautious about the code that writes /etc/sudoers.d/openclaw-<user> with NOPASSWD: ALL — that gives the user passwordless root access and is a major security risk; (3) note the metadata also instructs downloading boot.sh from raw.githubusercontent.com at runtime — prefer using the included copy or verify the remote script's integrity; (4) run the installer first in an isolated VM or disposable environment to observe behavior; (5) if you need the software but not passwordless sudo, edit the script to remove automatic sudoers modifications and require interactive sudo; and (6) ensure backups and a rollback plan (or snapshot) before allowing the installer to modify /etc, /usr/local/bin, or systemd units.
功能分析
Type: OpenClaw Skill Name: boot-installer Version: 1.0.0 The boot-installer skill performs aggressive system-level modifications, most notably creating a persistent passwordless sudoers entry in `/etc/sudoers.d/openclaw-*` that grants the user full administrative privileges. The `boot.sh` script also installs systemd user services, modifies `.bashrc` for persistence, and executes remote installation scripts from third-party domains like `astral.sh` and `nodesource.com`. While these actions are consistent with the stated purpose of bootstrapping a complex environment, the broad privilege escalation and lack of fine-grained permissions represent a significant security risk.
能力评估
Purpose & Capability
The name/description match the included behavior: boot.sh installs Node/Python packages, systemd units, symlinks, and performs repair/checks. Requiring bash/curl and (optionally) sudo is expected. Minor inconsistency: SKILL.md metadata lists a runtime download of boot.sh from raw.githubusercontent.com while the package already includes boot.sh.
Instruction Scope
The runtime instructions tell the agent to execute the full boot.sh with sudo escalation. The script reads/writes system locations (e.g., /etc/sudoers.d, /usr/local/bin, ~/.config/systemd/user) and can modify ~/.bashrc, create systemd units and autostart hooks, and kill package manager processes. These actions go beyond simple package installation and can alter system auth and persistence. The script also logs to /tmp and prints failures — no direct secret exfiltration is visible, but the authority granted is broad.
Install Mechanism
No packaged installer is required (instruction-only), but SKILL.md metadata suggests downloading boot.sh from raw.githubusercontent.com (a standard GitHub host). Downloading runtime scripts from raw GitHub is common for bootstrappers but still carries risk: code fetched at runtime can change between publish-time and install-time. The repo's boot.sh is also included in the skill bundle, making the download step redundant and inconsistent.
Credentials
The skill declares no env vars, which matches its instructions. However, the script grants broad system privileges: it creates a sudoers file granting NOPASSWD: ALL for the real user (lines that write to /etc/sudoers.d/openclaw-<user>), which is a permanent, overly-broad escalation of privileges not strictly necessary for many installers and increases attack surface considerably.
Persistence & Privilege
boot.sh writes persistent system-level artefacts: /etc/sudoers.d entries, systemd user service units, /usr/local/bin symlinks, and may modify ~/.bashrc. Although always:false and user-invocable, these changes create long-lived privileges and autostart behavior. The NOPASSWD sudoers entry in particular grants persistent, unrestricted privilege escalation for the user.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install boot-installer
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /boot-installer 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
boot-installer 1.0.0 - Initial release for managing the openclaw environment lifecycle on Linux. - Provides install, update, repair, and health-check modes with corresponding slash commands. - Automates installs of Node.js 24+, UV Python manager, Python venv, Chromium (Playwright), NPM globals, and sets up systemd user services. - Handles privilege escalation, locks, and repairs common package and environment issues. - Surfaces logs and troubleshooting tips if steps fail; clear reporting of health-check results and log locations.
元数据
Slug boot-installer
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Boot Installer 是什么?

Install, update, repair, or health-check the openclaw environment. Use when the user says install openclaw, run the bootstrapper, update packages, fix a brok... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 96 次。

如何安装 Boot Installer?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install boot-installer」即可一键安装,无需额外配置。

Boot Installer 是免费的吗?

是的,Boot Installer 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Boot Installer 支持哪些平台?

Boot Installer 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(linux)。

谁开发了 Boot Installer?

由 Al Amin(@alaminedits)开发并维护,当前版本 v1.0.0。

💬 留言讨论