Quickstart
Recallr stores what users tell your agent, keeps it current as their lives change, and hands back a compact, prompt-ready context block when you ask. This page takes you from an API key to your first recall in a few minutes.
Get an API key
Sign in to the console, open API keys and create a key. The full key is shown once; store it in your secret manager. Keys can be tenant-wide (pass any user id) or bound to a single end user, which is what you want for desktop MCP clients.
export RECALLR_URL="https://your-recallr-host"
export RECALLR_API_KEY="rk_..."Send conversation turns
Post turns as they happen. user_id and session_id are your own identifiers. Re-sending a
turn with the same turn_id in the same session is a no-op, so retries are safe.
curl -X POST "$RECALLR_URL/v1/users/user-42/turns" \
-H "Authorization: Bearer $RECALLR_API_KEY" -H "Content-Type: application/json" \
-d '{"session_id": "chat-1", "turns": [
{"turn_id": "t1", "role": "user", "content": "I live in Pune and work at Acme.",
"ts": "2026-01-10T09:00:00Z"},
{"turn_id": "t2", "role": "user", "content": "I moved to Berlin last month!",
"ts": "2026-04-12T18:30:00Z"}]}'The response lists the background job that extracts and consolidates memories. It usually
finishes within seconds; poll GET /v1/jobs/{id} if you need to wait.
Recall before you answer
curl -X POST "$RECALLR_URL/v1/users/user-42/search" \
-H "Authorization: Bearer $RECALLR_API_KEY" -H "Content-Type: application/json" \
-d '{"query": "Where do I live?", "token_budget": 800}'The response has two views of the same result:
context: a block ready to paste into your system prompt, grouped by person or place, each line tagged with its memory id, validity and number of source turns.memories: structured memories withvalid_from,valid_to,source_turn_ids, the fusedscoreand which retrievers found them.
Use the Python SDK
pip install recallrfrom recallr import Recallr, Turn
client = Recallr() # reads RECALLR_API_KEY and RECALLR_BASE_URL
result = client.add_turns("user-42", "chat-1", [
Turn(turn_id="t3", role="user", content="My sister Priya just started at Shopify."),
])
client.wait_for_job(result.job_ids[0])
found = client.search("user-42", "What does my sister do?", token_budget=800)
print(found.context)AsyncRecallr offers the same methods as coroutines.
Ask about the past
Relative dates in the query resolve against as_of (default: now), and only memories valid in
that window are returned.
client.search("user-42", "Where did I live in March?")
client.search("user-42", "Where do I live?", as_of=datetime(2026, 2, 1, tzinfo=UTC))See Time and validity for the rules.
Forget
client.delete_memory(memory_id) # one memory and its earlier versions
client.erase_user("user-42") # everything about the user, asynchronouslyRun it yourself
git clone https://github.com/tiju07/recallr && cd recallr
make up # Postgres, API, worker, MCP server, web app, Jaeger
make seed # create a console accountWithout ANTHROPIC_API_KEY the stack runs with an offline rule-based model, fine for trying the
API but much less capable than the real extractor.