Chroma CLI Setup Chroma can be configured headlessly with `kosmokrator integrations:configure chroma`.
# 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 chroma --set api_key=" $CHROMA_API_KEY " --enable --read allow --write ask --json
kosmokrator integrations:doctor chroma --json
kosmokrator integrations:status --json Credentials
Authentication type: API key api_key. Configure credentials once, then use the same stored profile from
scripts, coding CLIs, Lua code mode, and the MCP gateway.
Call Chroma Headlessly Use the generic call form when another coding CLI or script needs a stable universal interface.
kosmo integrations:call chroma.chroma_list_collections '{
"limit": 1,
"after": "example_after"
}' --json Use the provider shortcut form for shorter human-facing commands.
kosmo integrations:chroma chroma_list_collections '{
"limit": 1,
"after": "example_after"
}' --json Agent Discovery Commands
These commands return structured output for coding agents that need to inspect capabilities before choosing a function.
kosmo integrations:docs chroma --json
kosmo integrations:docs chroma.chroma_list_collections --json
kosmo integrations:schema chroma.chroma_list_collections --json
kosmo integrations:search "Chroma" --json
kosmo integrations:list --json All CLI Functions
Every function below can be called headlessly. The generic form is stable across all integrations;
the provider shortcut is shorter but specific to Chroma.
chroma.chroma_list_collections Read read List all vector collections in Chroma. Returns collection names and IDs that can be used for further operations.
limit, after kosmo integrations:call chroma.chroma_list_collections '{"limit":1,"after":"example_after"}' --json copy kosmo integrations:chroma chroma_list_collections '{"limit":1,"after":"example_after"}' --json copy
chroma.chroma_get_collection Read read Get details of a specific Chroma collection by its name or UUID, including metadata and document count.
collection_id kosmo integrations:call chroma.chroma_get_collection '{"collection_id":"example_collection_id"}' --json copy kosmo integrations:chroma chroma_get_collection '{"collection_id":"example_collection_id"}' --json copy
chroma.chroma_create_collection Write write Create a new vector collection in Chroma. Collections are used to store and query document embeddings.
name, description, metadata kosmo integrations:call chroma.chroma_create_collection '{"name":"example_name","description":"example_description","metadata":"example_metadata"}' --json copy kosmo integrations:chroma chroma_create_collection '{"name":"example_name","description":"example_description","metadata":"example_metadata"}' --json copy
chroma.chroma_add_documents Write write Add documents with embeddings to a Chroma collection. Each document requires an ID and either embeddings or text content.
collection_id, ids, embeddings, documents, metadatas kosmo integrations:call chroma.chroma_add_documents '{"collection_id":"example_collection_id","ids":"example_ids","embeddings":"example_embeddings","documents":"example_documents","metadatas":"example_metadatas"}' --json copy kosmo integrations:chroma chroma_add_documents '{"collection_id":"example_collection_id","ids":"example_ids","embeddings":"example_embeddings","documents":"example_documents","metadatas":"example_metadatas"}' --json copy
chroma.chroma_query_documents Read read Search for similar documents in a Chroma collection using query embeddings or text. Returns the most similar documents ranked by distance.
collection_id, query_embeddings, query_texts, n_results, where, where_document, include kosmo integrations:call chroma.chroma_query_documents '{"collection_id":"example_collection_id","query_embeddings":"example_query_embeddings","query_texts":"example_query_texts","n_results":1,"where":"example_where","where_document":"example_where_document","include":"example_include"}' --json copy kosmo integrations:chroma chroma_query_documents '{"collection_id":"example_collection_id","query_embeddings":"example_query_embeddings","query_texts":"example_query_texts","n_results":1,"where":"example_where","where_document":"example_where_document","include":"example_include"}' --json copy
chroma.chroma_get_document Read read Retrieve specific documents from a Chroma collection by their IDs. Returns the full documents including text, embeddings, and metadata.
collection_id, ids, where, where_document, include, limit, offset kosmo integrations:call chroma.chroma_get_document '{"collection_id":"example_collection_id","ids":"example_ids","where":"example_where","where_document":"example_where_document","include":"example_include","limit":1,"offset":1}' --json copy kosmo integrations:chroma chroma_get_document '{"collection_id":"example_collection_id","ids":"example_ids","where":"example_where","where_document":"example_where_document","include":"example_include","limit":1,"offset":1}' --json copy
chroma.chroma_get_health Read read Check the health status of the Chroma vector database server. Returns heartbeat and version information.
none kosmo integrations:call chroma.chroma_get_health '{}' --json copy kosmo integrations:chroma chroma_get_health '{}' --json copy Function Schemas Use these parameter tables when building CLI payloads without calling integrations:schema first.
Operation Read read
Schema command kosmo integrations:schema chroma.chroma_list_collections --json
Operation Read read
Schema command kosmo integrations:schema chroma.chroma_get_collection --json
Operation Write write
Schema command kosmo integrations:schema chroma.chroma_create_collection --json
Operation Write write
Schema command kosmo integrations:schema chroma.chroma_add_documents --json
Operation Read read
Schema command kosmo integrations:schema chroma.chroma_query_documents --json
Operation Read read
Schema command kosmo integrations:schema chroma.chroma_get_document --json
Operation Read read
Schema command kosmo integrations:schema chroma.chroma_get_health --json Permissions
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.