{"slug": "what-is-cli-anything-a-command-line-for-any-app-for-ai-agents", "title": "What is CLI-Anything? A Command Line for Any App, for AI Agents", "summary": "HKUDS released CLI-Anything, an Apache 2.0-licensed open source project that generates Python command-line interfaces so AI agents can drive existing software such as GIMP, Blender, LibreOffice, Zotero and FreeCAD through commands rather than clicks. The project pairs a CLI generator, which builds each harness in seven phases from a program's source code, with CLI-Hub, a registry installed via `pip install cli-anything-hub`; its README badge shows 2,461 tests passing against a test summary totaling 2,464 as of 26 Nov 2026. The README states the generator relies on frontier-class models such as Claude Opus 4.6, Claude Sonnet 4.6 and GPT-5.4, and that weaker models may produce incomplete or incorrect CLIs.", "body_md": "# What is CLI-Anything? A Command Line for Any App, for AI Agents\n\nCLI-Anything (HKUDS/CLI-Anything) gives AI agents a command line for existing software. What it is, how CLI-Hub works and how to install it.\n\nCLI-Anything is an open source project that gives AI agents a command line for existing software, so they can drive apps like GIMP, Blender and LibreOffice with commands instead of clicks. Its [README](https://github.com/HKUDS/CLI-Anything) pairs a CLI generator with CLI-Hub, a registry of CLIs. It comes from HKUDS under the Apache 2.0 licence. Checked 26 Nov 2026.\n\nIf you run AI agents, [Munder Difflin](https://harnessmd.com/download) is free and open source: a desktop app that runs a team of AI agents for all kinds of knowledge work, coding included, on your own computer. Its agents run on engines such as Claude Code, Codex and Gemini CLI, and can use skills, MCP servers and plugins. The [install guide](https://munderdiffl.in/blog/how-to-install-and-use-munder-difflin/) covers setup.\n\n## What is CLI-Anything? [#](#what-is-cli-anything)\n\nCLI-Anything turns software built for people into tools an agent can run from a terminal. The README calls it “Bridging the Gap Between AI Agents and the World’s Software” and says: “Make any software agent-ready for Pi, OpenClaw, nanobot, Cursor, Claude Code, etc.” Each CLI it builds is called a harness.\n\nIt is both a generator and a hub. The README says it “has two equally useful starting points”: install `cli-anything-hub` to “Use the existing CLI ecosystem now”, or install the plugin or skill for your agent to “Build a new agent-native CLI”. Software it names includes GIMP, Blender, LibreOffice, Zotero and FreeCAD, among many others.\n\n## How does CLI-Anything work? [#](#how-does-cli-anything-work)\n\nYou point your agent at a program’s source code or repo, and it builds a Python CLI in seven phases, per the README:\n\n1. Analyze: “Scans source code, maps GUI actions to APIs”.\n2. Design: command groups, a state model and output formats.\n3. Implement: a Click CLI with a REPL, JSON output, and undo and redo.\n4. Plan tests in a `TEST.md` file.\n5. Write the tests.\n6. Document the results.\n7. Publish: create `setup.py` and install the CLI to your PATH.\n\nThe CLI calls the real program rather than copying it: “We build structured interfaces TO software, not replacements.” So LibreOffice still makes the PDFs and Blender still renders the 3D scenes. Each CLI also gets a `SKILL.md` with a name and description “for agent skill discovery”, the same idea as [Claude Code Skills: What They Are, Where They Live and How to Write One](https://munderdiffl.in/blog/claude-code-skills/). By the project’s own figures, read 26 Nov 2026, the README badge shows 2,461 tests passing, while its test summary totals 2,464.\n\nThe README names three limits. It “relies on frontier-class models (e.g., Claude Opus 4.6, Claude Sonnet 4.6, GPT-5.4)”, and weaker or smaller models “may produce incomplete or incorrect CLIs”. When the software only provides compiled binaries that require decompilation, “harness quality and coverage will degrade substantially”. And one run may not cover everything: “Running `/refine` one or more times is often needed”.\n\n## How do you install and use CLI-Anything? [#](#how-do-you-install-and-use-cli-anything)\n\nThere are two routes: install CLIs that already exist, or build a new one. For existing CLIs, the README starts with:\n\n```\npip install cli-anything-hub\n# Browse what is available\ncli-hub list\ncli-hub search image\n\n# Install and try a CLI immediately\ncli-hub install gimp\ncli-hub info gimp\ncli-hub launch gimp\n```\n\nIt warns: “If a selected CLI needs GIMP, Blender, LibreOffice, or another upstream tool, install that upstream application too.”\n\nTo build a new CLI you need Python 3.10+ and a supported AI coding agent. In Claude Code, the README gives:\n\n```\n# Add marketplace & install (recommended)\n/plugin marketplace add HKUDS/CLI-Anything\n/plugin install cli-anything\n\n# Build a CLI for any software with a codebase\n/cli-anything <software-name>\n```\n\nIts example is `/cli-anything ./gimp`. The README also has install steps for Cursor, Pi, OpenClaw, OpenCode, Codex, Hermes, Reasonix, Qodercli and GitHub Copilot CLI, and Goose can run the same commands through a CLI provider such as Claude Code. It marks OpenCode, Goose, Codex, Hermes and Reasonix as Experimental.\n\nThen the agent uses the CLI like any other command. Per the README, “the generated CLI works the same way” whichever agent built it:\n\n```\n# Install to PATH\ncd gimp/agent-harness && pip install -e .\n\n# Use from anywhere\ncli-anything-gimp --help\ncli-anything-gimp project new --width 1920 --height 1080 -o poster.json\ncli-anything-gimp --json layer add -n \"Background\" --type solid --color \"#1a1a2e\"\n\n# Enter interactive REPL\ncli-anything-gimp\n```\n\nAgents “discover capabilities via standard --help and which commands”, and a `--json` flag on every command returns structured data.\n\n## What is CLI-Hub? [#](#what-is-cli-hub)\n\nCLI-Hub is the project’s catalogue of CLIs, at [clianything.cc](https://clianything.cc/). The site calls it “an agent-friendly registry and package manager for CLI tools”. It lists CLI-Anything CLIs and Public CLIs, which it says “remain the property of their respective software owners and maintainers”.\n\nThe README’s meta skill lets agents “discover and install the right CLI for a task”, and it names OpenClaw, Nanobot, Claude Code, Codex, Reasonix and Antigravity:\n\n```\nnpx skills add HKUDS/CLI-Anything --skill cli-hub-meta-skill -g -y\n```\n\nThen you prompt: “Find appropriate CLI software in CLI-Hub and complete the task: …”\n\nRelease [v0.4.0](https://github.com/HKUDS/CLI-Anything/releases/tag/v0.4.0), out on 25 Jun 2026, added matrices, bundles of CLIs for a whole workflow, found with `cli-hub can <task>`. The [pricing page](https://clianything.cc/pricing.md), read 26 Nov 2026, says “CLI-Anything and CLI-Anything Hub are open source and free to use”, though some third party CLIs, APIs or apps in the registry “may have their own pricing”.\n\n## Why a command line instead of a browser or screen clicks? [#](#why-a-command-line-instead-of-a-browser-or-screen-clicks)\n\nThe README’s answer is reliability: “No screenshots, no clicking, no RPA fragility. Pure command-line reliability with structured interfaces”. Its list of reasons says text commands “match LLM format”, `--help` flags give “automatic documentation agents can discover”, and JSON output “eliminates parsing complexity”. The project’s [technical report](https://arxiv.org/abs/2606.03854) on arXiv, dated 2 Jun 2026, adds that current GUI agents “struggle with brittle pixel-level interactions, timing dependencies, and coordinate-based actions that break with interface changes.”\n\nOur view: a command line suits work an agent repeats, because a fixed command is easier to check than a click on a moving screen. A browser still fits sites with no CLI, and the README’s own table lists a browser CLI, `cli-anything-browser`. For more, read [Why CLI Agents Are So Powerful](https://munderdiffl.in/blog/why-cli-agents-are-powerful/) and [Browser Use Alternatives: 5 Picks After the 1.0 Rewrite (Nov 2026)](https://munderdiffl.in/blog/browser-use-alternatives/).\n\n## CLI-Anything at a glance [#](#cli-anything-at-a-glance)\n\nChecked 26 Nov 2026.\n\n| Item | Detail | \n|---|---|\n| What it is | A CLI generator for software, plus CLI-Hub, a registry of CLIs | \n| Code | HKUDS/CLI-Anything on GitHub, created 8 Mar 2026, last push 20 Nov 2026 | \n| Licence | Apache 2.0 | \n| Latest release | [v0.4.0](https://github.com/HKUDS/CLI-Anything/releases/tag/v0.4.0) , 25 Jun 2026 | \n| Stars | 65,782 at 03:54 UTC on 26 Nov 2026 | \n| Agents with install steps | Claude Code, Cursor, Pi, OpenClaw, OpenCode, Codex, Hermes, Reasonix, Qodercli, GitHub Copilot CLI, Goose | \n| Software named | GIMP, Blender, Inkscape, Audacity, LibreOffice, OBS Studio, Kdenlive, Shotcut, Zotero, [Draw.io](http://Draw.io) , Zoom, FreeCAD and more | \n| To build a CLI | Python 3.10+ and a supported AI coding agent | \n| Price | Free, per its pricing page | \n\n## FAQ\n\nWhat is CLI-Anything?\n\nAn open source project from HKUDS, under the Apache 2.0 licence, whose README is titled \"CLI-Anything: Making ALL Software Agent-Native\". It has two parts: a generator that builds a command line for a piece of software, and CLI-Hub, a registry of CLIs you can install. Checked 26 Nov 2026.\n\nHow do I install CLI-Anything in Claude Code?\n\nPer the README, run `/plugin marketplace add HKUDS/CLI-Anything`, then `/plugin install cli-anything`, then `/cli-anything <software-name>` to build a CLI. To install CLIs that already exist, run `pip install cli-anything-hub`, then `cli-hub install <name>`.\n\nWhat is CLI-Hub?\n\nCLI-Hub, at clianything.cc, is the project's catalogue of CLIs. The site calls it \"an agent-friendly registry and package manager for CLI tools\". The `cli-hub` command can list, search, inspect, install, update, uninstall and launch them.\n\nWhich agents does CLI-Anything work with?\n\nFor building CLIs, the README names Claude Code, Cursor, Pi, OpenClaw, OpenCode, Codex, Hermes, Reasonix, Qodercli and GitHub Copilot CLI, plus Goose through a CLI provider. Its CLI-Hub skill names OpenClaw, Nanobot, Claude Code, Codex, Reasonix and Antigravity.\n\nIs CLI-Anything free?\n\nYes. Its pricing page, read 26 Nov 2026, says \"CLI-Anything and CLI-Anything Hub are open source and free to use.\" It adds that some third party CLIs, APIs or apps in the registry may have their own pricing.", "url": "https://wpnews.pro/news/what-is-cli-anything-a-command-line-for-any-app-for-ai-agents", "canonical_source": "https://munderdiffl.in/blog/what-is-cli-anything/", "published_at": "2026-11-26 00:00:00+00:00", "updated_at": "2026-11-26 04:12:51.615904+00:00", "lang": "en", "topics": ["ai-agents", "ai-tools", "developer-tools", "artificial-intelligence"], "entities": ["HKUDS", "CLI-Anything", "CLI-Hub", "GIMP", "Blender", "LibreOffice", "Claude Code", "Cursor"], "also_reported_by": [], "takeaway": "CLI-Anything generates a Click-based Python CLI with a REPL, JSON output, undo/redo and a SKILL.md for agent skill discovery from a program's source, but the README warns it needs frontier models like Claude Opus 4.6 or GPT-5.4 and that `/refine` often must be run more than once to cover everything.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/what-is-cli-anything-a-command-line-for-any-app-for-ai-agents", "markdown": "https://wpnews.pro/news/what-is-cli-anything-a-command-line-for-any-app-for-ai-agents.md", "text": "https://wpnews.pro/news/what-is-cli-anything-a-command-line-for-any-app-for-ai-agents.txt", "jsonld": "https://wpnews.pro/news/what-is-cli-anything-a-command-line-for-any-app-for-ai-agents.jsonld"}}