Free

CLI-Anything: control applications through commands

Find an interface in CLI-Hub or build one with CLI-Anything. Test one application command and check its result using a practice file.

Tools

Official quick start · CLI-Hub catalogue · Download source (ZIP)

CLI-Anything helps control individual programs through commands. Find a ready-made interface in CLI-Hub or ask an agent to create one from accessible program source code.

Tool features

Start with the action you need, such as processing your image or exporting a document. Use a native command or available connection if it already does the job. CLI-Anything helps when existing controls fall short.

The project has two routes. CLI-Hub finds and installs existing interfaces; the CLI-Anything skill helps develop new ones. Installing the catalogue does not add control over every app. Each interface has its own commands, dependencies and limits. Some require the installed application; others need only libraries.

Codex generator support is labelled Experimental and Community. It needs Python 3.10 or later and access to the selected program or its sources. Check each interface's capabilities through its files and an actual run.

How to choose a route and connect

  1. Ask Codex to find the current project, program and available commands. Agree on one verifiable result while preserving the source file.
  2. For an existing interface, start with CLI-Hub. The assistant checks Python and an isolated environment and asks before installing missing software.
python -m pip install cli-anything-hub
cli-hub list
cli-hub search image
cli-hub info gimp

This illustrates finding an image tool; it does not require installing GIMP. The assistant chooses the Python command for the prepared environment and an interface for your task. Read the selected package's source and dependencies before cli-hub install. CLI-Hub usage events can be disabled with CLI_HUB_NO_ANALYTICS=1; see its README.

  1. Install only the selected interface and check --help. The official gimp example uses cli-hub install gimp and cli-hub launch gimp. Take names, arguments and program requirements from the selected package.
  2. If no interface exists, follow the Codex generator guide. Find an existing repository copy or approve a separate checkout. From its parent directory, connect the full checkout with:
git clone https://github.com/HKUDS/CLI-Anything.git
bash CLI-Anything/codex-skill/scripts/install.sh

For Windows, use the PowerShell script:

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

The installer places the skill in $CODEX_HOME/skills/cli-anything, or ~/.codex/skills/cli-anything if CODEX_HOME is unset. It does not overwrite an existing skill. The assistant should check it, save previous settings and read the installer first. Restart Codex after connecting.

Work needs project access and command execution. Reading a README does not confirm installation. See connecting a tool.

How to run the first trial

Choose one action on a file copy, such as resizing your image and exporting it. Avoid starting with a whole folder.

  1. Check commands and define expected image dimensions, format, original preservation and export location.
  2. Run the chosen interface and save its command and response. Use JSON mode for result fields if available.
  3. Open the exported image and check size, content and required transparency. For a document, open the relevant pages in an appropriate program. Creating a file alone is insufficient.
  4. Repeat from a new session using saved instructions. If the interface stores its own project as JSON, verify export separately: this JSON is not necessarily the application's native document.

For a new interface, Codex first examines the available API or command-line program, then creates a small command set and tests actual results. A stub response or passing unit test does not establish that the program works. State unavailable actions explicitly.

Where it is used

In connecting a tool, choosing an action, CLI-Anything helps find command access for a particular program. Define the result before a small trial, then open the created file during the real call.

After a successful trial, save start and disconnect instructions. If the agent has excess folder or action access, review permissions.

How to check results and fix errors

For a missing command, check Python's environment and the installed interface path. If commands respond but export fails, read dependency and application errors. Do not blindly install a second copy.

If the generator is unavailable after installation, check the actual skill folder and restart Codex. A refusal to overwrite an existing folder calls for version comparison; deleting a working skill is not the first step.

The result should repeat on your file, open correctly and meet criteria. Save the interface version, command, example and limits. CLI-Hub provides cli-hub uninstall for a selected package; leave created documents and the source application intact. Disconnect the generator and ready-made interfaces separately. The project uses Apache-2.0; check dependencies' terms and model costs separately.

Prompt for Codex

Paste into Codex or Work with the program, project and trial file available.

Help perform one needed program action through CLI-Anything. Find the project, program, source file and available commands or connections. Clarify the desired result if project materials do not specify it. Read https://github.com/HKUDS/CLI-Anything. Check native controls and CLI-Hub first; compare a suitable existing interface with developing a new one. Read the chosen package's source and dependencies, and check access, data transmission and costs. Ask before missing installations. Do not connect the entire catalogue.
Set a verifiable result for one file copy, perform a real action, open the export and compare content, dimensions and format. Preserve the original. Do not call project JSON the program's native document without checking. If the Codex generator is needed, check the existing skill and official installer for my system; after approval, connect it and create a minimal interface tested with the real program. Save the command, version, editable sources, result example, and repeat-run and disconnect instructions. State actions you could not verify.
In This Article
Saved