← All prompt collections

The full post, ready to copy

CLI-Anything: Make Claude Control Any App

Slide 1

CLI-Anything (github.com/HKUDS/CLI-Anything, free, Apache-2.0) lets Claude Code control software that has no MCP or connector. You point it at an app's source code. It analyzes the code and builds a command-line tool for that app, with tests and docs, and installs it. Claude Code can then drive the app through that tool. Example: run it on GIMP and you get cli-anything-gimp, with commands for projects, layers, filters and export. Works with: Claude Code, Cursor, Codex and other agents.

Slide 2

Inside Claude Code, run: /plugin marketplace add HKUDS/CLI-Anything /plugin install cli-anything If Claude says "Unknown skill: cli-anything": 1. /reload-plugins 2. /help cli-anything (check it shows up) 3. Run the two install commands again. Windows: install Git for Windows (for bash) or use WSL.

Slide 3

/cli-anything <path-or-repo-of-the-software> Examples: /cli-anything ./gimp /cli-anything https://github.com/blender/blender It runs 7 phases on its own: 1. Analyze: scans the source code, maps GUI actions to APIs 2. Design: plans command groups, state and output formats 3. Implement: builds the CLI (with a REPL, JSON output, undo/redo) 4. Plan tests 5. Write tests 6. Document 7. Publish: installs the CLI to your PATH Install the app itself too (GIMP, Blender, etc.) so the CLI has something to drive.

Slide 4

One run may not cover everything. Refine it as many times as you like (each run adds, nothing is lost): /cli-anything:refine ./gimp Or aim it at what you need: /cli-anything:refine ./gimp "I want more CLIs on image batch processing and filters"

Slide 5

pip install cli-anything-hub cli-hub list (browse everything) cli-hub search image (search) cli-hub install gimp (install one) cli-hub launch gimp (run it) Or let your agent find and install the right CLI itself: npx skills add HKUDS/CLI-Anything --skill cli-hub-meta-skill -g -y Browse the hub: clianything.cc

Slide 6

Paste into Claude Code (with the plugin installed): I want to control [APP OR DEVICE] from Claude Code. It has no MCP. 1. Find its source code, SDK or open API ([LINK IF YOU HAVE ONE]) and download it into ./[folder]. 2. Run /cli-anything ./[folder] to build a CLI for it. 3. Show me the commands it made, then test them: [WHAT YOU WANT IT TO DO, e.g. "show a message on the display" or "set the temperature to 21"]. 4. If something I need is missing, run /cli-anything:refine ./[folder] "[the missing feature]". Ask me before anything that changes settings on a real device. Tip: it works from source code. Apps or devices that only ship closed, compiled software give much weaker results.