What Is CLI-Anything?
"Today's Software Serves Humans. Tomorrow's Users will be Agents." That line opens the CLI-Anything README, and it states the project's bet: AI agents can reason, plan and write code, but they are poor at operating real applications such as a 3D modeller, a video editor or an office suite. The usual workarounds, in the README's words, are "fragile UI automation, limited APIs, or dumbed-down reimplementations". CLI-Anything's answer is to give each program a command-line interface built for agents, with structured commands and JSON output, so the agent types commands instead of clicking.
It is two things that are easy to confuse:
- A generator. A plugin or skill for your coding agent (Claude Code, Codex, Cursor and others) that reads a program's source code and has the agent write a CLI "harness" for it in seven phases, tests and docs included.
- CLI-Hub. A registry and package manager for harnesses that already exist, so you only generate one when the program you need is missing.
The project comes from HKUDS, the Data Intelligence Lab at the University of Hong Kong, the group that also publishes RAG-Anything. Its technical report, "CLI-Anything: Towards Agent-Native Computer Use" by Yuhao Yang, Tianyu Fan and Chao Huang, is on arXiv as 2606.03854. The code is Python under the Apache-2.0 license, the repository was created on March 8, 2026, the latest tagged release is v0.4.0 from June 25, 2026, and it had 66,610 stars when we checked on November 27, 2026.
The Generator Is a Skill Your Coding Agent Runs, in Seven Phases
CLI-Anything does not contain its own model. The generator is a set of instructions, chiefly cli-anything-plugin/HARNESS.md, that your coding agent follows, so the agent's model does the analysis and writes the code. In Claude Code:
/plugin marketplace add HKUDS/CLI-Anything
/plugin install cli-anything
/cli-anything ./gimp # a local source folder, or a GitHub URLThe command runs seven phases:
- Analyze: scan the source and map GUI actions to the APIs behind them.
- Design: plan command groups, the state model and output formats.
- Implement: build a Click CLI with a REPL,
--jsonoutput and undo/redo. - Plan tests: write
TEST.mdwith unit and end-to-end test plans. - Write tests.
- Document: record the results in
TEST.md, then (phase 6.5) generate aSKILL.mdfrom the CLI's Click decorators so agents can discover the commands. - Publish: create
setup.pyand install the command on your PATH.
Three more commands follow up: /cli-anything:refine <path> [focus] runs a gap analysis and adds missing commands (for example "vid-in-vid and picture-in-picture compositing" for Shotcut), /cli-anything:test reruns the tests, and /cli-anything:validate checks the harness against HARNESS.md. Each refine run is incremental, and the README says a single build "may not fully cover all capabilities".
The generator ships for Claude Code, Cursor, Pi, OpenClaw, OpenCode, Codex, Hermes, Reasonix, Qodercli and GitHub Copilot CLI. Two setup traps are documented. On Windows, Claude Code runs commands through bash, so you need Git for Windows or WSL, or you get cygpath: command not found. And if Claude Code answers Unknown skill: cli-anything, the fix is to reload or reinstall the plugin (/reload-plugins, then check /help cli-anything); swapping to the older /cli-anything:cli-anything form does not help, because both point at the same skill.
The README's limitations section is candid about what decides quality. Reliable generation needs frontier-class models, and it names Claude Opus 4.6, Claude Sonnet 4.6 and GPT-5.4. It needs source code, and quality "will degrade substantially" for software available only as compiled binaries. Issue #154 shows the other side: a user who ran the generator with Kimi K2.5 on a closed-source Electron app reported few commands, and many that did not run correctly. Generation also costs whatever your agent's model charges for a long multi-phase job.
A Generated CLI Edits a Project File, Then Calls the Real App to Render
Harnesses for desktop software follow one pattern, which the README lists as its first design principle: the CLI keeps the document as a project file (ODF, MLT XML, SVG or the harness's own JSON), and calls the real application to render or export it. The LibreOffice example from the README:
cli-anything-libreoffice document new -o report.json --type writer
cli-anything-libreoffice --project report.json writer add-heading -t "Q1 Report" --level 1
cli-anything-libreoffice --project report.json writer add-table --rows 4 --cols 3
cli-anything-libreoffice --project report.json export render output.pdf -p pdf --overwrite
cli-anything-libreoffice --json document info --project report.jsonThe edits only change report.json; the export step runs headless LibreOffice to produce the PDF. Run a harness with no subcommand and you get a REPL with a prompt such as blender[ProductShot]>, project state and command history, which suits an agent working step by step. Add --json to any command for machine-readable output, and the commands describe themselves through --help.
In --json mode the GIMP harness reports a failure as an object such as {"error": "...", "type": "RuntimeError"}, and its backend errors include the last 500 characters of GIMP's stderr, so the line breaks arrive as \n escapes in one long string. Paste it into JSON Unescape to read it as the multi-line log it was.
To install a harness from the repository and run its tests yourself:
cd gimp/agent-harness && pip install -e .
which cli-anything-gimp
CLI_ANYTHING_FORCE_INSTALLED=1 python3 -m pytest cli_anything/gimp/tests/ -v -sRead the Backend Column Before You Trust "Zero Toy Implementations"
The README stresses "Zero compromises, Zero toy implementations", and its HARNESS.md lessons say the CLI "MUST call the actual application for rendering. No Pillow replacements for GIMP, no custom renderers for Blender." The harness table, which lists each harness's backend, gives a more mixed picture:
| Harness | Backend, as the README lists it |
|---|---|
| Blender | bpy Python scripting, rendered with blender --background |
| LibreOffice | ODF generation plus headless LibreOffice |
| Kdenlive, Shotcut | MLT XML rendered with melt |
| GIMP | Pillow plus GEGL/Script-Fu |
| Audacity | Python wave plus sox |
| Inkscape | Direct SVG/XML manipulation |
| OBS Studio | JSON scene plus obs-websocket |
| Zoom, n8n, Ollama, ComfyUI | The app's REST API |
So the Audacity harness processes audio with sox rather than Audacity, and the GIMP one has a fallback that the README's principles rule out. In gimp/agent-harness/cli_anything/gimp/core/export.py, export tries GIMP's batch mode (gimp -i -b) first and drops to Pillow when GIMP is not installed, when the project contains drawing operations, or when the GIMP path raises any error. The result says which happened in its method field: "gimp-batch" or "pillow". If output quality matters, check that field rather than assuming GIMP did the work.
The test design is more thorough than that fallback suggests. The README describes four layers: unit tests on synthetic data, end-to-end tests of the file format (valid ODF ZIP structure, well-formed MLT XML), end-to-end tests against the real software (a LibreOffice PDF must start with the %PDF- magic bytes, Blender must produce a PNG), and subprocess tests of the installed command. The README's test summary lists 2,464 passing tests across 30 harnesses (the badge says 2,461). The spread is uneven: Blender has 58 end-to-end tests, while Zoom and NotebookLM have none.
The HARNESS.md lessons are worth reading even if you never use the generator: effects applied at render time get silently dropped by a naive exporter, non-integer frame rates such as 29.97 fps need round() rather than int(), and an export that exited 0 has not necessarily worked until you check magic bytes, archive structure, pixels or audio levels.
Because harnesses are written by agents, review them like any generated code before trusting them with real files. Issue #17 found that all eight early setup.py files carried a placeholder https://github.com/yourusername/... URL, and issue #144 found the Zoom harness storing OAuth tokens without restrictive file permissions; both issues are closed. For your own generated harness, the AI Code Detector lists placeholder scaffolding and leftover debug code by line number, a quick first pass before you read the rest.
CLI-Hub: Install a Ready-Made Harness Instead of Generating One
For most people the useful entry point is CLI-Hub, the package manager that launched on April 10, 2026:
pip install cli-anything-hub
cli-hub search image
cli-hub install gimp
cli-hub launch gimp| Command | What it does |
|---|---|
cli-hub list / cli-hub search <query> | Browse or search the registry |
cli-hub info <name> | Inspect one CLI |
cli-hub install / update / uninstall <name> | Manage installs |
cli-hub launch <name> [args...] | Run an installed CLI |
Since version 0.2.0 the hub also lists third-party "public CLIs" installed through pip, npm or brew, recorded in public_registry.json. The web version of the hub, which the repository links as clianything.cc, shows the two lists in separate decks.
The catch the README states in one line: a harness that wraps desktop software needs that software. cli-hub install gimp gives you the harness, not GIMP; install GIMP, Blender or LibreOffice separately.
To let an agent pick tools itself, install the hub's meta-skill and ask in plain language:
npx skills add HKUDS/CLI-Anything --skill cli-hub-meta-skill -g -yFind appropriate CLI software in CLI-Hub and complete the task: ...The README lists OpenClaw, nanobot, Claude Code, Codex, Reasonix and Antigravity as compatible. The registry grows through pull requests. The README's news log for April and May 2026 alone records new harnesses for Godot, n8n, Obsidian, Safari, QGIS and Calibre, updates for Kdenlive and Zotero, and proposals for Joplin and ArcGIS Pro. There is a contributor sign-up form for people who want to build harnesses and a wishlist form for requesting one.
The Demos: A Rover in FreeCAD, a Drone in Blender, a Game of Slay the Spire
The README badge reads "Demos 18 Apps", which refers to the 18 applications the harness approach was tested across; the README's Real-World Demos section shows six showcased runs:
- FreeCAD: an agent builds a Curiosity-style Mars rover step by step.
- Blender: an agent builds an orbital relay drone, ending with a scene ready for a turntable render.
- Draw.io: an agent draws a full HTTPS connection diagram (TCP handshake, TLS negotiation, data exchange and teardown) in about four minutes.
- Slay the Spire II: an agent plays a run, reading game state and choosing cards and paths.
- VideoCaptioner: an agent generates and overlays styled bilingual subtitles.
- ArcGIS Pro: an agent drives a live, open ArcGIS Pro session through an MCP bridge.
The FreeCAD and Blender demos use the preview stack, which is the part worth copying. The harness publishes render-backed preview bundles (preview), a live session that tracks the current state (preview live), and a trajectory.json that ties every command to the visual state it produced. That gives a human, or another agent, a way to see what the agent built at each step without opening the GUI, and to replay how it got there.
Read the ArcGIS Pro demo with its caveat: ArcGIS Pro is Esri's commercial, Windows-only GIS application, so that harness wraps the official ArcPy and ArcGIS Pro SDK and was not generated from source. It is a contributed harness in a separate repository, registered in public_registry.json.
Can It Replace GUI Agents? Where the Claim Holds
The README says CLI-Anything "can flat-out replace GUI-based agent approaches". The argument has real force where a harness exists. A GUI agent takes a screenshot, guesses where to click and breaks when the interface changes; a CLI gives the same capability as named commands with structured results, without sending the model a stream of screenshots. Once software has a CLI, you can also generate agent tasks, evaluators and benchmarks from code, which the README pitches as a research use.
The same reasoning covers web services. Feed API docs or an SDK to the generator and you get one stateful CLI that groups the endpoints into commands. The Mailchimp harness exposes 303 commands over its Marketing API, and Zoom, n8n and AdGuard Home harnesses wrap their REST APIs.
Where the claim does not hold yet:
- No harness, no help. The approach needs someone to generate, review and maintain a harness per program, and generation needs source code.
- No published task-completion numbers. A "benchmark suite for agent task completion rates" is still an unchecked item on the README's roadmap, so "replace" is an argument, not a measurement.
- State that lives only in the GUI. A harness that edits a project file does not see what the running application shows you, and harnesses differ in how far they drive the live app: OBS Studio talks to the running program through obs-websocket, while the media and office harnesses mostly work on files.
For desktop apps without a harness, the alternative is to read the app's accessibility tree, as Vercel Labs' agent-desktop does, which works on any app that exposes one, with no generation step. Our agent-desktop write-up covers that approach. Screenshot-based computer use from model vendors remains the fallback for apps that expose neither.
Getting Started in Five Minutes, and What It Costs
The README advertises a five-minute quick start, which holds for the hub path:
- Install Python 3.10 or newer.
pip install cli-anything-hub, thencli-hub searchfor the program you care about.- Install that program itself, then
cli-hub install <name>. - Give your agent the harness's
SKILL.md(installed harnesses carry a copy) or the hub meta-skill, and ask it to do the task with--jsonoutput.
Building a new harness takes longer: install the plugin for your agent, run /cli-anything against the source, then expect one or more /cli-anything:refine passes before coverage is good. The full method is in cli-anything-plugin/HARNESS.md, and QUICKSTART.md and PUBLISHING.md sit beside it. The README is also maintained in Chinese, Japanese and German.
Everything in the repository is free under Apache-2.0. The real costs are the upstream software you have to install, and, for generation, the tokens a frontier model spends on a seven-phase build. If you run AI agents and the software you need already has a harness on the hub, this is a quick way to give the agent a reliable interface to it. If it does not, budget for generating and reviewing one, and check whether an accessibility-tree tool would reach the app with no generation at all.



