---
title: "CLI-Anything: What It Is and How to Use It (Install Guide)"
url: "https://goremy.ai/blog/articles/cli-anithing"
author: Luis Chavez-Mattos
editor: Luis Chavez-Mattos
editor_title: Director, Product
published: "2026-11-26T22:00:29.531Z"
updated: "2026-11-26T22:00:29.531Z"
topic: AI Coding Tools
description: CLI-Anything turns software with a codebase into a command-line tool an AI agent can drive. What it generates, how to install it, and its limits.
---

# CLI-Anything: What It Is and How to Use It (Install Guide)

> CLI-Anything turns software with a codebase into a command-line tool an AI agent can drive. What it generates, how to install it, and its limits.

Edited by Luis Chavez-Mattos, Director, Product · Published 2026-11-26

## What is CLI-Anything?

CLI-Anything is an open-source plugin from HKUDS (the Data Science lab at the University of Hong Kong) that reads the source code of a piece of software and generates a command-line interface (CLI) for it. A CLI is a set of typed commands, like `convert photo.png`, instead of buttons and menus. Once the CLI exists, an AI coding agent such as Claude Code can run those commands to control the software directly, without clicking through a screen.

## TL;DR

- CLI-Anything **generates a command-line wrapper** around an app by analyzing its source code, so an AI agent can operate the app with structured commands.
- It works as a plugin for AI coding agents, **primarily Claude Code**. Support for other agents, including Codex, is described as experimental.
- The project describes a **7-phase pipeline** that produces structured commands, JSON output, and an interactive REPL (a prompt where you type commands one at a time).
- It needs **access to the app's source code**. It is aimed at apps like GIMP, Blender, LibreOffice and Audacity, not at closed software you can't read.
- Treat the generated wrapper as a first draft. **Test it and read it** before you let an agent run it on real files.
- If you only need an agent to reach your own business data, a small app with an API may be a simpler route than wrapping desktop software.

## Why can't AI agents use most desktop software?

Software splits into two groups. Cloud services such as payment processors, email providers and analytics tools speak HTTP, so an agent can call them with little setup. Professional desktop tools (GIMP for images, Blender for 3D, LibreOffice for documents, Audacity for audio) were built for a person with a mouse. They have screens, not structured interfaces.

The usual workarounds have problems:

- **Hand-written wrappers** take weeks and break when the software updates.
- **Robotic process automation (RPA)** clicks through the screen using screenshots and pixel positions. It tends to break when a window layout, theme or display scaling changes.

CLI-Anything takes a third route. Instead of imitating a person clicking, it studies the source code to find the functions the interface already calls, then generates a CLI that calls them directly. The agent sends a command and the software does the work.

## How does CLI-Anything work?

The project's own summary is that it turns a codebase into an "agent-native" CLI through a 7-phase pipeline. The skill description in the repo covers the full arc: analysis, code generation, testing and packaging. The methodology lives in a file called `HARNESS.md` inside the `cli-anything-plugin` folder of the repository.

The word to know is **harness**. In this project, a harness is the generated layer that sits between the agent and the app. According to the sources, the output is a Python harness, and it includes:

- **Structured commands** the agent can call by name.
- **JSON output**, which means results come back in a predictable, machine-readable format rather than as text meant for a person to read.
- **A REPL**, an interactive session where you or the agent can run commands one after another.
- **Tests.** The project's announcement cites 2,464 passing tests, which tells you testing is part of the design, not an afterthought.

The project also runs a hub for finished harnesses at clianything.cc (CLI-Hub), so you may find one that already exists for the app you care about.

## How do you install CLI-Anything?

The code is on GitHub at `HKUDS/CLI-Anything`. The plugin is built for Claude Code first. The repository's README is the authority on the exact plugin steps, and they can change, so follow it rather than a copy from a blog.

One install route is documented on a skills directory page, which lists a command using the `skills` installer (it needs Node.js, since it runs through `npx`):

```
npx skills add HKUDS/CLI-Anything --skill cli-anything -g -y
```

Variations listed there:

```
# Target Claude Code specifically
npx skills add HKUDS/CLI-Anything --skill cli-anything -a claude-code -g -y

# See what the repo offers before installing
npx skills add HKUDS/CLI-Anything --list

# Install every skill in the repo
npx skills add HKUDS/CLI-Anything --all -g -y
```

A caution: the listing I found describes an adapter written for another agent called Reasonix, and it says the generated Python harness format stays the same. So this is the skill route, not necessarily the same thing as the main Claude Code plugin. Run the `--list` command first and check what you are installing.

## How do you run it on a real app?

The sources don't include a captured run, and I won't paste terminal output I haven't seen. Instead, here is the process, using GIMP as the example because the project names it as a target. Run it on a throwaway copy of your files.

1. **Get the source.** Clone the app's repository into a folder on your machine. CLI-Anything works from the codebase, so this step is required.
2. **Open Claude Code in that folder** with the plugin or skill installed.
3. **Ask for the harness in plain language.** The skill is triggered by requests to generate a CLI for specific software or to wrap a GUI app as a command-line tool. For example:

```
Build a CLI-Anything harness for this repository.
Cover the core image operations first: open, resize, crop, export.
Run the tests and tell me which commands passed.
```

4. **Let the pipeline run.** Expect it to analyze the code, generate the harness, write tests and package the result. This can take a while on a large codebase.
5. **Inspect what it produced.** Look for the command list, the tests, and the packaging files. Read the commands before you trust them.
6. **Try one command by hand** on a sample file, in the REPL or the terminal. Check that the JSON output matches what actually happened to the file.
7. **Then hand it to the agent.** Ask it to do a small real task, such as resizing five images, and compare the results to doing it manually.

Start with a narrow slice of the app. A harness that covers four operations well is more useful than one that covers four hundred badly.

## What does CLI-Anything generate, and what still needs a human?

The generated harness is code, and code written by an AI needs review. A person still has to:

- **Check coverage.** The harness may not expose every feature. Decide which commands matter for your workflow and confirm they exist.
- **Check behavior.** A command that runs without an error can still do the wrong thing. Compare outputs to what the app produces by hand.
- **Set boundaries.** An agent with a command line can delete or overwrite files. Point it at copies, and keep backups.
- **Keep it current.** When the app releases a new version, the harness may need regeneration or fixes.

Passing tests help, but the 2,464 figure is the project's own count across its work, not a guarantee about the harness you generate for your app.

## What are the limits of CLI-Anything?

- **It needs a codebase.** The Apidog write-up describes it as working for software "with a codebase." Closed-source commercial apps are out of reach.
- **It is aimed at Claude Code.** Other agents are described as experimental.
- **It is young.** The write-up from March 2026 mentioned over 6,100 GitHub stars, which signals interest, not maturity. Expect rough edges.
- **Large apps are hard.** Analyzing a big codebase and finding the right functions is difficult, and results will vary by project.
- **It is a developer tool.** You work in a terminal with a coding agent. That is fine for an analyst who is comfortable there, but it is not a point-and-click product.

## What does this mean for you?

**If you work with media or documents** (design, audio, 3D, publishing), this points toward a near future where you tell an agent "resize and export these 200 images" and it runs the real software. Today, you can try it on a small batch with a technical colleague.

**If you are an IT or operations lead,** the question is governance. A generated CLI gives an agent real power over an application. Decide who can install it, what files it can touch, and who reviews the harness.

**If you are a manager or non-technical user,** you don't need to run this yourself. Know that "agents can't use our desktop tools" is becoming less true, and that a person comfortable with Claude Code can prototype a harness in an afternoon.

**What to do this week:** pick one repetitive task in one open-source tool, generate a harness for a narrow slice, test it on copies, and measure whether it saves time.

## Do you need to wrap desktop software at all?

Sometimes the thing an agent needs to reach is not GIMP or Blender but your own process: a request form, a tracker, a small internal dashboard. In that case a purpose-built app is a cleaner target than a wrapped desktop program. With [Remy](https://goremy.ai), you describe the tool in plain English and it builds and deploys a full-stack app with a database and sign-in. The same backend can expose an API and an MCP server, so outside AI tools like Claude or Cursor can use the app directly. That gives an agent a defined way in, without a spreadsheet or a screen-clicking workaround.

## Frequently Asked Questions

### Is CLI-Anything free?

It is open source, hosted at `HKUDS/CLI-Anything` on GitHub. The plugin itself carries no listed price in the sources, but you still need an AI coding agent such as Claude Code, which has its own cost.

### Do I need to know how to code to use CLI-Anything?

You need to be comfortable in a terminal and with a coding agent, and you should be able to read or have someone review the generated code. You don't write the harness yourself, but you are responsible for checking it.

### What is the difference between CLI-Anything and RPA?

RPA automates by watching the screen and clicking, which breaks when layouts or themes change. CLI-Anything reads the source code and generates commands that call the app's underlying functions directly, so it doesn't depend on how the window looks.

### Does CLI-Anything work with apps I can't see the code for?

Not according to the sources. It is described as working for software with a codebase, because it analyzes that code to build the CLI. For closed software, you would need a different approach.

### Where can I find ready-made harnesses?

The project links a hub called CLI-Hub at clianything.cc. Check it before generating your own, since a harness for your app may already exist.
