Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

Chroma CLI

$ chroma Official Med Risk
Chroma · Database & Data · Apache-2.0 · macos / linux / windows

Included 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).

FCRS-1.0 Score
76 /100
Good
Medium Confidence
Zero-Friction Install
pip install chromadb
CLI vs MCP Decision Hybrid (CLI + MCP)

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

— JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 17 / 25

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-vars works headlessly; chroma browse is TUI-only and no --json flag
Trust & Safety 19 / 25

Uses scoped CHROMA_API_KEY / tenant credentials and confirmation on destructive cloud deletes, though it lacks --dry-run.

  • Tenant-scoped API keys; no --dry-run flag
Setup & Portability 12 / 15

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
Utility & Efficiency 13 / 15

Convenient for spinning up local vector stores (chroma run --path ...) and configuring .env credentials.

  • Combines local server hosting and Chroma Cloud provisioning
Maintenance & Lineage 8 / 10

Official chroma-core/chroma CLI under Apache-2.0.

  • Official Chroma repository under Apache-2.0
Docs & Verifiability 7 / 10

CLI guide documented at docs.trychroma.com/docs/cli/install and --help.

  • Official CLI docs at docs.trychroma.com

Security, Auth & Guardrails

Auth Modes
OAuth Browser Env API Key Config File
Credential Storage

chroma login stores Chroma Cloud profiles locally; chroma db connect emits CHROMA_API_KEY, CHROMA_TENANT, and CHROMA_DATABASE env vars.

Side Effects
Read-Only Local Write Remote Write Destructive Billing Impact
Cost & Quotas

Apache-2.0 open-source local server/CLI; Chroma Cloud hosted databases incur vendor charges.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

List Chroma Cloud databases
chroma db list

Lists provisioned databases under the active authenticated Chroma Cloud profile.

Print env vars for a Chroma Cloud database
chroma db connect my-vectors --env-vars

Outputs CHROMA_API_KEY, CHROMA_TENANT, and CHROMA_DATABASE environment variables.

Controlled Writes & Previews

Create a new Chroma Cloud database
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-vars cleanly outputs CHROMA_* environment variables for app integration.

Caveats & Pitfalls

  • ! No --json output mode on chroma db list or collection inspection, and chroma browse requires a TTY.
  • ! Installing chromadb pulls substantial Python dependencies just to obtain the CLI.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI