Chroma CLI
$ chroma Official Med RiskIncluded with chromadb, the chroma CLI starts persistent local vector servers (chroma run), opens an interactive terminal browser (chroma browse), and creates/connects Chroma Cloud databases (chroma db create, chroma db connect --env-vars).
pip install chromadb Use chroma CLI for server startup (chroma run) and cloud DB provisioning, while Python/TS SDKs or Chroma MCP servers are better for querying vector embeddings.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Supports scriptable db subcommands (db create, db connect --env-vars, db list), but lacks --json output and chroma browse is an interactive TUI.
chroma db connect --env-varsworks headlessly;chroma browseis TUI-only and no--jsonflag
Uses scoped CHROMA_API_KEY / tenant credentials and confirmation on destructive cloud deletes, though it lacks --dry-run.
- Tenant-scoped API keys; no
--dry-runflag
Bundled with pip install chromadb across macOS, Linux, and Windows, though chromadb pulls heavy ML/embedding dependencies.
- Available via
pip install chromadb; heavy Python dependency tree
Convenient for spinning up local vector stores (chroma run --path ...) and configuring .env credentials.
- Combines local server hosting and Chroma Cloud provisioning
Official chroma-core/chroma CLI under Apache-2.0.
- Official Chroma repository under Apache-2.0
CLI guide documented at docs.trychroma.com/docs/cli/install and --help.
- Official CLI docs at docs.trychroma.com
Security, Auth & Guardrails
chroma login stores Chroma Cloud profiles locally; chroma db connect emits CHROMA_API_KEY, CHROMA_TENANT, and CHROMA_DATABASE env vars.
Apache-2.0 open-source local server/CLI; Chroma Cloud hosted databases incur vendor charges.
# Chroma CLI (chroma) Agent Rules - Never run `chroma browse` from a non-TTY agent shell (it launches an interactive TUI). - Remember `chroma run` starts a foreground HTTP server on port `8000`. - Confirm database names before calling `chroma db delete`.
Agent-Ready Command Recipes
Safe Read-Only Queries
chroma db list
Lists provisioned databases under the active authenticated Chroma Cloud profile.
chroma db connect my-vectors --env-vars
Outputs CHROMA_API_KEY, CHROMA_TENANT, and CHROMA_DATABASE environment variables.
Controlled Writes & Previews
chroma db create my-vectors
Provisions a new vector database named my-vectors in your active Chroma Cloud tenant.
Strengths for Agents
- +
chroma run --path <dir>spins up a persistent local vector database server in one command. - +
chroma db connect --env-varscleanly outputsCHROMA_*environment variables for app integration.
Caveats & Pitfalls
- ! No
--jsonoutput mode onchroma db listor collection inspection, andchroma browserequires a TTY. - ! Installing
chromadbpulls substantial Python dependencies just to obtain the CLI.