chroma-cloud

chroma-cloud is a skill for Claude Code, Codex from chroma-core/agent-skills. It costs 50 tokens per session (1,137 once invoked), scanned A, original, MIT.

A guide for using Chroma Cloud, a hosted service for storing and searching data by meaning as well as by words. It covers dense search, which compares meaning, and hybrid search, which combines meaning with keyword matching.

In plain words
What is it for?
Use it to set up Chroma Cloud, configure collections and embeddings, implement dense or hybrid search, and check TypeScript or Python integration details.
Why use it?
It helps avoid using the wrong Chroma client, missing cloud settings, or combining search options incorrectly when building a search application.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/chroma-core/agent-skills/chroma-cloud
Any agent
npx skills add chroma-core/agent-skills --skill chroma-cloud
Clone the repo
git clone --depth 1 https://github.com/chroma-core/agent-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for chroma-cloud

README.md
[![agentmods](https://agentmods.dev/badge/skills/chroma-core/agent-skills/chroma-cloud.svg)](https://agentmods.dev/skills/chroma-core/agent-skills/chroma-cloud)
Your own site
<a href="https://agentmods.dev/skills/chroma-core/agent-skills/chroma-cloud"><img src="https://agentmods.dev/badge/skills/chroma-core/agent-skills/chroma-cloud.svg" alt="Measured on agentmods" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,137 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00050 $0.01137
Opus 5 $0.00025 $0.00568
Sonnet 5 $0.00010 $0.00227
Haiku 4.5 $0.00005 $0.00114

Measured 6d ago against content hash 99f1a84cb924, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

chroma-cloud scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/chroma-cloud/SKILL.md · 88 lines

How it starts

The opening of the file, as written. The whole thing — 88 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Instructions

Intake

Do not block on a long questionnaire. Ask only for details that are missing and required to choose the right path:

  • Dense only or hybrid search
  • Whether CHROMA_API_KEY, CHROMA_TENANT, and CHROMA_DATABASE are already configured
  • Existing embedding choice, if any

If the user has no embedding preference, default to Chroma Cloud Qwen. If hybrid search is required, use Schema() and Search(). If the task is narrow, such as fixing an existing query, reviewing code, or answering an API question, proceed with the repo context instead of forcing intake.

What to validate

  • Correct client import (CloudClient vs Client)
  • Environment variables are set for Cloud deployments
  • Embedding function package is installed when the selected TypeScript embedding requires one
  • Schema() and Search() are only used for Cloud workflows
  • Important: get_or_create_collection() accepts either an embedding_function OR a schema, but not both. Use schema when you need multiple indexes, hybrid search, or sparse embeddings; use embedding_function for simple dense-only search.

Quick Start

Use the CLI topic to authenticate and write Cloud credentials:

chroma login
chroma db create <db_name>
chroma db connect <db_name> --env-file

Then create a CloudClient and choose the API based on the search mode:

import { CloudClient } from 'chromadb';

const client = new CloudClient();
const collection = await client.getOrCreateCollection({ name: 'my_collection' });

Use collection.query() for dense-only search. Use Schema() plus Search() only when the user needs hybrid retrieval, multiple indexes, or more expressive ranking/query composition.

Cloud Guidance

Collections are the main isolation boundary in Chroma Cloud, and metadata is the main filtering mechanism inside a collection. Reach for Schema() only when you need explicit dense+sparse or multi-index configuration, and reach for Search() only when query() is not expressive enough.

Read the full file on GitHub · 88 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 88 lines · 50 tokens per session scan A 99f1a84cb924

Subscribe to this mod's changes

chroma-cloud is a skill published in the GitHub repository chroma-core/agent-skills (21 stars, last pushed 4mo ago), licensed MIT. It adds 50 tokens to every session and 1,137 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.