CLI-Anything: Turning Desktop Software into Agent-Native CLIs
CLI-Anything is an HKUDS open-source framework that generates agent-ready command-line interfaces for real software such as GIMP, Blender and LibreOffice. This guide covers the seven-phase pipeline, CLI-Hub, supported applications, the current test and licence figures, required models, platform setup, and the limitations that the headline numbers leave out.
View 3 referencesAllow the functional cookie to save your likes. Privacy details
AI agents can reason about a task and still fail to operate the software needed to complete it. CLI-Anything, from the University of Hong Kong's HKUDS lab, takes the view that the answer is not better screenshots and clicks. It is to give the software a structured command line that an agent can drive directly.
What is CLI-Anything?
CLI-Anything is an open-source framework from the University of Hong Kong's HKUDS lab that generates command-line interfaces for existing desktop software so AI agents can operate it without screenshots and clicks. A single command analyses a codebase and produces a tested, JSON-output CLI wrapping the real application.
The project's README states the goal plainly: "Making ALL Software Agent-Native". It was launched in March 2026 and is aimed at Claude Code, Codex, Cursor, OpenClaw, OpenCode and similar agents. The generated harness calls the actual software backend rather than a simplified imitation.
Why wrap software in a CLI instead of using the GUI?
GUI automation breaks when an interface changes, APIs cover only part of an application, and simplified rewrites lose most of its capability. CLI-Anything argues for a third route: generate a structured command interface that calls the actual software — Blender renders, LibreOffice exports — so agents keep professional-grade functionality.
A CLI is also a better fit for models: text commands are composable, --help is self-documenting, and JSON output removes parsing guesswork. State becomes explicit, either in a REPL session for multi-step work or in stateless subcommands for scripts. For audit-heavy environments, that determinism is a real advantage over pixel clicking.
What are the seven phases of CLI-Anything?
One /cli-anything command runs a seven-stage pipeline: analyse the source and map GUI actions to APIs, design command groups and output formats, implement a Click-based CLI with REPL and JSON output, plan tests, write and run them, document results, then package and install. An optional Phase 6.5 generates SKILL.md.
The generated SKILL.md is installed inside the Python package, and the REPL banner prints its absolute path so an agent knows where to read it. A /cli-anything:refine command performs gap analysis and adds commands incrementally, which the project expects to be run more than once for production coverage.
What is CLI-Hub?
CLI-Hub is a central registry for community-built command-line wrappers. Install it with pip install cli-anything-hub, then use cli-hub search, install and launch to manage harnesses. A meta-skill lets an agent browse the catalogue, pick a tool and install it without human intervention.
pip install cli-anything-hub
cli-hub search image
cli-hub install gimp
cli-hub launch gimp
The hub reads a live catalogue and updates as registry entries change. For Claude Code and similar agents, a meta-skill file points to that catalogue so the agent can discover a suitable CLI from a task description alone.
Which applications does CLI-Anything cover?
The project demonstrates 18 applications across creative, office, engineering and AI categories, including GIMP, Blender, Inkscape, Audacity, LibreOffice, OBS Studio, Kdenlive, FreeCAD, QGIS, Draw.io, Godot, ComfyUI, Ollama and Zotero. Each generated wrapper calls the real backend rather than a simplified substitute.
Coverage extends well beyond the demos: the registry lists tools for Calibre, Joplin, Obsidian, Draw.io, MuseScore, AdGuard Home, RenderDoc and many more, spanning media, scientific computing, enterprise software and developer tooling. The unifying rule is that the upstream application must exist on the machine — generated harnesses fail tests rather than silently falling back.
How mature is CLI-Anything?
The project's README badge reported 2,461 passing tests across its harnesses as of 2 December 2026, with a 100% pass rate claimed in unit, end-to-end and subprocess layers. It launched in March 2026 and has a technical report available as arXiv:2606.03854.
Counts in secondary articles vary — 1,839, 2,005 and 2,461 tests all appear — because the project adds harnesses quickly and different snapshots were taken. Use the number in the canonical repository at the time you check it. The testing design is more informative than the total: it validates magic bytes, ZIP structure, pixel output and audio levels, not just that a command exited zero.
What licence does CLI-Anything use?
The current HKUDS repository displays an Apache-2.0 licence badge, and older mirrors and press coverage have variously shown MIT. Check the LICENSE file in the canonical repository before redistributing generated code or bundling it into a product. A badge is a convenient signal, not a legal document.
This discrepancy is a good illustration of why a dated first-party source matters. A cached README on a mirror can preserve an earlier licence while the main repository has moved on, and articles written at different times will disagree. The repository badge and LICENSE file are the authoritative pair.
What are the limitations of CLI-Anything?
Generation needs a strong frontier model; the project names Claude Opus 4.6-class and GPT-5.4-class models, and weaker ones produce incomplete wrappers. It needs source code, so closed binaries degrade results. One pass rarely reaches full coverage; repeated /cli-anything:refine runs are normal.
Cost is another practical constraint: generating a wrapper consumes model tokens, and several rounds of refinement can add up. The framework also only supplies the execution layer — it does not decide what work your agent should do. And because wrappers call real software, the upstream application and its own licence must be honoured.
How do you get started with CLI-Anything?
Install the Claude Code plugin with /plugin marketplace add HKUDS/CLI-Anything then /plugin install cli-anything, or copy the commands for OpenCode, Codex, Goose, Qodercli or OpenClaw. Then run /cli-anything ./gimp. Python 3.10 or later and the target software installed are prerequisites.
/plugin marketplace add HKUDS/CLI-Anything
/plugin install cli-anything
/cli-anything ./gimp
cli-anything-gimp --json project new -o poster.json
Using an existing harness is the gentler path: install cli-anything-hub, search for the software and launch it. Generating a new wrapper for an uncovered application is the advanced path and depends on a capable model plus readable source.
Frequently asked questions about CLI-Anything
CLI-Anything prompts similar questions from most new users: whether the original software must be installed, how well it handles closed-source targets, whether agent skill files are included and if it can replace GUI agents entirely. The answers below reflect the project's stated design and its documented limitations.
Does CLI-Anything need the original software installed?
Yes. Harnesses call the real application. Tests are designed to fail when a backend is missing, which prevents a wrapper that only pretends to work.
Can it wrap closed-source software?
Poorly. The pipeline analyses source code, so binary-only targets produce weaker coverage. The project suggests finding an open-source alternative where possible.
Is SKILL.md generation included?
Yes. Since Phase 6.5, every generated CLI ships with a SKILL.md inside the package, letting agents discover commands without separate documentation.
Does it replace GUI agents entirely?
Not universally. The CLI route is faster and more deterministic where a wrapper exists; GUI agents still win when no source is available or when a task is inherently visual.
CLI-Anything is best read as an integration generator, not magic. It turns the cost of connecting an agent to professional software into a repeatable, testable process, provided you have source code, a strong model and patience for refinement. Treat the published test totals and licence badge as a snapshot: recheck the canonical repository before relying on either.