Why CLI over MCP for agents?
For many operations, the CLI is significantly more efficient than MCP:- File uploads: An agent can pipe a file directly —
cat file.pdf | indices runs create --stdin— rather than encoding it to base64 and emitting every character as tokens through the model - Easier configuration: Easier login by using
indices login, vs vendor-specific configuration steps when using MCP.
Installation
macOS and Linux:.zip from GitHub Releases, extract the binary, and add it to your PATH.
Skill: Teach your agent how to use Indices, by installing the skill:
CLI reference
Run:indices --help