Skip to content
发量不多程序猿· @yuanbaopower · X·· 15 d agoFeaturedAI score80

CLI-Anything generates agent-callable command-line interfaces for software

Editorial summary

HKUDS’s CLI-Anything generates command-line interfaces for software, allowing agents to operate software through commands rather than screenshot-based clicking. Existing CLIs can be installed through cli-anything-hub, and new ones can be generated in tools such as Claude Code through a seven-step process. Examples include FreeCAD, Blender, and GIMP. The FreeCAD CLI has 258 commands in 17 groups, and repository badges show that it passed 22,461 tests.

Why it matters

Through multiple software examples, the article explains how CLI-Anything converts interface operations into agent-callable commands and demonstrates the specific process for generating a CLI.

Read original text
English translation

I recently came across a project on GitHub Trending that really suited my taste: HKUDS's CLI-Anything, with 59,000 stars.

The starting point is simple: today's software is made for people, with interfaces, buttons, and mice. Agents can only use screenshots and click the mouse, which is slow and prone to misclicks. CLI-Anything takes the opposite approach: it generates a command line for each piece of software, allowing an Agent to type commands directly to get work done.

There are two ways to use it. Install existing ones directly: pip install cli-anything-hub, then run cli-hub list to take a look, and cli-hub install gimp to install it. The repository has already accumulated a large collection, including Blender, FreeCAD, GIMP, QGIS, Obsidian, and Zotero.

If one does not exist, build it yourself. Install a plugin in Claude Code and run /cli-anything ./gimp; a seven-step pipeline runs automatically: scan the source code, map interface operations to APIs, design command groups, generate a CLI with REPL and JSON output, write tests, and finally install it to PATH. Pi, OpenCode, Codex, and others are also supported.

The demonstrations use the generated CLIs for some genuinely practical tasks: FreeCAD built a Curiosity rover, Blender made an orbital relay drone,Draw.io I drew an HTTPS handshake diagram, automatically played a round of Slay the Spire II, and added subtitles to a video. The FreeCAD CLI has 258 commands in 17 groups, and the repository badge says 22,461 tests passed.

If you ask me, it has identified the right direction. What is missing now is not a smarter model, but hands that can directly get work done. The screenshot-and-mouse-click approach looks lively, but in practice it is full of fragile edge cases. Giving software a CLI changes operation from guessing coordinates to calling APIs, which is much more reliable.

That said, an Agent may remember a CLI with 258 commands, but I would have to scroll through --help for quite a while too.

github.com/HKUDS/CLI-Anything

Source: 发量不多程序猿 · x.com

Story updates · 2

View full story