X-CMD
Gives POSIX shell AI-agent-grade superpowers with 300+ modules and 600+ portable CLI tools.
- Source repo
- x-cmd/x-cmd
- Stars
- ★ 4.8k
- Last updated
- 1d ago
- FARS reviewed
- Nov 25, 2026
- License
- Apache-2.0
- Primary language
- Awk
- FA score
- 49/100 · Major gaps
At a glance
- How it runs
- Works with
- Universal · cross-platformCodex · Claude Code · OpenAI API
- Cost
- Free software; you pay for model usage
- Setup effort
- Low · running in minutes
- You'll need
- Typical use
- Developers who want the same CLI toolchain across several Linux/macOS machines quickly
- Not a fit if
- Users who only work in a GUI and won't operate in a terminal
- Environments that require one single binary and reject a shell/awk script runtime
- Website
- x-cmd.com ↗ set on GitHub
- Maintenance
- Commits in the last 30 dayslast commit 2026-11-24
- Source review
- 49/100 · Major gaps
What does this agent do, and when should you use it?
X-CMD is a modern toolkit for POSIX shells (bash, zsh, ash, dash) that aims to make the shell as capable as Python's standard library. It combines two layers: 300+ functional modules written in shell/awk and invoked as x <module>, and the pkg on-demand system that delivers 600+ curated modern CLI tools (jq, fzf, fd, ripgrep and more) with no root and no system pollution. Installation is a single curl or wget command; the core is about 1.1 MB and loads in under 20 ms non-interactively. It also ships AI-oriented modules (x openai, x gemini, x deepseek, x claude, x codex) that reach multiple model providers using only shell and curl. The project is Apache-2.0 licensed and is positioned for terminal users and AI agent workflows that need a consistent toolchain.
Users invoke built-in modules through x <module> — for example x theme for cross-shell themes, x advise for completions across 6+ shells, x githook as a husky alternative, and x openai/x gemini/x deepseek for model APIs. Packages are handled by the env module: x env browses installable packages interactively, x env use <package> installs globally, x env try <package> installs only for the current shell session, x env unuse uninstalls and x env gc reclaims space. Common tools can also be run directly, e.g. x jq, without a prior install. Modules are self-contained in shell/awk by default and only fall back to fetching a precompiled binary through pkg when POSIX capabilities are insufficient.
- Developers who want the same CLI toolchain across several Linux/macOS machines quickly
- Ops engineers working inside BusyBox or Alpine containers where no package manager is available
- Users who want to try jq, fzf or ripgrep without root and without polluting the system
- Engineers calling OpenAI, Gemini or DeepSeek APIs directly from the terminal
- Teams equipping an AI agent with a portable shell environment and 600+ CLI tools
- Terminal power users who need consistent behavior across bash, zsh, fish and other shells
Key setup facts
Pulled from the install and usage notes below. The project README has the current values.
- Config files
~/.x-cmd- Install notes cover
- Windows · macOS
How do you install or deploy this agent?
Run the official install script in a common shell such as bash, zsh, dash or ash.
With curl:
eval "$(curl https://get.x-cmd.com)"With wget:
eval "$(wget -O- https://get.x-cmd.com)"Package-manager installs (brew, aur, apt, apk, pacman, dnf) and non-POSIX shells (fish, Nushell, Elvish, Xonsh, tcsh, PowerShell) are documented on the official install guides. Upgrade with:
x upgradeHow do you use this agent?
After installation, call x <module> or x <tool> directly. For example:
x openai
x gemini
x deepseek
x theme
x adviseTry a package for the current shell session only (works by modifying PATH):
x env try jqInstall globally and use the plain command:
x env use jq
jq --versionList installed packages and reclaim space:
x env ls
x env unuse jq
x env gc jqFor AI agents, hand the agent this prompt and have it load the environment before use:
Use x-cmd for shell empowerment and 600+ portable open-source tools. Reference: https://x-cmd.com/llms.txt. Load with `. ~/.x-cmd.root/X` before use.Safety boundaries, hardening & integrations
Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.
Declared capability surface (blast radius)
Can run terminal commands; pair with approval gates or container/OS sandboxing.
Modifies local files; work on a clean Git branch or dedicated worktree.
Makes outbound requests; verify telemetry settings and model data routing on private repos.
What are this agent's strengths and limitations?
- Core is about 1.1 MB and loads in under 20 ms non-interactively and under 60 ms interactively, so startup cost is low
- Modules are written in shell/awk and run on anything with POSIX shell, including BusyBox, Alpine and legacy systems
- pkg installs without root, downloads on demand and does not pollute the system, with granular try/unuse/gc controls
- Covers both 300+ modules and 600+ CLI tools under one
x <tool>entry point - Ships model-provider modules (openai, gemini, deepseek and others) reachable with just shell plus curl
- Core capabilities depend on a shell/awk runtime rather than a single static binary, which can mismatch environments that mandate native executables
- Package trials and first-time module installs generally need network access; fully offline setups require extra preparation
- AI modules require you to supply each provider's API key and pay for usage
- The large number of modules and packages raises discovery and learning cost, mitigated only by docs and completions
- The pure-shell agent is described as comparable to OpenClaw and Claude Code, but the repository offers no independently reproducible benchmark
How does this agent compare with similar options?
The README compares modules and packages to JavaScript and WebAssembly in a browser, and names x githook as a husky alternative, x free as filling a macOS gap, and the pure-shell agent as comparable to OpenClaw and Claude Code.
Key facts side by side with the most closely related agents.
| Agent | Source review | Form / cost | Stars | Updated | Language | Full support on |
|---|---|---|---|---|---|---|
| X-CMD This agent | 49 · Major gaps | CLIFree + model costs | ★ 4.8k | 1d ago | Awk | Codex · Claude Code · OpenAI API |
| Gryph | 77 · Good | CLIFree | ★ 184 | 5d ago | Go | Claude Code |
| iFixAi Agent Auditor | 77 · Good | CLIFree + model costs | ★ 47k | 5d ago | Python | Codex · Claude Code · OpenAI API · Claude API |
| AgentSight | 69 · Some gaps | CLIFree | ★ 808 | 1d ago | C | Claude Code |
How does FollowAgents rate this agent?
Why each dimension lost points
The documented install path is `eval "$(curl https://get.x-cmd.com)"`, i.e. piping a remote script straight into the shell with no confirmation step; SECURITY.md itself states x-cmd does not protect against arbitrary shell execution and tells users to review pkg install scripts. The ccal skill downloads a data archive from codeberg and the arp skill performs MAC vendor lookup, but data flows, cache locations and whether anything leaves the machine are not documented in-packet. Rollback is limited to `x env unuse`/`x env gc` and `x upgrade`; no install-failure or upgrade-revert path is described. No lockfiles, checksums or signature verification for dependencies. source_attribution is comparatively solid: SKILL.md files carry author, version and Apache-2.0, and README distinguishes first-party modules from third-party packages. Deductions stem from the unconfirmed curl|sh default and absent integrity verification.
SKILL.md files follow a consistent template (frontmatter, command tables, platform notes) and the module/package distinction is stated consistently across README and FAQ, so self_consistency scores 2. Dependency availability rests on prose claims of POSIX shell + awk with on-demand pkg; no version constraints, checks or concrete offline-degradation evidence, so 1. Failure messages: no error codes, failure output or diagnostics are documented, so 1.
Audience and scenarios are clear (AI agents, POSIX shell users, minimal containers); SKILL.md distinguishes TTY vs piped output for agent parsing; capability boundaries are drawn via module/package split and per-platform notes (Linux/macOS/Windows); trigger precision relies on the `x <mod>` naming and frontmatter descriptions and is adequate; environment fit covers BusyBox/Alpine and multiple shells. All are documentation claims without implementation evidence, so 2 rather than 3.
Information architecture is clear (layered README, modules/packages/FAQ, uniform SKILL.md template); install notes are thorough across shells and package managers; naming is stable (`x <mod>` pattern); examples and FAQ are rich. Known limitations are only scattered (third-party modules out of scope, no protection against arbitrary shell execution) with no systematic limitations list, so 1. LICENSE.txt is the full Apache-2.0 text, so 3. Versioning/changelog is only an external link to x-cmd.com/v with no in-repo CHANGELOG, so 1. Maintenance responsibility: author and contact are visible and SECURITY.md defines a disclosure process, but publisher identity is unverified by FollowAgents, so 1.
Output usability is good: TSV/CSV/YML structured output is easy for agents to parse and pipe, so 2. Marginal value: it wraps native df/arp/cpu with unified formats and cross-platform handling, real but incremental, so 2. Cost-benefit: requires installing x-cmd via a curl|sh bootstrap, which is heavy for a single small task, and size/performance claims (<2MB, <20ms) have no in-repo evidence, so 1.
claim_traceability: README claims of 300+ modules, 600+ packages and performance figures are assertions without in-repo inventories or benchmarks, so 1. cross_source_corroboration: README, FAQ and SKILL.md corroborate concepts with each other, but no tests or code substantiate the functional claims, so 1. fact_inference_separation: docs blend promotional narrative with factual description without marking which claims are verified, so 1.
- The default install is curl|sh executing a remote script with no confirmation or integrity check; pin a commit and review the script before production use.
- ccal downloads a data archive from codeberg and arp performs MAC vendor lookups; data flows and cache locations are undocumented, so assess network and privacy impact yourself.
- README counts (300+ modules, 600+ packages) and performance figures (<2MB, <20ms) lack in-repo corroboration and should not drive adoption decisions.
- Publisher identity is unverified by FollowAgents; verify maintenance responsibility and update path independently.
FAQ
Does X-CMD need root?
x env try only changes the PATH of the current shell session.Will it work on Alpine or BusyBox?
Do the AI modules cost extra?
x openai, x gemini and x deepseek need your own provider API keys, and the provider bills per usage.What is the difference between a module and a package?
x <module>; packages are curated third-party precompiled CLI tools downloaded and managed on demand by the env module.How do I plug X-CMD into an AI agent?
. ~/.x-cmd.root/X before use; the prompt points at https://x-cmd.com/llms.txt as the tool-knowledge reference.Is X-CMD open source?
Is X-CMD safe to use?
Is X-CMD still maintained?
Who makes X-CMD?
What is X-CMD's official website?
Thanks — we use this to improve the page.
Subscribe to the FollowAgents RSS feed, or save this agent to your browser shortlist to compare on your next visit.