x-cmd for Openclaw

x-cmd is a versatile command-line toolkit providing over 600 portable tools and an AI-friendly environment for developers and agents.

edwinjhlee
v1.0.1
Mar 11, 2026
5
1.2k
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install x-cmd

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 x-cmd 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 x-cmd?

x-cmd serves as a powerful layer for POSIX shells that enables instant access to a vast library of software without the need for sudo or complex installation procedures. By integrating with Openclaw Skills, it provides AI agents and developers with a structured way to discover and utilize hundreds of command-line utilities. Whether you need a specific version of Node.js, a data processing tool like jq, or specialized database clients, x-cmd manages the environment and PATH automatically to ensure tools are ready for immediate execution.

Built for portability and efficiency, x-cmd stores all packages in user-local directories, maintaining a clean system state and preventing version conflicts. It is specifically optimized for the modern era of AI-driven development, offering machine-readable documentation and discovery mechanisms that make Openclaw Skills more capable and autonomous within terminal environments.

x-cmd Use Cases

  • Rapidly setting up isolated development environments with specific versions of Python, Ruby, or Go.
  • Enabling AI coding agents to self-install and use necessary CLI tools during task execution.
  • Managing portable versions of complex tools like ffmpeg or imagemagick without global system changes.
  • Exploring a curated library of over 200 specialized skills and functions through the built-in discovery interface.

How x-cmd Works

  1. The user initializes the environment by sourcing the x-cmd root script into their current shell session.
  2. The shell environment is updated to include local bin directories for both x-cmd and pixi-managed packages.
  3. Users or agents query the available package list using environment listing commands.
  4. Requested packages are downloaded and symlinked into the local path, becoming instantly available for use without a restart.
  5. AI agents utilize the llms.txt endpoint to understand the available tool surface and command syntax.

x-cmd Setup

To get started with x-cmd, ensure it is installed and then load it into your current shell session:

# Load the x-cmd environment
. ~/.x-cmd.root/X

# Verify installation and explore skills
x skill

# Install essential tools for your project
x env use jq nodejs python3

x-cmd Data Schema & Taxonomy

x-cmd organizes its ecosystem through a structured local hierarchy and metadata registry:

Component Function
~/.x-cmd.root/X The main entry point script that configures the shell environment.
x-cmd local bin User-local directory where portable binaries and scripts are stored.
llms.txt Specialized metadata format designed for Openclaw Skills to help agents discover tool capabilities.
env registry A catalog of 600+ managed packages including runtimes, databases, and dev tools.
pixi integration Secondary package management layer for access to the conda-forge ecosystem.

x-cmd Advanced Features

  • Multi-backend support allowing installation via internal x-cmd environment or pixi for broader package coverage.
  • Native JSON output for environment queries, enabling easy integration with automated scripts and Openclaw Skills workflows.
  • Zero-sudo requirement, making it ideal for restricted environments, containers, and remote CI/CD runners.
  • AI-centric discovery via the nihao command which provides llms.txt context for Large Language Models.
  • Support for over 200 custom skills that extend the standard functionality of shell commands.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*