Use the Algolia CLI from KosmoKrator to call Algolia tools headlessly, return JSON, inspect schemas, and automate workflows from coding agents, scripts, and CI.
Algolia can be configured headlessly with `kosmokrator integrations:configure algolia`.
# Install KosmoKrator first if it is not available on PATH.curl -fsSL https://raw.githubusercontent.com/OpenCompanyApp/kosmokrator/main/install.sh | bash# Configure and verify this integration.kosmokrator integrations:configure algolia --set app_id="$ALGOLIA_APP_ID" --set api_key="$ALGOLIA_API_KEY" --enable --read allow --write ask --jsonkosmokrator integrations:doctor algolia --jsonkosmokrator integrations:status --json
Credentials
Authentication type: API keyapi_key. Configure credentials once, then use the same stored profile from
scripts, coding CLIs, Lua code mode, and the MCP gateway.
Key
Env var
Type
Required
Label
app_id
ALGOLIA_APP_ID
Text text
yes
Application ID
api_key
ALGOLIA_API_KEY
Secret secret
yes
Admin API Key
Call Algolia Headlessly
Use the generic call form when another coding CLI or script needs a stable universal interface.
Every function below can be called headlessly. The generic form is stable across all integrations;
the provider shortcut is shorter but specific to Algolia.
algolia.algolia_search
Read read
Search an Algolia index. Supports full-text search with filters, faceting, and pagination. Use this to find records matching a query string or filter criteria.
Create or replace a record in an Algolia index. The object is identified by its objectID. If a record with this objectID exists, it will be fully replaced.
Update specific attributes of a record without replacing the entire object. Only the specified attributes will be changed; all other attributes remain unchanged.
Use these parameter tables when building CLI payloads without calling integrations:schema first.
algolia.algolia_search
Search an Algolia index. Supports full-text search with filters, faceting, and pagination. Use this to find records matching a query string or filter criteria.
List of attributes to include in the response. Default: all attributes.
algolia.algolia_save_object
Create or replace a record in an Algolia index. The object is identified by its objectID. If a record with this objectID exists, it will be fully replaced.
Update specific attributes of a record without replacing the entire object. Only the specified attributes will be changed; all other attributes remain unchanged.
Key-value pairs of attributes to update. Only the specified attributes will be changed. Use special operations like {"_operation":"Increment","value":1} for atomic updates.
algolia.algolia_list_indices
List all indices in the Algolia application. Returns index names, entry counts, and sizes information.
Array of batch operations. Each request must have "action" (addObject, updateObject, partialUpdateObject, deleteObject) and "body" (the record data). For update/delete, body must include "objectID".
algolia.algolia_get_current_user
List API keys for the Algolia application. Use this to verify that authentication is working and to see which API keys exist.
Headless calls still follow the integration read/write permission policy. Configure read/write defaults
with integrations:configure. Add --force only for trusted automation that should bypass that policy.