[Feature Request]: Nano (XNO) payment support for metered usage via QuotaEnforcer
Describe the problem
Chroma Cloud bills usage across four dimensions — writes ($2.50/GiB), storage ($0.33/GiB/month), queries ($0.0075/TiB), and egress ($0.09/GiB) — and the open-source server exposes a QuotaEnforcer abstraction (chromadb/quota/) that hooks into every ADD, QUERY, UPSERT, GET, and DELETE action. For AI agents that call these operations at high frequency, per-operation metering creates micropayments that are uneconomical on credit cards or USDC due to per-transaction fees.
Describe the proposed solution
Add Nano (XNO) as a payment option for Chroma's metered usage, integrated through the existing QuotaEnforcer interface. Nano is fee-free (no per-transaction fee), settles in under a second (>99.9% in <1s), and is self-custodied (no issuer, no freeze). These properties make it the only crypto rail where per-query/per-embedding micropayments are economic.
Concretely:
A
NanoQuotaEnforcer(or payment-aware quota enforcer plugin) that implements the existingQuotaEnforcerabstract interface (chromadb/quota/__init__.py). Before allowing aQUERY,ADD, orUPSERT, it checks a payment context — either a pre-paid usage balance or an on-the-fly x402 payment — and callssuper().enforce()only when the payment is satisfied. The hook already exists; this adds a payment dimension to it.An optional usage-reporting callback so agents can track their metered usage (bytes written, queries executed, bytes returned) and reconcile against their Nano payments. The
Actionenum already names every operation (QUERY,ADD,UPSERT,GET,DELETE, etc.), so usage can be reported per-action-type without changing the API.For Chroma Cloud: accept Nano as a billing currency for the four metered dimensions. Agents that already hold XNO (e.g. via the OpenAI Agents SDK's Nano x402 payer — see
github.com/dhyabi2/openai-agents-nano-x402) can pay for Chroma Cloud usage without converting to USDC or a card, avoiding the fee erosion that makes sub-cent micropayments uneconomical today.
Alternatives considered
- USDC / EVM: the dominant agent-payments rail today (x402 on Base), but each transaction carries a gas fee that eats micropayments. A sub-cent query is uneconomical after gas.
- Credit cards: per-transaction fees and minimum charges make per-query billing impractical; billing is aggregated monthly instead.
- Do nothing: usage is billed monthly in aggregate, which works for humans but not for autonomous agents that need per-operation payment authority.
Importance
- i cannot use Chroma without it — for high-frequency agent workloads where each query should be paid for in real time by the agent itself, the absence of a fee-free micropayment rail means agents either bypass billing (no usage tracking) or pay more in fees than the query is worth. This is the gap that makes agentic RAG pipelines either unmonetized or uneconomical at scale.
Source: chroma-core/chroma