Agent-native package manager

Make every tool
agent-native

Wrap any CLI into an agent-friendly interface with middleware hooks. No MCP server, no schema bloat, no protocol overhead.

$ curl -fsSL https://anycli.dev/install.sh | sh
32x
fewer tokens than MCP
100%
reliability rate
17x
cheaper per operation
How it works

Four commands. That's it.

Install a tool, authenticate, and start using it. AnyCLI downloads the binary, wraps it with middleware hooks, and creates a PATH shim.

01
Install AnyCLI
One-line install. No dependencies.
curl -fsSL ... | sh
02
Add a tool
Downloads the binary and creates an agent-friendly wrapper.
anycli install gh
03
Authenticate
Store credentials once. Injected automatically on every call.
anycli auth gh
04
Just use it
Transparent shim. Before/after hooks run automatically.
gh pr list
Middleware pipeline

Before & after hooks, declaratively

JSON rules intercept every call. Inject auth, normalize output, transform flags. No code required.

$ gh pr list --state open
shim ~/.anycli/bin/gh intercepts call
load ~/.anycli/registry/gh.json
hook before inject-auth set GH_TOKEN from credentials
exec /usr/local/bin/gh pr list --state open
hook after ensure-json wrap output as JSON
exit 0
CLI vs MCP

The numbers speak for themselves

Benchmarked on identical GitHub tasks with Claude Sonnet. CLI wins on every metric.

CLI (AnyCLI)
Tokens per task 1,365
Success rate 100%
Monthly cost (10K ops) $3.20
Schema overhead 0 tokens
LLM familiarity Native
MCP
Tokens per task 44,026
Success rate 72%
Monthly cost (10K ops) $55.20
Schema overhead ~55,000 tokens
LLM familiarity Learned per-session
Features

Agent-native by design

Everything an agent needs, nothing it doesn't.

Busybox-style shims
Single binary, symlinked per tool. Transparent PATH interception with zero overhead.
JSON rule engine
Declarative before/after hooks. No scripts, no code. Just JSON rules with conditions.
Credential injection
Store tokens once. Before hooks inject them as env vars on every call automatically.
Binary downloads
Install tools from GitHub Releases. Handles OS/arch detection, tar.gz and zip extraction.
--json everywhere
After hooks normalize output to JSON. Agents parse structured data, not human-readable text.
Zero dependencies
Single Go binary. No runtime, no Docker, no Node.js. Works on macOS and Linux.

Ready to make your tools agent-native?

Install AnyCLI in 10 seconds. Open source, MIT licensed.

$ curl -fsSL https://anycli.dev/install.sh | sh