Skip to content
CLI tools

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.

26 toolsSafety rules on every page
CLI or MCP server?

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.

11 tools

Cloud & deploy

Ship, inspect, and roll back apps and infrastructure on the major clouds and hosting platforms.

4 tools

Dev & Git

Pull requests, CI runs, containers, and the package managers agents use to install, build, and test.

4 tools

Databases

Query, inspect, and migrate databases from the terminal, from local files to hosted Postgres.

2 tools

Data & text

Search code and reshape JSON quickly, with output an agent can read and pipe into the next command.

2 tools

Media

Convert, trim, resize, and inspect video, audio, and images without opening an editor.

2 tools

Testing

Run browser tests and audits that tell an agent, by exit code and report, whether a change works.

1 tool

Payments

Test payment flows and webhooks locally, in test mode, before anything touches real money.

FAQ

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.