cli-anything — Make Any Software Agent-Native
CLI-Anything (HKUDS) bridges AI
agents and the world's software: instead of brittle GUI automation, it wraps
real applications (Blender, GIMP, LibreOffice, OBS, Godot, QGIS, …) in
structured, agent-first CLIs — Click commands, stateful REPL, --json
output, undo/redo — generated and validated through a 7-phase pipeline with
2,461 passing tests across 40+ harnesses. This skill is the routing-first
wrapper: pick the right mode, install the right surface, and drive the
build → refine → validate loop.
When to use this skill
- The user wants an agent to control real software (image/video/audio
editing, office, 3D, GIS, game engines, diagramming, streaming) through a
CLI instead of screenshots or RPA
- The user asks to install
cli-anything-hub/ usecli-hub
(list, search, info, install, update, uninstall, launch)
- The user wants agents to autonomously discover and install CLIs via
the CLI-Hub meta-skill
- The user wants to generate a new CLI harness from a local codebase or
GitHub repo with /cli-anything, or asked how to install the
CLI-Anything plugin/skill for Claude Code, Codex, OpenCode, OpenClaw, Pi,
Hermes, Qodercli, or GitHub Copilot CLI
- The user wants to expand or verify an existing harness with
/cli-anything:refine, /cli-anything:test, or /cli-anything:validate
When not to use this skill
- The user wants to design a domain-specific agent team (agents +
skills scaffolding), not a software CLI wrapper → use harness2
- The user is browsing/installing Claude plugins generally → use
ccpi-marketplace
- The target has no codebase and no API and must be driven through a
real browser/GUI session → use browser-harness (or playwriter for an
already-open browser)
- The user only needs web scraping/extraction → use
scrapling
Prerequisites
| Requirement | Notes |
|-------------|-------|
| Python 3.10+ | CLI-Hub and generated harnesses are Python/Click based |
| Target software | Harnesses call the real backend — install the upstream app (GIMP, Blender, …) too |
| A frontier coding agent | Harness generation needs strong models (Claude Opus/Sonnet class); weaker models degrade quality |
| Source code access | The 7-phase generator works from source; binary-only targets degrade substantially |
Instructions
Step 1 — Choose the mode
| Mode | When | Entry point |
|------|------|-------------|
| Use the ecosystem | A ready-made harness likely exists | pip install cli-anything-hub → cli-hub search <kw> |
| Empower agents | Agents should pick/install CLIs themselves | npx skills add HKUDS/CLI-Anything --skill cli-hub-meta-skill -g -y |
| Generate a harness | Registry doesn't cover the software | Platform plugin/skill → /cli-anything <path-or-repo> |
| Iterate a harness | Coverage gaps, failing flows | /cli-anything:refine · :test · :validate |
Prefer the registry first — building is the fallback, not the default.
Step 2 — Use the ecosystem via CLI-Hub
pip install cli-anything-hub
cli-hub list # browse the registry
cli-hub search image # search by keyword
cli-hub info gimp # inspect one CLI
cli-hub install gimp # install from CLI-Hub
cli-hub launch gimp # run an installed CLI
cli-hub update gimp # update
cli-hub uninstall gimp # remove
CLI-Hub v0.2.0+ also serves public CLIs from multiple install sources
(pip, npm, brew, bundled/system tools) via public_registry.json.
If a harness wraps desktop software (GIMP, Blender, LibreOffice, …),
install that upstream application too.
Step 3 — Give agents the meta-skill
npx skills add HKUDS/CLI-Anything --skill cli-hub-meta-skill -g -y
Then prompt the agent:
Find appropriate CLI software in CLI-Hub and complete the task: ...
Works with Claude Code, Codex, OpenClaw, Nanobot, Antigravity, and other
SKILL-compatible agents. The monorepo's per-harness skills are also
discoverable: npx skills add HKUDS/CLI-Anything --list.
Step 4 — Generate a new harness (7-phase pipeline)
Claude Code (primary platform):
/plugin marketplace add HKUDS/CLI-Anything
/plugin install cli-anything
/cli-anything ./gimp # local source
/cli-anything https://github.com/blender/blender # GitHub repo
The pipeline runs: **1 Analyze → 2 Design → 3 Implement (Click CLI + REPL +
JSON + undo/redo) → 4 Plan tests → 5 Write tests → 6 Document (+ Phase 6.5
SKILL.md generation) → 7 Publish** (setup.py, PATH install).
Other platforms (Codex, OpenCode, OpenClaw, Pi, Hermes, Qodercli, Copilot
CLI, Goose) follow the same methodology — install commands are in