Claw Shell for Openclaw

A terminal execution skill that runs shell commands inside a persistent tmux session while maintaining safety boundaries.

gdwebw
v1.0.0
Mar 7, 2026
0
1.2k
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install my-shell

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 my-shell 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 Claw Shell?

Claw Shell provides a robust interface for AI agents to interact with the system terminal through a dedicated tmux session named claw. By isolating command execution to a specific session, it ensures that long-running processes and CLI workflows remain persistent and organized. This skill is a fundamental component for users looking to expand their Openclaw Skills library with reliable, output-aware shell automation that doesn't interfere with other active terminal sessions.

Claw Shell Use Cases

  • Managing long-running background tasks like server deployments or database migrations.
  • Performing routine repository maintenance and git operations within a persistent environment.
  • Inspecting system logs and file structures through standard CLI utilities.
  • Capturing terminal output for real-time analysis by an AI agent using Openclaw Skills.

How Claw Shell Works

  1. The agent triggers the claw_shell_run tool with the desired command as an input.
  2. The skill checks for an existing tmux session named claw and creates it if it is missing.
  3. The command is sent directly to the tmux session followed by an enter key sequence.
  4. The skill captures the visible output from the current tmux pane.
  5. The resulting text is returned to the agent, providing a detailed snapshot of the terminal state.

Claw Shell Setup

Before using this skill, ensure that tmux is installed on your host machine. You can install it via the following commands:

# For Ubuntu/Debian
sudo apt-get install tmux

# For macOS
brew install tmux

After installation, the skill will automatically handle session creation the first time it is invoked through Openclaw Skills.

Claw Shell Data Schema & Taxonomy

The skill focuses on session-based command execution and output retrieval. The following table describes its operational parameters:

Attribute Description
Session Name Static identifier claw
Tool Name claw_shell_run
Input Schema command (string)
Output Type Terminal pane text output

Claw Shell Advanced Features

  • Built-in safety filters that detect and pause execution for dangerous commands like rm or sudo.
  • Automatic session recovery, ensuring processes continue even if the agent is restarted.
  • Capability to handle multi-step shell scripts and complex piped commands.
  • Deep integration with the Openclaw Skills framework for unified developer workflows.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*