Developers
Store. Recall.That’s the API.
Python and TypeScript SDKs over a small REST API. Self-hosted, one config file, no LLM to provision.
A real session through the published recallix package. Responses shown as returned; “…” marks omitted fields. Sound: “Swoosh.wav” by Brsjak (freesound), CC BY 4.0.
import osfrom recallix import Memory mem = Memory(api_key=os.environ["RECALLIX_API_KEY"]) mem.store("My name is Priya and I live in Pune.")out = mem.recall("Where do I live?") print(out["status"]) # CONSISTENT, ABSTAINED or NO_MATCHfor m in out["memories"]: print(m["content"], m.get("answer"), m["explain"]) # Tell Recallix which results helped — this trains the ranker.mem.feedback(out["recall_id"], [out["memories"][0]["id"]])status is CONSISTENT when a memory answers, ABSTAINED when matching memories exist but none answers the question, and NO_MATCH when nothing matches.
Many users, many agents
Built for products, not demos.
A user key always acts as its own user. A service key can act for any of your end users — each gets a separate index. Mark a memory shared to make it visible to all of that user’s agents, or keep it private to one.
# A service key may act for its end users.app = Memory(api_key=os.environ["RECALLIX_SERVICE_KEY"]) app.store( "Prefers vegetarian food.", user_id="customer-42", agent_id="concierge", memory_type="shared",)app.recall( "Any dietary preferences?", user_id="customer-42", agent_id="booking",)Beyond the API
Portable. Testable. Yours.
01
Plug into any MCP client
Claude Desktop, Cursor and other Model Context Protocol clients get recall, store, confirm, forget and export tools — backed by the same memory as your app.
"mcpServers": {
"recallix": {
"command": "recallix-mcp",
"env": {"RECALLIX_API_KEY": "rx_...",
"RECALLIX_AGENT_ID": "cursor"}
}
}02
Move your memory
Export everything in an open format, or bring memories with you from a Mem0 export or a plain list. Imports keep their original timestamps.
# export everything in the open "recallix-memory" format
data = mem.export()
other.import_memories(data)
mem.import_memories(mem0_export, format="mem0")
mem.import_memories("I live in Pune.
I'm vegetarian.",
format="text")03
Test what it remembers
Deterministic memory means deterministic tests: assert what your agent must remember, and must not invent, on every pull request.
- name: remembers allergies, not other people's
store:
- "I'm allergic to peanuts."
expect:
- recall: "What am I allergic to?"
top_contains: peanuts
- fact: user::allergy
contains: peanuts
$ python -m backend.tools.memtest tests/memory/*.yaml04
Know when to trust an answer
Every recalled memory carries a trust score: a probability that it answers the question. Answer, hedge or ask. Calibration differs between kinds of conversation, so recalibrate it on your own confirmed answers; the receipt says which calibration a score carries. And when a message changes a fact you already know, the store response tells you.
out = mem.recall("Where do I live?")
top = out["memories"][0]
if (top.get("trust") or 0) < 0.5:
... # hedge, or ask the user
out["receipt"]["trust_calibration"]
# {"source": "this deployment", "n": 120, ...}
$ python -m backend.tools.calibrate_trust --from-db
res = mem.store("I moved to Mumbai.")
res["conflicts"]
# [{"fact": "user::location", "previous_value": "Pune",
# "previous_said_at": ..., "new_value": "Mumbai"}]05
Remind without being asked
Agents rarely know when to look something up. Pass what the user just said and get back the facts worth keeping in mind, each with the reason. Small talk returns nothing. Also available as an MCP tool.
mem.proactive("Book a table at the Thai place tonight")
# [{"content": "I'm allergic to peanuts.",
# "fact": "user::allergy", "value": "peanuts",
# "why": "the message is about eating or ordering
# food; this is a known allergy"}]06
Delete with proof
Deleting a memory removes every copy derived from it, checks each store and returns a receipt. Receipts are chained by hash, so any later edit to the log shows up, and the log never keeps the deleted content.
receipt = mem.delete(42)["receipt"]
receipt["all_copies_gone"] # True
receipt["verified_absent"]
# {"memory": True, "full_text_index": True,
# "long_term_copy": True, "timeline_entry": True,
# "vector": True, ...}
$ python -m backend.tools.audit verify07
Let it find its own bugs
The memory fuzzer turns every stored fact into tests: ask it another way, ask about a stranger, change it. Failures are written out as memory tests you can keep in CI.
$ python -m backend.tools.fuzz --spec tests/memory/example.yaml \
--write-failures tests/memory/fuzz_failures.yaml
4 facts -> 12 generated cases
ask 5/5 passed
someone 3/3 passed
change 4/4 passedSet up
Running in four steps.
Step 1
Run it (Docker)
git clone https://github.com/AyishikD/Recallix && cd Recallix docker compose up -d # vector engine + API on localhost:8000
Step 2
Get your keys
docker compose logs recallix | grep -A1 "admin API key" # printed once docker compose exec recallix python -m backend.tools.keys create --user alice
Step 3
Install the SDK
pip install recallix # Python 3.9+, includes recallix-mcp npm install recallix # TypeScript / Node 18+
Step 4
Without Docker
pip install -r requirements-local.txt python -m backend.tools.get_engine # prebuilt engine (or build it with cmake) python -m backend.tools.setup_env && set -a; source .env; set +a ./backend/infra_cpp/build/memory_service & python server.py
Embeddings come from Ollama, sentence-transformers in-process, or any OpenAI-compatible endpoint — set models.embedding_provider in config.yaml.
Reference
Endpoints.
/memory/storeStore a message. Facts, topic and importance are computed for you./memory/recallRanked memories with status, explanations and the answer span./memory/feedbackMark useful results; used to refit the ranker./memory/{id}Removes the memory, its vector and its timeline entry./memory/timelineWhat was stored, in order./memory/world-stateLatest known facts about the user./memory/insightsReflections written by the background job./memory/statsCounts for the dashboard.Give your agents a memory.
Free to self-host. Source available. A few lines of code.