English | 中文 | Source Code ⭐ 
Shell Superpowers for AI Agents
https://x-cmd.com
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:
-
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.
-
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.
-
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.
-
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.
-
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
| | Modules | Packages |
|---|
| What | 300+ shell/awk libraries (like JS) | 600+ CLI tools (like WebAssembly) |
| Use | x <module> | x <tool> or x env use <tool> |
| Examples | theme, advise, openai, gemini | jq, fzf, node, python |
|
🪶 Lightweight: Core ~1.1 MB. Non-interactive load <20 ms, interactive <60 ms.
|
