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

At a glance

How it runs
CLI
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
POSIX shell (bash, zsh, ash, dash)curl or wgetShell / CLINetwork accessLocal filesystem
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

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.

  1. Developers who want the same CLI toolchain across several Linux/macOS machines quickly
  2. Ops engineers working inside BusyBox or Alpine containers where no package manager is available
  3. Users who want to try jq, fzf or ripgrep without root and without polluting the system
  4. Engineers calling OpenAI, Gemini or DeepSeek APIs directly from the terminal
  5. Teams equipping an AI agent with a portable shell environment and 600+ CLI tools
  6. 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 upgrade

How 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 advise

Try a package for the current shell session only (works by modifying PATH):

x env try jq

Install globally and use the plain command:

x env use jq
jq --version

List installed packages and reclaim space:

x env ls
x env unuse jq
x env gc jq

For 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)

Local shell command execution

Can run terminal commands; pair with approval gates or container/OS sandboxing.

Local filesystem read/write

Modifies local files; work on a clean Git branch or dedicated worktree.

Outbound network access

Makes outbound requests; verify telemetry settings and model data routing on private repos.

What are this agent's strengths and limitations?

Pros
  • 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
Limitations
  • 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?

FollowAgents source review · FARS-2.1
Major gaps
49/ 100 5-point scale 2.5 / 5
Trust 11/29
Reliability 6/14
Adaptability 12/18
Convention 10/18
Effectiveness 7/13
Verifiability 3/8
Why each dimension lost points
Trust11 / 29 · 1.9/5

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.

Reliability6 / 14 · 2.1/5

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.

Adaptability12 / 18 · 3.3/5

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.

Convention10 / 18 · 2.8/5

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.

Effectiveness7 / 13 · 2.7/5

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.

Verifiability3 / 8 · 1.9/5

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.

Risks and how to mitigate them
  • 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.
Evidence confidence: Low Reviewed Nov 25, 2026 Reviewed revision 28ffa09b420f
See the full review method →
Maintain this project? Add the FARS badge to your README

The badge shows the current review score and verdict and links back to this page. It refreshes about once an hour after a re-review.

FARS

[![FARS review](https://followagents.com/badge/x-cmd.svg)](https://followagents.com/en/agents/x-cmd)
<a href="https://followagents.com/en/agents/x-cmd"><img src="https://followagents.com/badge/x-cmd.svg" alt="FARS review"></a>

FAQ

Does X-CMD need root?
No. pkg is designed for rootless, on-demand installs without system pollution, and x env try only changes the PATH of the current shell session.
Will it work on Alpine or BusyBox?
Yes. Core modules rely only on POSIX shell and AWK and run in BusyBox and Alpine; features degrade gracefully and only fetch binaries through pkg when needed.
Do the AI modules cost extra?
X-CMD itself is free, but 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?
Modules are functional libraries written by the X-CMD team in shell/awk and invoked as 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?
Give the agent the prompt from the README and have it load the environment with . ~/.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?
Yes. The source code is on GitHub (x-cmd/x-cmd) under the Apache-2.0 licence.
Is X-CMD safe to use?
FollowAgents' FARS review (Nov 25, 2026) scored X-CMD 11/29 on trust and safety. None of the eight safety controls the review checks for was missing outright.
Is X-CMD still maintained?
Yes. The latest commit on GitHub is from 2026-11-24, within the last 30 days.
Who makes X-CMD?
X-CMD is published on GitHub by the account x-cmd. FollowAgents has not verified which person or company is behind that account.
What is X-CMD's official website?
The project's GitHub repository lists https://x-cmd.com as its website. That link is set by the repository owner; the source code itself is on GitHub (x-cmd/x-cmd).
Was this page helpful?
View on GitHub ↗ Install ↓

Compare agents like this one

The same FARS review applied across the shortlist this agent qualifies for.

Related concepts