x-cmd

X-CMD is a modern toolkit for POSIX shell (bash, zsh, ash, dash) — designed to make shell as powerful as Python's standard library.

Automatically checked · GitHub checked 2026-11-27

x-cmd

Overview

English | 中文 | Source Code ⭐ x-cmd-version

x-cmd-logo

X-CMD

Shell Superpowers for AI Agents
https://x-cmd.com

Introduction

X-CMD is a modern toolkit for POSIX shell (bash, zsh, ash, dash) — designed to make shell as powerful as Python's standard library.

Our Journey

What started as "a standard library for shell" evolved into something bigger:

  1. Shell Standard Library — We built 300+ modules in shell/awk, bringing modern capabilities to any system with just POSIX shell — even BusyBox, Alpine, or legacy machines.

  2. On-Demand Package System — Some modules need capabilities beyond POSIX. We designed pkg: 600+ curated modern CLI tools (jq, fzf, fd, ripgrep...), reviewed and packaged by our team — maximizing environment compatibility, minimizing dependencies, lightweight download, on-demand loading, no root, no system pollution.

  3. Diverse Modules — Beyond traditional tools, we built practical modules for various scenarios: theme (cross-shell themes), advise (completions for 6+ shells), githook (husky alternative), free (macOS missing command), ccal (Chinese calendar), weixin (WeChat integration), and many more — all in shell/awk.

  4. AI-Native Shell — From ChatGPT era onward, we brought AI to shell. With just shell + curl, access OpenAI, Gemini, DeepSeek, Zhipu, MiniMax. Our pure-shell agent — under 2MB — delivers capabilities comparable to OpenClaw and Claude Code.

  5. Optimized for Agents — After 5 years, we discovered shell's sweet spot: AI agents. Where network latency and LLM throughput dominate, shell's flexibility, native system integration, and tool-chaining shine. AWK streaming handles LLM output beautifully.

The Result

ModulesPackages
What300+ shell/awk libraries (like JS)600+ CLI tools (like WebAssembly)
Usex <module>x <tool> or x env use <tool>
Examplestheme, advise, openai, geminijq, fzf, node, python

🪶 Lightweight: Core ~1.1 MB. Non-interactive load <20 ms, interactive <60 ms.

x-cmd-banner

Read the full README ↗