Shutdown for Openclaw

A safe, cross-platform workflow for managing system power states including shutdowns, reboots, and cancellations through your AI agent.

jvy
v1.0.0
Mar 14, 2026
0
890
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install shutdown

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install shutdown using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Shutdown?

The Shutdown skill provides a robust framework for managing system power states across Linux, macOS, and Windows environments. Designed for reliability and safety, this Openclaw Skills entry focuses on session integrity, ensuring that power-off or restart commands are never executed without explicit user confirmation and pre-execution checks. It acts as a protective layer between the user and system-level commands, preventing accidental data loss or disconnected remote sessions.

By leveraging platform-specific binaries like systemctl, shutdown, and PowerShell, the skill adapts to the environment it is running in. Whether you are managing a local workstation or a remote server, this skill prioritizes delayed actions (such as +1 minute shutdowns) to allow for last-minute cancellations, making it an essential tool for developers and sysadmins using Openclaw Skills.

Shutdown Use Cases

  • Scheduling a system shutdown after a long-running build or data processing task completes.
  • Safely rebooting a remote server while receiving warnings about potential session disconnects.
  • Canceling an accidental shutdown command before it executes using the cancel workflow.
  • Performing pre-shutdown system health checks to identify active users or critical processes.

How Shutdown Works

  1. The AI agent clarifies the user intent, identifying the target machine (local or remote), the specific action (shutdown or reboot), and the desired timing.
  2. Read-only pre-checks are performed using system tools like uptime, who, or systemctl to identify active users and potential risks.
  3. The skill selects the appropriate platform-specific command based on the operating system metadata (Darwin, Linux, or Win32).
  4. A mandatory confirmation prompt is presented to the user, detailing the exact command and its expected impact on the session.
  5. Upon clear confirmation, the command is executed, and the agent verifies the scheduled state or provides post-action verification steps.

Shutdown Setup

To use this skill within the Openclaw Skills framework, ensure your environment has the necessary permissions to execute power management commands.

# For Linux and macOS, the user must have sudo privileges
sudo -v

# For Windows, Ensure PowerShell is running with appropriate execution policies
# No additional binary installation is required as it uses native system tools.

Shutdown Data Schema & Taxonomy

The Shutdown skill interacts directly with system binaries and does not maintain a persistent database, but it organizes its execution logic based on the following taxonomy:

Attribute Description
Action Type shutdown, reboot, schedule, or cancel
Target Host Identifies if the command applies to a local machine or remote host
OS Metadata Detects darwin, linux, or win32 to choose the correct syntax
Timing Parameter Supports immediate execution or relative offsets (e.g., +1, +10, 60s)
Confirmation Status Tracks explicit user approval before state-changing execution

Shutdown Advanced Features

  • Intelligent platform detection to switch between systemd, BSD-style shutdown, and Windows CMD/PowerShell commands.
  • Remote session awareness that issues specific warnings when a shutdown might terminate the AI agent's own connection.
  • Integrated pre-shutdown checks that report system uptime and active user counts to prevent interrupting other users.
  • Built-in cancellation logic specifically designed to reverse scheduled power actions across all supported platforms.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*