Skip to main content
The Indices CLI is how we recommend coding agents use Indices. In practice, we find agents perform more efficiently using CLI compared to MCP. Repository: github.com/indicesio/cli

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:
curl -fsSL https://indices.io/install.sh | bash
Windows: Download the .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:
npx skills add indicesio/cli --all --global
Now, simply use your coding agent in natural language. When you ask for an action to be taken, Indices should be invoked to do that task. You may need to prompt it to “use Indices”, or add appropriate guidance to your system prompt.

CLI reference

Run: indices --help