cli-setup

A setup guide for installing the Algolia command-line tool and creating a profile with the credentials it needs.

In plain words
What is it for?
Use it when preparing a computer or project to manage Algolia search settings and data from a terminal.
Why use it?
It removes the guesswork from installing the tool, checking existing profiles, and connecting it to an Algolia account.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/algolia/skills/cli-setup
Clone the repo
git clone --depth 1 https://github.com/algolia/skills
Per session 12 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 487 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00012 $0.00487
Opus 5 $0.00006 $0.00244
Sonnet 5 $0.00002 $0.00097
Haiku 4.5 $0.00001 $0.00049

Measured 2d ago against content hash e65c6f5fa011, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade B, and why

cli-setup scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

echo "deb [trusted=yes] https://algolia.github.io/cli/deb/ /" | sudo tee /etc/apt/sources.list.d/algolia-cli.list
commands/cli-setup.md · 83 lines

What it actually says

Algolia CLI Setup

Guide the user through installing the Algolia CLI and configuring their credentials.

Step 1: Check if the CLI is installed

Run:

algolia --version
  • If the command succeeds, skip to Step 3.
  • If the command fails (command not found), proceed to Step 2.

Step 2: Install the CLI

Detect the platform and install:

macOS (Homebrew):

brew install algolia/algolia-cli/algolia

Linux (Debian/Ubuntu):

echo "deb [trusted=yes] https://algolia.github.io/cli/deb/ /" | sudo tee /etc/apt/sources.list.d/algolia-cli.list
sudo apt update && sudo apt install algolia

Other platforms: Direct the user to https://www.algolia.com/doc/tools/cli/get-started for download options.

After installation, verify:

algolia --version

Step 3: Check for existing profiles

Run:

algolia profile list
  • If profiles exist, ask the user if they want to use an existing profile or create a new one.
  • If no profiles exist (or the command shows an empty list), proceed to Step 4.

Step 4: Create a profile

Ask the user for:

  1. Application ID — Found in Algolia Dashboard → Settings → API Keys
  2. Admin API key — Same location. Needed for write operations.

Then run:

algolia profile add --name "default" --app-id "<APP_ID>" --api-key "<API_KEY>" --default

Important: Always provide all three flags to avoid interactive prompts.

Step 5: Verify the connection

Run:

algolia indices list
  • If indices are listed, setup is complete. Tell the user they're ready to go.
  • If an error occurs, check:
    • Invalid API key → ask user to double-check credentials
    • Network error → ask user to check connectivity
    • No indices → that's fine, the connection works but the app has no indices yet
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 83 lines · 12 tokens per session scan B e65c6f5fa011

Subscribe to this mod's changes

cli-setup is a command published in the GitHub repository algolia/skills (12 stars, last pushed 7d ago), licensed MIT. It adds 12 tokens to every session and 487 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.