Agent-ready CLI tools
Coding agents such as Claude Code, Codex, and Cursor's agent can run command-line tools directly from their shell. These are the official CLIs they reach for most, each with the vendor's install command, how to sign it in safely, the tasks agents use it for, and the commands that should wait for a human.
When an agent should use a CLI, and when an MCP server fits better
Neither is better across the board. 15 of the 26 tools below also have an official MCP server, and many teams use both.
Reach for the CLI when
- The agent already has a shell, as Claude Code, Codex, and Cursor's agent do.
- You want the vendor's whole surface, not the subset a server exposes as tools.
- Output can be JSON and piped through jq, keeping the agent's context small.
- You want nothing new to install, run, or keep updated beyond the CLI itself.
Reach for an MCP server when
- The client has no shell, such as a chat app or a locked-down IDE panel.
- You want a narrow, typed set of actions instead of arbitrary commands.
- The server handles sign-in for you, for example with hosted OAuth.
- The same tools need to work across several clients and teammates.
The trade-off on the CLI side is control: a shell can run any command, so the safety rules and credentials you give the agent matter more. Every tool page has a ready-to-paste AGENTS.md or CLAUDE.md snippet for exactly that.
Cloud & deploy
Ship, inspect, and roll back apps and infrastructure on the major clouds and hosting platforms.
wranglerWrangler
Cloudflare's Wrangler CLI for agents: run Workers locally, dry-run deploys, tail logs, and query D1, with auth and safety rules for coding agents.
Cloudflare · official MCP optionOpenvercelVercel CLI
The Vercel CLI for coding agents: link projects, pull env vars, ship preview deploys, and read deployment logs, plus which commands need approval.
Vercel · official MCP optionOpennetlifyNetlify CLI
The Netlify CLI for AI agents: check site status, run netlify dev, create draft deploys, and list env vars, with safe defaults and token setup.
Netlify · official MCP optionOpenflyflyctl
flyctl, the Fly.io CLI, for coding agents: check app status, read logs, list secrets, and deploy, with the commands an agent should leave to a human.
Fly.ioOpenrailwayRailway CLI
The Railway CLI for AI agents: link projects, check status, read logs and variables, and run commands with service env vars, plus safe deploy rules.
Railway · official MCP optionOpenawsAWS CLI
The AWS CLI for coding agents: check identity, list S3, tail CloudWatch logs, and dry-run syncs, with read-only IAM and pager tips for agents.
Amazon Web Services · official MCP optionOpengcloudGoogle Cloud CLI
The Google Cloud CLI (gcloud) for AI agents: check config, list Cloud Run services, read logs as JSON, and deploy from source, with safe prompts.
Google Cloud · official MCP optionOpenazAzure CLI
The Azure CLI (az) for coding agents: check the subscription, list resources, stream app logs, and preview deployments with what-if before changes.
Microsoft · official MCP optionOpenfirebaseFirebase CLI
The Firebase CLI for AI agents: list projects, run the local emulators, deploy hosting previews, and read function logs, with the deploys to avoid.
Google (Firebase) · official MCP optionOpenkubectlkubectl
kubectl for coding agents: inspect pods, read logs, diff manifests, and server-side dry-run applies, with context and namespace rules that prevent accidents.
Kubernetes project (CNCF)OpenterraformTerraform
Terraform for AI agents: format, validate, and plan infrastructure changes and read state, while apply and destroy stay with a human reviewer.
HashiCorp · official MCP optionOpen
Dev & Git
Pull requests, CI runs, containers, and the package managers agents use to install, build, and test.
ghGitHub CLI
The GitHub CLI (gh) for coding agents: list PRs, read failed CI logs, open draft pull requests, and query the API as JSON, with safe-use rules.
GitHub · official MCP optionOpendockerDocker
The Docker CLI for coding agents: list containers, read logs, build images, and run Compose stacks, with the prune and volume commands agents must avoid.
DockerOpenbunBun
Bun for coding agents: install dependencies from the lockfile, run tests and scripts, and add packages, with rules for lockfiles and lifecycle scripts.
OvenOpenuvuv
uv for coding agents: sync Python environments from the lockfile, run tests, add packages, and run tools with uvx, plus rules for lockfiles and pins.
AstralOpen
Databases
Query, inspect, and migrate databases from the terminal, from local files to hosted Postgres.
psqlpsql
psql, the PostgreSQL terminal, for coding agents: list tables, describe schemas, EXPLAIN queries, and run read-only sessions safely against Postgres.
PostgreSQL Global Development GroupOpensqlite3sqlite3
The sqlite3 shell for coding agents: list tables, read schemas, query in read-only mode with JSON output, and back up a database before any change.
SQLite projectOpenduckdbDuckDB
The DuckDB CLI for AI agents: query CSV and Parquet files with SQL, describe and summarize data, and convert formats, all locally without a server.
DuckDB Foundation · official MCP optionOpensupabaseSupabase CLI
The Supabase CLI for coding agents: run the local stack, create and diff migrations, generate types, and dry-run pushes, with the remote commands to avoid.
Supabase · official MCP optionOpen
Data & text
Search code and reshape JSON quickly, with output an agent can read and pipe into the next command.
jqjq
jq for coding agents: pretty-print, filter, and reshape JSON from files and other CLIs, with the one redirect mistake that wipes the input file.
jqlangOpenrgripgrep
ripgrep (rg) for coding agents: fast code search by pattern and file type, list matching files, and show context, while respecting .gitignore by default.
Andrew Gallant (BurntSushi)Open
Media
Convert, trim, resize, and inspect video, audio, and images without opening an editor.
ffmpegFFmpeg
FFmpeg for AI agents: inspect media with ffprobe, convert, trim, resize, and extract audio, with flags that stop silent overwrites and stuck prompts.
FFmpeg projectOpenmagickImageMagick
ImageMagick for coding agents: identify images, resize and convert formats, strip metadata, and batch-make thumbnails without overwriting the originals.
ImageMagick StudioOpen
Testing
Run browser tests and audits that tell an agent, by exit code and report, whether a change works.
playwrightPlaywright
The Playwright CLI for coding agents: run end-to-end tests, rerun failures, target one browser, and take screenshots, with rules for snapshots and test data.
Microsoft · official MCP optionOpenlighthouseLighthouse
The Lighthouse CLI for AI agents: audit performance, accessibility, and SEO in headless Chrome and save JSON reports an agent can compare between runs.
Google Chrome · official MCP optionOpen
Payments
Test payment flows and webhooks locally, in test mode, before anything touches real money.
CLI tools for agents: questions
Should a coding agent use a CLI or an MCP server?
Use a CLI when the agent already has a shell, the tool is installed, and a human has signed it in: CLIs cover the vendor's whole surface, print JSON, and cost no extra context for tool definitions. Use an MCP server when the client has no shell (chat apps, some IDE panels), when you want a narrow, typed set of tools instead of arbitrary commands, or when the server adds hosted auth such as OAuth. Many teams use both. See MCP servers for coding agents.
Is it safe to let an AI agent run these CLIs?
It is as safe as the credentials and rules you give it. Sign CLIs in with scoped, read-only tokens where possible, keep production deploys and deletes behind human approval, and put the rules in your AGENTS.md or CLAUDE.md. Every tool page lists the commands that only read state and the ones that should wait for a person.
How do I tell my agent which CLIs it can use?
List them in the instruction file your agent reads at the start of a session, such as AGENTS.md for Codex and many other agents or CLAUDE.md for Claude Code. Each tool page has a ready-to-paste snippet with the version check, auth check, safe commands, and commands that need approval.
Why are there no star counts or download numbers here?
This list covers official tools that are already widely used, so popularity numbers would not help you choose. Each page sticks to facts from the vendor's own documentation: install commands, auth, typical tasks, and safety rules. For MCP servers, the trust score methodology explains how the directory ranks them.