cli-anything

cli-anything is a skill for Claude Code, Codex from HKUDS/CLI-Anything. It costs 54 tokens per session (770 once invoked), scanned A, original, Apache-2.0.

A method for building a command-line interface around a graphical application or source-code repository. It adapts the CLI-Anything approach for OpenClaw while keeping the generated Python interface format.

In plain words
What is it for?
Use it to build or improve a Python command-line harness from a local software folder or GitHub repository, including one-shot commands, interactive sessions, JSON output, and supported undo or redo.
Why use it?
It gives OpenClaw a repeatable way to turn software that normally requires a graphical interface into commands an agent can run and test.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: built for openclaw.

▶ CLI-Anything Just Brought Claude Code Into The Future Chase AI · about cli-anything · on YouTube →

Good fit Use it to build or improve a Python command-line harness from a local software folder or GitHub repository, including one-shot commands, interactive sessions, JSON output, and supported undo or redo.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hkuds/cli-anything/macrocli
About the project

CLI-Anything turns software and services into command-line interfaces that AI agents can use to perform tasks and produce artifacts. It is intended for people building or using agent workflows with tools such as coding assistants, design software, and other applications. The catalogue entries are skills, commands, a plugin, and a rule for working with CLI-Anything.

HKUDS/CLI-Anything · 68,193 stars · on GitHub · clianything.cc

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add HKUDS/CLI-Anything --skill macrocli
Clone the repo
git clone --depth 1 https://github.com/HKUDS/CLI-Anything

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cli-anything

README.md
[![agentmods](https://agentmods.dev/badge/skills/hkuds/cli-anything/macrocli/github.svg)](https://agentmods.dev/skills/hkuds/cli-anything/macrocli)
Your own site
<a href="https://agentmods.dev/skills/hkuds/cli-anything/macrocli"><img src="https://agentmods.dev/badge/skills/hkuds/cli-anything/macrocli/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for cli-anything

Your own site · 80×15
<a href="https://agentmods.dev/skills/hkuds/cli-anything/macrocli"><img src="https://agentmods.dev/badge/skills/hkuds/cli-anything/macrocli.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 770 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. ✓ AI security review Fable 5.1 · 6 Sept 2026 📄 Read the review Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00054 $0.00770
Opus 5.5 $0.00022 $0.00308
Sonnet 5.5 $0.00011 $0.00154
Haiku 4.5 $0.00005 $0.00077

Measured 3mo ago against content hash 4bde6f418454, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

cli-anything scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

The scan reads SKILL.md. This mod also ships 27 executable files (agent-harness/cli_anything/macrocli/__init__.py, agent-harness/cli_anything/macrocli/__main__.py, agent-harness/cli_anything/macrocli/backends/__init__.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

macrocli/SKILL.md · 111 lines

How it starts

The opening of the file, as written. The whole thing — 111 lines — stays where its author put it; the contents beside it link to each section on GitHub.

CLI-Anything for OpenClaw

Use this skill when the user wants OpenClaw to act like the CLI-Anything builder.

If this skill is being used from inside the CLI-Anything repository, read ../cli-anything-plugin/HARNESS.md before implementation. That file is the full methodology source of truth. If it is not available, follow the condensed rules below.

Inputs

Accept either:

  • A local source path such as ./gimp or /path/to/software
  • A GitHub repository URL

Derive the software name from the local directory name after cloning if needed.

Modes

Build

Use when the user wants a new harness.

Produce this structure:

<software>/
└── agent-harness/
    ├── <SOFTWARE>.md
    ├── setup.py
    └── cli_anything/
        └── <software>/
            ├── README.md
            ├── __init__.py
            ├── __main__.py
            ├── <software>_cli.py
            ├── core/
            ├── utils/
            └── tests/

Implement a stateful Click CLI with:

  • one-shot subcommands
  • REPL mode as the default when no subcommand is given
  • --json machine-readable output
  • session state with undo/redo where the target software supports it

Refine

Use when the harness already exists.

First inventory current commands and tests, then do gap analysis against the target software. Prefer:

  • high-impact missing features
  • easy wrappers around existing backend APIs or CLIs
  • additions that compose well with existing commands

Do not remove existing commands unless the user explicitly asks for a breaking change.

Test

Plan tests before writing them. Keep both:

  • test_core.py for unit coverage
  • test_full_e2e.py for workflow and backend validation

When possible, test the installed command via subprocess using cli-anything-<software> rather than only module imports.

Validate

Check that the harness:

  • uses the cli_anything.<software> namespace package layout
  • has an installable setup.py entry point
  • supports JSON output
  • has a REPL default path
  • documents usage and tests

Read the full file on GitHub · 111 lines

Files

What ships with it

39 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 111 lines · 54 tokens per session scan A 4bde6f418454

Subscribe to this mod's changes

cli-anything is a skill published in the GitHub repository HKUDS/CLI-Anything (68,193 stars, last pushed 10d ago), licensed Apache-2.0. It adds 54 tokens to every session and 770 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

cli-anything compared with skills from other repositories

cli-anything next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cli-anythingHKUDS/CLI-AnythingSkill68k10d agoApache-2.0A54Claude Code, Codex
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill101ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill395ktodayMITA36Claude Code
systematic-debuggingobra/superpowersSkill330k2d agoMITA21Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill14ktodayCC0-1.0A113Claude Code, Codex
next-cache-components-adoptionvercel/next.jsSkill144ktodayMITA95Claude Code