cli-anything-safari

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

A command-line interface for automating Safari on macOS through safari-mcp. Browser automation means using a program to inspect pages and perform browser actions such as clicking, typing, or reading content.

In plain words
What is it for?
Use it to run Safari automation commands from a terminal, shell script, scheduled job, or CI pipeline while keeping Safari's existing logins.
Why use it?
It makes Safari's automation tools available to scripts, CI jobs, and coding agents that cannot communicate with MCP directly. MCP is a standard way for an agent to call external tools.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for cline. Also seen: mentions Claude Code; mentions Codex; built for cline.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python scripts/extract_tools.py \.

Good fit Use it to run Safari automation commands from a terminal, shell script, scheduled job, or CI pipeline while keeping Safari's existing logins.

Compare 6 skills from other repositories ↓
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

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/HKUDS/CLI-Anything
agentmods
npx agentmods add skills/hkuds/cli-anything/cli-anything-safari

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-safari

README.md
[![agentmods](https://agentmods.dev/badge/skills/hkuds/cli-anything/cli-anything-safari/github.svg)](https://agentmods.dev/skills/hkuds/cli-anything/cli-anything-safari)
Your own site
<a href="https://agentmods.dev/skills/hkuds/cli-anything/cli-anything-safari"><img src="https://agentmods.dev/badge/skills/hkuds/cli-anything/cli-anything-safari/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-safari

Your own site · 80×15
<a href="https://agentmods.dev/skills/hkuds/cli-anything/cli-anything-safari"><img src="https://agentmods.dev/badge/skills/hkuds/cli-anything/cli-anything-safari.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 65 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,373 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. Third-party audits
  • Socket pass 15 Sept 2026
  • Snyk warn 15 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.00065 $0.03373
Opus 5.5 $0.00026 $0.01349
Sonnet 5.5 $0.00013 $0.00675
Haiku 4.5 $0.00006 $0.00337

Measured 2mo ago against content hash 8aa53e45d666, 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-safari 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 2mo ago.

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.

skills/cli-anything-safari/SKILL.md · 395 lines

How it starts

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

cli-anything-safari

A command-line interface for Safari browser automation on macOS. Wraps the safari-mcp Node.js MCP server in a Python Click CLI.

Feature parity is guaranteed. Every Click command is generated automatically from safari-mcp's tool schema (bundled as resources/tools.json). All 84 tools are reachable with the exact argument names and types the MCP server expects.

When to use this CLI

Each CLI invocation spawns a fresh subprocess, so there is per-call overhead. If your agent speaks MCP natively (Claude Code, Cursor, Cline, etc.), using safari-mcp directly over MCP stdio will be faster.

Use this CLI when:

  • Your agent framework does not speak MCP (Codex CLI, GitHub Copilot CLI, custom scripts, older agent frameworks).
  • You need to script browser automation from bash — cli-anything-safari --json tool snapshot | jq '...'.
  • You run in CI/CD and want cron-able, subprocess-friendly output.
  • You're debugging interactively from Terminal.

Installation

Prerequisites

  1. macOS — Safari MCP is macOS-only.
  2. Safari — already installed on macOS.
  3. Node.js 18+ — brew install node or from https://nodejs.org/
  4. Python 3.10+
  5. Enable Apple Events for Safari: Safari → Develop → Allow JavaScript from Apple Events

Install the CLI

cd safari/agent-harness
pip install -e .

The first tool call will download the safari-mcp npm package (one-time, a few MB).

Command Structure

The CLI has 5 top-level commands:

Command Purpose
tool Call any of safari-mcp's 84 tools (dynamic, schema-driven)
tools Inspect the bundled tool registry (list, describe, count)
raw Escape hatch — call a tool by full name with raw JSON args
session In-memory session state (last URL, current tab)
repl Interactive REPL (default when no subcommand given)

Read the full file on GitHub · 395 lines

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. 2mo ago First seen · 395 lines · 65 tokens per session scan A 8aa53e45d666

Subscribe to this mod's changes

cli-anything-safari is a skill published in the GitHub repository HKUDS/CLI-Anything (68,193 stars, last pushed 10d ago), licensed Apache-2.0. It adds 65 tokens to every session and 3,373 once invoked, about $0.0003 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-09-23.

Related

cli-anything-safari compared with skills from other repositories

cli-anything-safari next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cli-anything-safariHKUDS/CLI-AnythingSkill68k10d agoApache-2.0A65Claude Code, Codex
pinchtab-mcppinchtab/pinchtabSkill11k5d agoMITA52Claude Code, Codex
azure-messaging-webpubsub-javamicrosoft/skillsSkill3.3k3d agoMITA43Claude Code
cua-driverdavidondrej/skillsSkill4.4k2d agoMITA68Claude Code, Codex
open-design-browsercompozy/compozySkill2.9ktodayMITA56Claude Code, Codex
browser_cdpmateaix/mateclawSkill1.2k2d agoApache-2.0A44Claude Code, Codex
southwestborski/travel-hacking-toolkitSkill1.1k6d agoMITA40Claude Code