Summary: CLI-Anything is an open-source (Apache-2.0) project from HKUDS that wraps desktop apps and services in command-line interfaces built for AI agents, with JSON output and a REPL. You can install ready-made CLIs from its CLI-Hub registry with one pip package, let Claude Code or Codex discover them through a skill, or generate a new CLI for an app that is not listed yet. We installed CLI-Hub on a Linux box, built a small draw.io diagram entirely from the terminal, and hit one real gotcha you should know about before you rely on it.
What CLI-Anything actually gives your agent
Coding agents such as Claude Code and Codex are very good at running shell commands and reading text output, and much weaker at clicking through a GUI. CLI-Anything takes that at face value: instead of screenshots and mouse clicks, each supported app gets a command such as cli-anything-drawio or cli-anything-blender. Every command has --help text the agent can read, and a --json flag so the result comes back as structured data instead of prose.
The project is organised in three layers, and it helps to keep them apart:
- Harnesses: the per-app CLIs (GIMP, Blender, Inkscape, LibreOffice, FreeCAD, draw.io, OBS Studio, n8n and many more), each in its own
<app>/agent-harnessfolder in the repository. - CLI-Hub: a small package manager (
cli-hub) plus the website clianything.cc that lists every harness and a set of third-party "public" CLIs. - The generator: a plugin or skill for your coding agent that runs a 7-phase process to build a new harness from an app's source code.
The README is explicit that the CLIs drive the real software: a Blender harness renders through blender --background, not through a lookalike renderer. That is good for output quality, but it also means the app itself must be installed, which matters later in this tutorial.
Step 1: Install CLI-Hub and look around
CLI-Hub is a normal Python package. We used a fresh virtual environment so nothing leaks into the system Python:
python3 -m venv venv . venv/bin/activate pip install cli-anything-hub
On our run (19 November 2026) pip installed version 0.4.1. The main commands are:
cli-hub listshows the registry grouped by category (3D, AI, audio, automation, diagrams and so on).cli-hub list --jsonreturned 103 entries for us: 79 harnesses maintained in the repo and 24 public third-party CLIs, which matches the "103 CLIs available, 35 categories" counter on clianything.cc.cli-hub search diagramreturned drawio, mermaid and an Obsidian CLI.cli-hub info <name>prints the version, entry point, the bundled SKILL.md path and, most importantly, the Requires line.cli-hub install,update,uninstallandlaunchdo what they say.
Read the Requires line before you install anything. For the three apps people ask about most, CLI-Hub reported: draw.io needs the draw.io desktop app; Blender needs blender >= 4.2; FreeCAD needs FreeCAD >= 1.1 (its harness lists 258 commands across Part, Sketcher, PartDesign, Assembly, Mesh, TechDraw, Draft, FEM and CAM).
Step 2: One real task with the draw.io CLI
We picked draw.io because the diagram file is plain XML, so we could check what the harness does without a GPU or a big install. After cli-hub install drawio the entry point cli-anything-drawio was on the path. Its top-level groups are project, page, shape, connect, export, session and repl.
Create a project and add shapes
cli-anything-drawio --json project new --preset 16:9 -o flow.drawio cli-anything-drawio --json --project flow.drawio shape add rounded -l "Agent prompt" --x 40 --y 80 --id a cli-anything-drawio --json --project flow.drawio shape add process -l "cli-hub install drawio" --x 260 --y 80 --id b cli-anything-drawio --json --project flow.drawio connect add a b --style orthogonal cli-anything-drawio --json --project flow.drawio shape list
Each call answered with a short JSON object, for example {"action": "add_connector", "source": "a", "target": "b", "style": "orthogonal"}, and shape list returned every shape with its id, label, style string and coordinates. Setting your own --id values is worth the extra typing: the agent can then connect shapes by name instead of copying generated ids around. Shape types include rectangle, rounded, ellipse, diamond, cylinder, cloud, process, document, note, actor and text.
Export, and the gotcha
The export formats listed were PDF, PNG, SVG, VSDX (Visio) and uncompressed XML. Exporting to XML worked straight away (a 1,648-byte file). Exporting to PNG did not fail with a crash; it returned "action": "export_fallback" with the note "draw.io CLI not found. Open the .drawio file in draw.io to export manually." plus install hints for macOS, Linux and Windows. In other words, editing works with no desktop app, but rendering images needs draw.io desktop on the same machine. An agent that only checks the exit code could miss this, so tell it to read the JSON action field.
Our full terminal session is in our own screenshot at the end of this post.
Step 3: Let Claude Code or Codex find CLIs on its own
Installing CLIs by hand is fine for a test. For daily use the project ships a "meta-skill" that teaches a SKILL-compatible agent to search CLI-Hub and install what a task needs:
npx skills add HKUDS/CLI-Anything --skill cli-hub-meta-skill -g -y
The README lists OpenClaw, Nanobot, Claude Code, Codex, Reasonix and Antigravity as compatible, and suggests a prompt of the form "Find appropriate CLI software in CLI-Hub and complete the task: ...". If you have not used skills before, our guide to one SKILL.md for Claude Code, Cursor and Copilot explains how they load. Every harness also ships its own SKILL.md (CLI-Hub shows the path in info), so an agent can read the command reference before it starts.
Step 4: Generate a CLI for an app that is not listed
When the registry has nothing for your app or internal tool, the generator builds a new harness. Prerequisites per the README: Python 3.10+, the target software or its source repo, and a supported agent.
Claude Code
/plugin marketplace add HKUDS/CLI-Anything /plugin install cli-anything /cli-anything ./gimp
Follow-ups use the colon form: /cli-anything:refine ./gimp "batch processing and filters" expands coverage, and /cli-anything:validate checks a harness against the project's standards. If Claude Code says Unknown skill: cli-anything, the README's advice is to fix the plugin load first (/reload-plugins, then /help cli-anything, then reinstall) rather than switching command forms. On Windows it needs Git for Windows or WSL, otherwise you may see cygpath: command not found.
Codex
Codex support is marked experimental. You clone the repository and run bash CLI-Anything/codex-skill/scripts/install.sh (or install.ps1 on Windows), which installs the skill to ~/.codex/skills/cli-anything when CODEX_HOME is unset. Restart Codex, then ask in plain language, for example "Use CLI-Anything to build a harness for ./gimp".
We did not run the generator in this test, so we cannot speak to output quality. The README's own limitations section is candid: it expects frontier-class models, it works from source code (binaries-only apps degrade a lot), and one pass often needs extra /refine runs.
Which entry point should you use?
| Option | How you start | Cost | Good for | Main limit |
|---|---|---|---|---|
| CLI-Hub (manual) | pip install cli-anything-hub, then cli-hub install <name> |
Free, Apache-2.0 | Trying one of the 103 listed CLIs yourself | Many harnesses need the real app installed (draw.io desktop, Blender 4.2+, FreeCAD 1.1+) |
| CLI-Hub meta-skill | npx skills add HKUDS/CLI-Anything --skill cli-hub-meta-skill -g -y |
Free; your agent's own model usage applies | Letting Claude Code, Codex and other skill-aware agents pick a CLI per task | The agent installs packages for you, so review what it pulls |
| Generator plugin/skill | Claude Code: /plugin install cli-anything; Codex: install.sh (experimental) |
Free; generation uses your agent's model | Internal tools and apps not in the registry | Needs source code and a strong model; expect several /refine passes |
Editor's note
Who it's for: people already running Claude Code, Codex or a similar agent who want it to produce real files in desktop tools (diagrams, 3D scenes, documents, audio edits) without GUI automation. It also suits teams with an in-house tool that has source code but no API.
Not for: anyone hoping to skip installing the underlying apps, or wanting a hosted service. Everything runs on your machine.
Gotchas we hit or verified: (1) Check cli-hub info for the Requires line first. (2) Without draw.io desktop, PNG/PDF export quietly falls back to writing a .drawio file; parse the JSON action field, not just the exit code. (3) The CLI is stateful through a project file or --session, so pass --project on every one-shot call or use the REPL. (4) On Windows, Claude Code needs Git for Windows or WSL for the plugin's shell steps.
Common errors and fixes: Unknown skill: cli-anything means the plugin is not loaded: run /reload-plugins and check /help cli-anything. cygpath: command not found on Windows means bash is missing: install Git for Windows or use WSL.
How it fits with other agent tooling
CLI-Anything sits next to, not instead of, MCP servers. Some harnesses even bridge to MCP (the browser harness uses DOMShell MCP, and the ArcGIS Pro demo drives a live session through an MCP bridge). If your target is a web page rather than a desktop app, a dedicated tool may serve better; see our Chrome DevTools MCP tutorial. For cloud work, our AWS emulator tutorial for coding agents covers the same "give the agent a safe, scriptable surface" idea for AWS.
FAQ
Is CLI-Anything free?
Yes. The repository and CLI-Hub are under the Apache License 2.0. What you pay for is whatever model your agent uses and any licence the wrapped app itself requires.
Do I need Blender or draw.io installed to use their CLIs?
For real output, yes. CLI-Hub lists Blender 4.2 or newer and the draw.io desktop app as requirements. In our draw.io test, editing the diagram file worked without the app, but image export did not.
Can it build a CLI for a closed-source app?
Only with a big drop in quality, according to the README: the generator analyses source code, and binaries-only apps degrade substantially. Packaging APIs for closed-source software is listed on the roadmap.
Start with one listed CLI and one small task, and let your agent read the JSON before you trust it with bigger jobs.
Images: our own screenshots of clianything.cc and the CLI-Anything GitHub README, plus our own terminal capture and summary table; see them at the end of this post.
Last verified: 2026-11-19
Sources: CLI-Anything on GitHub (README), CLI-Hub (clianything.cc), cli-anything-hub on PyPI, and our own test run of cli-anything-hub 0.4.1 with the drawio harness 1.0.0.
lightmind24 is an independent review site, not affiliated with HKUDS or the CLI-Anything project.
댓글
댓글 쓰기