ai
Replicate CLI for Headless Automation
Use the Replicate CLI for headless automation with headless JSON commands, schema discovery, credentials, and permission controls.
7 functions 6 read 1 write API key auth
Replicate CLI for Headless Automation
Use KosmoKrator as a non-interactive integration runtime for local automations and wrappers.
Use headless automation when another tool needs a stable local command surface. The Replicate CLI uses the same integration registry as the TUI, Lua runtime, and MCP gateway, but returns predictable command output for automation.
Command Shape
# Replicate CLI for Headless Automation
kosmokrator integrations:configure replicate --set api_key="$REPLICATE_API_KEY" --enable --read allow --write ask --json
kosmo integrations:call replicate.replicate_list_predictions '{}' --json Discovery Before Execution
Agents and scripts can inspect Replicate docs and schemas before choosing a function.
kosmo integrations:docs replicate --json
kosmo integrations:docs replicate.replicate_list_predictions --json
kosmo integrations:schema replicate.replicate_list_predictions --json
kosmo integrations:search "Replicate" --json
kosmo integrations:list --json Useful Replicate CLI Functions
| Function | Type | Parameters | Description |
|---|---|---|---|
replicate.replicate_list_predictions | Read | none | List recent Replicate predictions. Returns prediction IDs, statuses, model versions, and outputs. |
replicate.replicate_get_prediction | Read | prediction_id | Get detailed information about a specific Replicate prediction by its ID, including status, output, logs, and error details. |
replicate.replicate_create_prediction | Write | version, input, webhook, webhook_events | Create a new prediction on Replicate by providing a model version and input. Returns the prediction object with status. Poll get_prediction for results. |
replicate.replicate_list_models | Read | none | List available Replicate models. Returns model names, owners, descriptions, and latest version IDs. |
replicate.replicate_get_model | Read | model_owner, model_name | Get detailed information about a specific Replicate model by owner and name, including description, versions, and input schema. |
replicate.replicate_list_collections | Read | none | List curated model collections on Replicate. Returns collection names, descriptions, and model slugs. |
replicate.replicate_get_current_user | Read | none | Get the current Replicate user profile and billing information. |
Automation Notes
- Use
--jsonfor machine-readable output. - Keep credentials out of argv by using environment variables or stored KosmoKrator configuration.
- Configure read/write policy before unattended runs; use
--forceonly for trusted automation. - Use the MCP gateway instead when the agent needs dynamic tool discovery inside a conversation.