CLI-Anything is an Apache-2.0 project from the HKUDS lab that gives AI coding agents command-line control of desktop software such as GIMP, Blender and LibreOffice, and it has a generator that builds a new command-line wrapper for any app or repo you point it at. It gained 699 GitHub stars on November 23, 2026 and sits at about 62,900 in total. The quick path is one pip install and takes a few minutes; generating a brand-new CLI is a longer agent run.

This guide is written from the project's README as it stood on November 23, 2026, the v0.4.0 release notes and the PyPI listing. We did not run the commands on a test machine for this piece, so every command below is quoted from those sources and nothing here is a benchmark.

RelatedPI-Desktop Setup: Run Any AI Coding Agent Locally, Free

  • There are two separate things to install: cli-hub, a pip package that installs ready-made CLIs, and the CLI-Anything plugin or skill that builds new ones inside your coding agent.
  • The hub needs Python 3.10 or newer and no API key. PyPI lists cli-anything-hub at version 0.4.1.
  • A wrapper does not replace the app. If you install the GIMP CLI, the README says you still need GIMP itself on the machine.
  • In Claude Code the generator is two slash commands to install and one to run: /cli-anything ./gimp.

The exact steps, start to finish

  1. Check what you already have. The hub needs Python 3.10+, the agent skill installs through npx, and the manual routes use git.
    python --version
    pip --version
    node --version
    git --version
  2. Install the CLI-Hub package manager.
    pip install cli-anything-hub
  3. Browse the registry and search it.
    # Browse what is available
    cli-hub list
    cli-hub search image
  4. Install the upstream app first. The README is direct about this: some CLIs wrap real desktop or backend software, so if you pick GIMP, Blender or LibreOffice, install that application too. Get GIMP from gimp.org if you are following the example.
  5. Install one CLI and run it. This is the first real use: a working command-line front end for an app your agent could not drive before.
    # Install and try a CLI immediately
    cli-hub install gimp
    cli-hub info gimp
    cli-hub launch gimp
  6. Let your agent find CLIs on its own. This adds the hub's meta-skill to any agent that reads the SKILL.md format.
    npx skills add HKUDS/CLI-Anything --skill cli-hub-meta-skill -g -y
    Then give the agent the prompt the README suggests:
    Find appropriate CLI software in CLI-Hub and complete the task: ...
  7. Add the generator to Claude Code (only if the registry lacks the app you need). Type these inside a Claude Code session:
    /plugin marketplace add HKUDS/CLI-Anything
    /plugin install cli-anything
  8. Generate a CLI from source. Point the command at a local path or a repo.
    /cli-anything ./gimp
  9. Install the generated CLI and use it.
    # Install to PATH
    cd gimp/agent-harness && pip install -e .
    
    # Use from anywhere
    cli-anything-gimp --help
Two routes to an agent-ready CLI with CLI-Anything Route one installs a ready-made CLI from CLI-Hub with pip. Route two runs the slash command cli-anything on an app's source and passes through seven phases. Both end in a cli-anything command with JSON output that an AI agent can call. TWO ROUTES, ONE RESULT CLI-Hub registry pip install cli-anything-hub cli-hub install gimp App source or repo /cli-anything ./gimp 7 phases, analyze to publish cli-anything-gimp --json output, REPL ships a SKILL.md Your agent Claude Code, Codex, Cursor, OpenClaw The real app GIMP must be installed the CLI calls its backend genztech.blog
Fig 1 The hub installs a CLI someone already built. The generator builds one from source. Either way the agent calls a normal command and the command drives the real application.

The hub and the generator are different installs

Most confusion about this project comes from treating it as one tool. The README splits its quick start into two starting points. If you want to use the existing ecosystem now, you install cli-anything-hub and pull ready-made CLIs from the registry. If you want an agent-native CLI for software nobody has wrapped yet, you install the CLI-Anything plugin or skill into your coding agent and run its 7-phase generator.

The first is a Python package you run in a terminal. The second lives inside an agent session and does its work by having the agent read source code and write a Python package. You can use the hub for months and never touch the generator.

The registry is bigger than the project's own output. Since the hub's v0.2.0 update in April 2026 it also lists public third-party CLIs installed through pip, npm, brew or system tools, next to the CLI-Anything harnesses for apps such as FreeCAD, QGIS, Obsidian, Zotero, Godot and n8n.

Managing CLIs with cli-hub on Windows, macOS and Linux

The pip command is the same on every operating system, and PyPI lists the package as requiring Python 3.10 or later. After the install, seven subcommands cover the whole life of a CLI:

cli-hub list
cli-hub search <query>
cli-hub info <name>
cli-hub install <name>
cli-hub update <name>
cli-hub uninstall <name>
cli-hub launch <name> [args...]

Run cli-hub info before cli-hub install. The registry mixes install sources, and the info page is where you find out whether the thing you are about to install needs a desktop app, a local server or an account with some service.

One Windows note from the README applies to the agent side, not the hub: Claude Code runs shell commands through bash, so on Windows you need Git for Windows (which includes bash and cygpath) or WSL.

Building a new CLI from Claude Code with /cli-anything

After the two /plugin commands in the checklist, the entry point is /cli-anything followed by a software path or a repo. The README describes what the run does in seven phases: analyze the source and map GUI actions to APIs, design the command groups and state model, implement a Click CLI with a REPL, JSON output and undo/redo, plan the tests, write them, document the results, then publish a setup.py and install the command to your PATH.

The result follows a fixed naming pattern, so the GIMP example becomes cli-anything-gimp:

cli-anything-gimp project new --width 1920 --height 1080 -o poster.json
cli-anything-gimp --json layer add -n "Background" --type solid --color "#1a1a2e"

# Enter interactive REPL
cli-anything-gimp

Expect the first pass to miss features. The project ships a second command for that, which compares the app's capabilities with what the CLI covers and adds commands, tests and docs for the gaps. The README says each run is incremental and non-destructive.

# Broad refinement
/cli-anything:refine ./gimp

# Focused refinement
/cli-anything:refine ./gimp "I want more CLIs on image batch processing and filters"

Running the CLI-Anything generator from Codex

Codex support is labelled Experimental and Community in the README. It installs from a clone with a bundled script:

# Clone the repo
git clone https://github.com/HKUDS/CLI-Anything.git

# Install the skill
bash CLI-Anything/codex-skill/scripts/install.sh

On Windows PowerShell the same step is:

.\CLI-Anything\codex-skill\scripts\install.ps1

The skill lands in $CODEX_HOME/skills/cli-anything, or ~/.codex/skills/cli-anything when that variable is unset. Restart Codex so it is discovered. There is no slash command here; you describe the job in a sentence, for example:

RelatedWorktrunk Setup: Git Worktrees for Parallel AI Agents

Use CLI-Anything to build a harness for ./gimp

The README also documents Cursor, Pi, OpenClaw, OpenCode, Hermes, Reasonix, Qodercli and GitHub Copilot CLI, each with its own short install section.

Fixing "Unknown skill: cli-anything" and "cygpath: command not found"

Both errors are named in the README, with fixes.

Unknown skill: cli-anything. The plugin did not load. Switching between the two entry forms will not help, because both point at the same skill. Reload first, then check that the help text appears:

/reload-plugins
/help cli-anything

If the help does not show up, repeat the two /plugin commands from the checklist and try /cli-anything ./gimp again. Only on older Claude Code builds where the plugin is loaded but the command is still not recognized does the README suggest the legacy form:

/cli-anything:cli-anything ./gimp

cygpath: command not found. This is the Windows case described above. Install Git for Windows or run Claude Code inside WSL.

The CLI installs but does nothing useful. Check that the upstream application is installed. A GIMP wrapper without GIMP has no backend to call.

CLI-Anything next to an MCP server and a GUI agent

CLI-AnythingMCP server for the appGUI agent (screen control)
How the agent reaches the appShell commands with JSON outputTool calls over the Model Context ProtocolScreenshots, mouse and keyboard
Who has to build itInstall from the hub, or let your agent generate itSomeone writes and hosts a server per appNothing per app
Works with any agent that has a terminalYesOnly clients that speak MCPOnly agents with computer-use support
Needs the real app installedYes, for CLIs that wrap desktop softwareDepends on the serverYes
Main weaknessGenerated coverage is partial until you refine itNo server exists for most desktop appsSlow, and a changed layout breaks it

Our read: start with the hub and stop there unless you hit a wall. A CLI that already sits in the registry has been through the project's test suite, which the README puts at 2,461 passing tests across the in-repo harnesses, while a harness your agent generated this afternoon has been tested only by the tests that same agent wrote. Treat a fresh harness like any other generated code. Read the commands it exposes before you let an agent run them against files you care about, and keep the first few runs on copies.

The generator earns its place for internal tools and niche apps where no MCP server will ever exist. For anything with a mature official API or MCP server, use that.

Primary sources