Getting Claude Code, Cursor, or Codex to drive GIMP, Blender, or LibreOffice most obviously means taking screenshots: hand the window image to the model, have it work out the button coordinates, then simulate mouse clicks. This works—until you move the window, switch the theme, or get an extra dialog popping up, and the coordinates go stale. You end up re-reading the screen at every step.
CLI-Anything takes a different approach. It doesn’t rewrite these apps; instead, it reads their source code, generates a set of command-line commands that drive the real software, and adds a skill description so the assistant knows what commands exist, how to fill in the arguments, and where the limits are.
So the practical order is: first check CLI-Hub for something ready-made, and only generate your own if nothing fits. The seven-step generation is token-hungry, and you’ll also need that app installed locally.
Core takeaway: By the end of this article, you’ll be able to tell the two paths apart—”install ready-made” vs. “generate your own”—know what each of the seven steps produces, and understand where the two hurdles of token cost and local environment are likely to trip you up.

CLI-Anything Key Takeaways: The Three-Layer Structure That Lets AI Operate Real Software
What the CLI-Anything project does can be broken down into three layers: reading source code, generating command-line interfaces, and writing skill instructions. Stack all three together, and you get the complete solution for letting AI operate real software.
| Key point | Description | What it means for you |
|---|---|---|
| Doesn’t rewrite the software | It reuses the actual software already installed on your machine; what it generates are commands that invoke it | No workflow migration; your existing files and plugins work as usual |
| Generates from source code | It analyzes the target software’s real source code and callable interfaces, then produces a CLI based on that | The commands match the software’s actual capabilities instead of a guessed API |
| Install ready-made first | CLI-Hub already has ready-made skills that install with a single command | For most mainstream software, you don’t need to run the seven steps yourself |
| Has hard prerequisites | The target software must already be installed locally, and Python needs to be 3.10 or later | If the software isn’t installed, even the right commands won’t reach anything |
| Positioned as an interface | The README says it clearly: this is an interface to real software, not a replacement | Don’t expect it to bypass the software itself; it only turns operations into commands |
The repository’s own numbers give you a sense of scale: as of December 2026, HKUDS/CLI-Anything has 70119 stars and 6578 forks, uses the Apache-2.0 license, is primarily written in Python, was created on 2026-03-08, and was last pushed on 2026-11-20. There are 383 open items. That number includes PRs, so don’t read it as 383 unresolved issues.
Here’s a spot that’s easy to misread: the project’s news section stopped updating in May 2026, while the repository’s most recent push was on November 20, 2026. Keep the two separate. The news section is not evidence of the last push time, so don’t use it to judge whether the project is still maintained.
Why CLI-Anything Doesn’t Rely on Screenshots and Mouse Clicks
The biggest problem with screenshots plus clicks is fragility: the model sees pixels, not controls. The same button has completely different coordinates under a dark theme, at 125% scaling, or after maximizing the window. The real killer is that the model can’t tell from a screenshot whether the operation actually took effect; it can only take another screenshot and compare.
A CLI makes this decidable. A successful command has an exit code, its output can be structured JSON, and failures produce error messages. The assistant gets deterministic feedback instead of an image that needs to be reinterpreted.
To be clear, this doesn’t mean screenshots and clicks disappear. When you’re making visual judgments—say, “is the image overexposed after adjusting this curve?” or “is this layout aligned?”—taking a look at the screen is still the most direct approach. The CLI handles operations where “the same thing gets executed repeatedly.” Visual acceptance still works the way visual acceptance always has.

How CLI-Anything Works: Reading Source Code, Generating a Command Line, and Setting Up SKILL.md
The seven steps are Analyze, Design, Implement, Plan Tests, Write Tests, Document, and Publish. The first two are about understanding, the third is the main engineering work, the fourth through sixth make sure it’s usable, and the last lets other people install what you’ve built.
Two details in the Implement step deserve their own discussion. First, using Click as the command-line framework means argument parsing, help text, and subcommand grouping are all standard practice — the assistant doesn’t need to learn a proprietary syntax. Second, it requires providing a REPL, JSON output, and undo capability all at once: the REPL makes it easy for a human to poke around manually, JSON lets programs parse results reliably, and undo lets the assistant back out when an operation doesn’t go as planned instead of leaving the software state in a tangled mess.
After the seventh step there’s also a SKILL.md. This file isn’t a manual for humans — it’s a skill description for the assistant: when to use this skill, what subcommands exist, and how to handle common errors. It’s what the assistant reads in its context, so if SKILL.md is vague, even a well-built command line will get used the wrong way.
How CLI-Anything Differs from “Writing Your Own Scripts to Drive Software”
When you write your own scripts to drive software, you usually get stuck on two things: you don’t know which callable entry points the software actually exposes internally, and you don’t know how the parameters constrain each other. CLI-Anything’s Analyze phase goes into the source code to figure this out, and the Design phase then organizes it into stable command boundaries. What you save is mostly that exploration time; the cost is spending model tokens reading source code.
CLI-Anything Quick Start: Install Ready-Made Skills First, Then Consider Seven-Step Generation
This section follows the actual order you’ll do things in. Start with what a single command can solve, then think about what needs the seven-step run.
Step 1: Confirm Two Prerequisites
The software you want to operate has to be installed on your machine. There’s no way around this — the command line is just a shell around the software, and if the software isn’t there, the shell is empty. The other prerequisite is Python 3.10 or higher; anything older and installing the hub will cause problems.
Step 2: Install Ready-Made Skills from CLI-Hub
CLI-Hub has two entry points, https://clianything.cc/ and https://hkuds.github.io/CLI-Anything/ — either one lets you browse the available ready-made skills. Installation itself is short: first pip install cli-anything-hub, then cli-hub install gimp pulls down the skill for GIMP.
If you’re using Claude Code, there’s also a path that fits more naturally into your workflow: /plugin marketplace add HKUDS/CLI-Anything, which adds the whole marketplace so you can load things as needed.
If you want an even easier way to discover ready-made skills, run npx skills add HKUDS/CLI-Anything --skill cli-hub-meta-skill -g -y. This step installs the skill that finds skills, so your assistant knows where to look and what to install.
Step 3: Only Run the Seven-Step Generation If Nothing Else Fits
Only move to the generation flow when no ready-made skill covers the software you need, or the version gap is too large. Here’s what each of the seven steps produces:
| Step | What You Do | Output |
|---|---|---|
| Analyze | Read the target software’s source code and callable interfaces, map out the capability boundaries | Capability list and invocation paths |
| Design | Design command groups, parameters, output formats | Command design draft |
| Implement | Implement commands with Click, plus REPL, JSON output, undo | A runnable command line |
| Plan Tests | Plan the scenarios and edge cases that need coverage | Test plan |
| Write Tests | Write executable automated tests | Test code |
| Document | Add usage docs and examples | Docs and examples |
| Publish | Package and publish to CLI-Hub | A distributable skill package |
| Supporting Material | Write SKILL.md explaining when to use it, how to invoke it, and what pitfalls exist | Assistant-readable skill description |
Once you’ve been through this flow, you’ll have two things: a command line that can drive the real software, and a skill description your assistant can understand. Without either one, your assistant won’t be able to use it smoothly.
Step 4: Get Your Assistant to Actually Call It
Once the commands are generated, your assistant needs a model to drive them. This layer is separate from CLI-Anything itself: the project generates the command line, and the model decides which command to call and what to put in the arguments.
Wiring it up in Python looks roughly like this — just point base_url at APIYI’s unified endpoint:
from openai import OpenAI
client = OpenAI(
api_key="YOUR_API_KEY",
base_url="https://api.apiyi.com/v1", # APIYI apiyi.com unified endpoint: one key for multiple models
)
resp = client.responses.create(
model="gpt-6.2-sol",
input="用刚装好的 gimp 技能,把 /tmp/in.png 缩放到 1280 宽并导出 /tmp/out.png,先给命令再执行",
)
print(resp.output_text)
For the endpoint, prefer /v1/responses, with the unified address https://api.apiyi.com/v1. The interface stays OpenAI-compatible, so switching models only means changing the model field.
Tip: If you just want to get the flow working end to end, grab some free test credits on APIYI apiyi.com first. Try gpt-6.2-sol with a single key before deciding whether you need a pricier model — that saves you the hassle of signing up over and over.
How to Choose a Model in the CLI-Anything Generation Stage: A Token Cost Comparison
Of the seven steps, Analyze is the most token-hungry, because it has to read the source code of the target software into context. The bigger the repository, the longer the input for this step, and both cost and runtime climb with it. That’s exactly why routine tasks and large repositories deserve different model choices.
Prices are based on the APIYI model documentation dated 2026-12-03 (docs.apiyi.com/models.md); all units are per 1M tokens:
| Model | Input | Output | Cache read | Input portion beyond 272K |
|---|---|---|---|---|
| gpt-6.2-sol | $2 | $10 | $0.10 | $4 |
| gpt-6.2-astra | $8 | $40 | $0.40 | $16 |
For everyday generation and software with modest source code, gpt-6.2-sol is enough. When the repository is large, has many files, and modules call each other in complicated ways, switch to gpt-6.2-astra — its long-context handling is steadier, at the cost of a unit price four times higher.
The cache-read column is worth paying attention to. The Analyze input from the seven steps gets referenced over and over in later steps, and cached portions are billed at $0.10 or $0.40 — an order of magnitude below full-price input. So don’t spin up a new session for every step; carrying the context straight through actually saves more.
💰 Cost control: On APIYI apiyi.com, these two models share the same Key and the same base_url. Switching only means changing the
modelfield, which makes it easy to run a small trial first and then decide which one to use as your main.
Ready-made skills vs. generating your own: how to decide
| Dimension | Using a ready-made skill from CLI-Hub | Running the seven steps yourself |
|---|---|---|
| Effort | One install command | Multiple rounds of model invocation, with noticeable token overhead |
| Best for | Mainstream software already covered | Obscure versions, internal tools, special requirements |
| Quality depends on | How well the skill itself is maintained | Source readability and test coverage |
| Prerequisites | Software installed locally | Software installed locally, and source code readable |

If you want to compare how the two models perform on the same source code, the easiest approach is to run it twice on APIYI apiyi.com with the same Key, changing only the model name and leaving every other parameter untouched.
CLI-Anything won’t run? Check your local environment and skill file first
Most failures aren’t about generation quality — they’re environment problems. The table below covers the most common ones.
| Symptom | Common cause | What to do |
|---|---|---|
| The command reports that it can’t find the program | That software isn’t installed on your machine | Install it first, then retry |
cli-hub won’t install |
Python is older than 3.10 | Upgrade the interpreter and reinstall |
| The command runs, but the assistant won’t use it | SKILL.md is missing, or the skill isn’t loaded | Check the skill file location and the load path |
| A human can read the output, but the program can’t parse it | JSON output isn’t enabled | Call it in JSON mode instead |
| Commands stop matching after a software upgrade | Internal interfaces changed | Re-run Implement and Document |
There’s another category that’s easy to overlook: the scenarios described in SKILL.md don’t line up with how you actually use it. The assistant matches tasks against the wording in SKILL.md, so if the description is written too narrowly, it simply won’t think to reach for that skill. The fix costs almost nothing — adding a couple of typical scenarios is often a better deal than regenerating the whole command line.
And when you do need to regenerate, don’t forget to check whether you picked the right model. For projects with large repos, running with gpt-6.2-sol tends to get truncated at the Analyze stage, which means you have to re-run anyway — and the total cost ends up higher.

FAQ
Q1: What is CLI-Anything?
It’s a project that reads a real application’s source code and generates a command-line toolchain for invoking that application. The repo is at HKUDS/CLI-Anything under the Apache-2.0 license. It doesn’t replace the software; it only provides an interface into the real software.
Q2: What’s the fundamental difference between CLI-Anything and the screenshot-and-mouse-click approach?
Screenshot clicking depends on pixel coordinates, so it breaks as soon as the window changes, and the model can’t determine whether the action actually worked. The command line gives you exit codes, error messages, and parseable JSON output, so the result is verifiable. That said, for judgments that require visual verification, a quick glance at the screen is still faster. The two approaches aren’t mutually exclusive.
Q3: What’s the current status of CLI-Anything?
As of December 2026, the repo has 70,119 stars and 6,578 forks. The most recent push was 2026-11-20, and there are 383 open items (including PRs). The project’s news section is stuck at May 2026. That date isn’t the same as the last push date; for maintenance status, go by the latter.
Q4: What scenarios is CLI-Anything best suited for?
– **Batch image processing**: turn resizing, exporting, and format conversion into repeatable commands
– **3D scene placement**: parameterized operations like camera, lighting, and object positions are more reliable when expressed as commands
– **Document batch processing**: table rewriting, format normalization, batch export
– **Internal tool integration**: for in-house software with no public API, read the source and generate a set of commands
Q5: How do I quickly connect the commands generated by CLI-Anything to a model?
Two steps: first, sign up at APIYI (apiyi.com) and get an API key and free test quota; then point the code’s base_url to `https://api.apiyi.com/v1`, and prefer the `/v1/responses` endpoint. After that, switching models only requires changing the `model` field; no other code changes.
Q6: Why not just use the official API instead of generating a command line?
Many desktop apps have no public API at all, just a GUI. The command line CLI-Anything generates wraps capabilities that are callable inside the software. This is a stopgap when there’s no official API. For software that already has a stable official API, using that API directly is usually easier.
Q7: Roughly how many tokens does the seven-step generation take?
There’s no single number; it depends on the size of the target software’s source code. What’s certain is that Analyze is the most expensive because it reads source code. For reference, pricing is $2 input, $10 output, $0.10 cached read, and $4 for the portion of input over 272K for gpt-6.2-sol; gpt-6.2-astra is $8, $40, $0.40, and $16, respectively. All prices are per 1M tokens. You can switch between these two models directly on APIYI (apiyi.com) to compare.
Q8: What are the known limitations of CLI-Anything?
At least three: the target software must be installed on your machine; without it, you can’t invoke it. Python 3.10 or later is required. Generated results depend heavily on source readability, so closed-source or obfuscated software is unlikely to yield reliable commands. Also, software upgrades can make existing commands go out of sync, so you’ll need to rerun some steps.
CLI-Anything Key Takeaways
- Don’t rewrite the software: what you generate is a command line that drives the real software — the software itself stays exactly as it is.
- Install what already exists first: if CLI-Hub already has the skill,
cli-hub install gimpbeats running the seven steps yourself. - The seven steps have an order: Analyze burns the most tokens; Implement needs a REPL, JSON, and undo.
- SKILL.md is not optional: the assistant relies on it to decide when to use the tool and how to call it — write it vaguely and it’ll get used wrong.
- Two hard requirements: the software installed on your machine, and Python 3.10 or above. Both, no exceptions.
- Models by scenario: gpt-6.2-sol for everyday work, gpt-6.2-astra once the repo gets big — one key on APIYI apiyi.com switches between them.
Summary
The value of CLI-Anything is that it frees “AI operating real software” from pixel coordinates and puts it on a deterministic, repeatable command line. What it solves is stability when the same task gets executed over and over — not making screenshots and clicks disappear entirely.
Three sentences are enough to remember the rollout order: first go to CLI-Hub and install what’s already there, starting with a single line, cli-hub install gimp; if it really isn’t there, run the seven steps, from Analyze all the way to Publish plus SKILL.md; and throughout, don’t forget the software has to be installed locally and Python has to be 3.10 or newer.
As for picking the model that drives this layer: gpt-6.2-sol covers everyday tasks, and switch to gpt-6.2-astra when the source tree gets large. If you’d rather get it running before deciding, grab some free credits from APIYI apiyi.com and give it a try — set base_url to https://api.apiyi.com/v1 and prefer the /v1/responses endpoint.
References
-
GitHub – HKUDS/CLI-Anything: The main project repository, including source code, the seven-step workflow, and SKILL.md documentation
- Link:
github.com/HKUDS/CLI-Anything - Note: See the positioning described in the README: “an interface to real software, not a replacement”
- Link:
-
CLI-Hub Skill Site (main entry): Look up and install ready-made skills
- Link:
clianything.cc - Note: Before installing, check here first to confirm whether a ready-made skill already exists for the target software
- Link:
-
CLI-Hub Documentation Site (backup entry): Project documentation and usage instructions
- Link:
hkuds.github.io/CLI-Anything - Note: Use this when the main entry isn’t accessible
- Link:
-
APIYI Model and Pricing Documentation: Model list and billing standards
- Link:
docs.apiyi.com/models.md - Note: The prices in this article are based on this document, and all units are per 1M tokens
- Link:
Author: APIYI Technical Team
Technical Exchange: Feel free to reach out to us on the APIYI apiyi.com homepage. For more API documentation, visit the docs.apiyi.com documentation center.