Prerequisites:
- Node.js 18+ or Python 3.10+
- Valid Moss project credentials (
MOSS_PROJECT_ID,MOSS_PROJECT_KEY) - JS:
@moss-dev/moss; Python:moss
1
Install
2
Configure credentials
From the Moss portal, copy your project credentials. Set them as env vars:
3
Create and query an index
Save and run
npx tsx quickstart.ts or python quickstart.py):Example output
Next steps
You just created a cloud index and queried it. Moss does much more:Core concepts
Indexes, embeddings, retrieval, sessions, and sync in one place.
Sessions
Local-first, real-time indexing during a live interaction.
Hybrid search
Blend semantic and keyword scoring with
alpha.Metadata filtering
Narrow results with
$eq, $in, $near, and more.Custom embeddings
Bring your own vectors instead of the built-in model.
Multi-index search
Query several indexes at once for a global top-K.
Data hydration & sync
Hydrate on-device indexes and keep them fresh.
SDK Overview
Full per-language API: Python, JavaScript, Swift, Elixir, Browser, C.