Wink Pings

If AI Agents Want to Use Professional Software, First Give Them a Command Line

CLI-Anything turns any software with source code into a CLI that AI agents can call directly with a single command, bypassing fragile UI automation. A 7-stage pipeline generates it, all 2,461 tests pass, and it supports 18 applications including Blender, LibreOffice, and GIMP.

If AI Agents Want to Use Professional Software, First Give Them a Command Line

AI agents can write code and look up information, but when you ask them to build a model in Blender or lay out a document in LibreOffice, they often get stuck at the same place: the graphical interface. The UI automation route—screenshots, clicks, and drags—produces fragile scripts and a pile of failures that cannot be reproduced.

CLI-Anything takes a different approach. It does not teach agents to click buttons; instead, it generates a command-line interface for the software. With a single command, it turns any software with a codebase into a CLI that agents can call directly. The project author, Charly Wargnier, put it plainly in a tweet: let your AI agents use any software.

CLI-Anything project header image

The demo below comes from the project README: an AI agent uses the command line generated by CLI-Anything to build a drone scene in Blender.

The project repository is on GitHub under the Apache-2.0 license, fully open source, and has already received 70k+ stars. The core logic is: the command line is a universal interface that both humans and AI can understand, and structured text is more reliable than pixels.

What problem does it solve?

There has always been a gap between AI agents and real professional software. UI automation relies on screenshots and coordinate clicks, and it breaks as soon as the interface changes; existing APIs often cover only a small part of a software's capabilities; rewriting a simplified version yourself loses 90% of the professional software's functionality.

CLI-Anything's approach is to directly analyze the software source code and automatically generate a complete set of command-line tools. The generated CLI calls the software's real backend—it is not a simulation or a replacement. LibreOffice generates PDFs, Blender renders 3D scenes, and Audacity processes audio through sox. The project README states it clearly: no compromises, no toy implementations.

How does it work?

The entire process is split into 7 stages: analyze source code, design command groups, implement the CLI, plan tests, write tests, generate documentation, and package and release. You only need to run one command in a supported AI coding agent, for example in Claude Code:

/cli-anything ./gimp

The agent scans the software code, maps GUI operations to APIs, and generates a command-line tool with a REPL, JSON output, and undo/redo. The generated CLI uses the --json flag to output structured data that agents can parse directly; without the flag, it outputs human-readable tables.

CLI-Anything architecture diagram

The project currently covers 18 applications, from GIMP, Blender, and Inkscape to LibreOffice, OBS Studio, and Zoom, as well as Draw.io, Godot, and QGIS. There are 2,461 tests, and the official pass rate is 100%, including unit tests, end-to-end tests, and verification against real software backends.

SoftwareDomainCLI commandNumber of tests
GIMPImage editingcli-anything-gimp107
Blender3D modeling and renderingcli-anything-blender208
InkscapeVector graphicscli-anything-inkscape202
LibreOfficeOffice suitecli-anything-libreoffice158
OBS StudioLive streaming and recordingcli-anything-obs-studio153
Draw.ioDiagramscli-anything-drawio138

How to use it

If you just want to use the ready-made CLIs, first install the CLI-Hub package manager:

pip install cli-anything-hub
cli-hub list
cli-hub install gimp
cli-hub launch gimp

If you want to generate a CLI for software you have on hand, you need to install the corresponding agent plugin. Claude Code users can install it through the plugin marketplace:

/plugin marketplace add HKUDS/CLI-Anything
/plugin install cli-anything
/cli-anything ./your-software

Cursor, Codex, OpenClaw, Pi, and other agents also have corresponding installation methods; the project README has step-by-step instructions. The generated CLI can be installed independently to PATH, after which agents can discover it through standard --help and which.

Notable limitations

The project itself lists several limitations. Generation quality depends on frontier models; only models such as Claude Opus 4.6, Sonnet 4.6, and GPT-5.4 can work reliably, and CLIs produced by smaller models may require extensive manual correction. In addition, it relies on source code analysis to generate CLIs; if the target software only has compiled binaries, coverage and quality will drop noticeably. A single /cli-anything run may not cover all functionality, and it usually takes several /refine runs to fill in the gaps.

CLI-Anything's idea is not complicated: rather than making agents adapt to graphical interfaces designed for humans, give agents a text interface they are already good at. This choice is pragmatic, and it explains why the project has gained a lot of attention in a short time. As for whether it can truly make "all software agent-native," that will depend on the quality and coverage of CLIs contributed by the community going forward.

Project address: https://github.com/HKUDS/CLI-Anything

发布时间: 2026-12-05 05:26