Give your AI the same memory
in every session and agent
MemorySync keeps what each user tells your AI, and brings it back in every future session. Add it with two API calls, or one plugin.
No signup needed to try it. Open the playground
Works with your AI stack
Add memory in two API calls
Save what a user tells your AI. Search it in any later session.
# Step 1: Install the SDK. Run this in your terminal, not in Python:## pip install memorysync## Step 2: Save this file as memorysync_quickstart.py and run: python memorysync_quickstart.pyimport osfrom memorysync import MemorySyncClient
client = MemorySyncClient( # Set your API key (get one at https://app.memorysync.io/api-keys) api_key=os.getenv("MEMORYSYNC_API_KEY", "your-api-key"), base_url="https://api.memorysync.io", # Your user's ID. The client sends it with every add and search below, # so each user only gets their own memories back. end_user_id="user_123",)
# Add a memoryclient.add("I am vegetarian and allergic to peanuts.")
# Search memoriesresults = client.query("Is pad thai okay for me?")for memory in results.memories: print(memory.text)Before and after
Same question, same model
One difference: memory
Every example starts a new chat. Switch memory on to see what MemorySync brings back from earlier chats, and how the answer changes.
MemorySync
New chat · no chat history
Support that knows the last order
MemoryON
Switch it off to see the same AI with nothing to go on.
Support chat
New sessionMy order arrived damaged again.
Recalled 3 memories in 246 ms
I'm sorry, that's the second damaged order in a row1. Last time the box was crushed2, so I've asked for extra packaging and sent your replacement by express delivery3.
Recalled from earlier chats
Order arrived damaged last week
Last week
Box was crushed
Last week
User prefers express delivery for replacements
Last week
With memory: I'm sorry, that's the second damaged order in a row. Last time the box was crushed, so I've asked for extra packaging and sent your replacement by express delivery.
Memory that shows its work
Watch a 380-token chat become 55 tokens of memories, an answer trace back to the memory behind it, and two hotel guests’ memories stay apart.
maya chats with a study coach. As each message arrives, MemorySync saves short memories such as “Exam on 2026-03-14 for AWS Solutions Architect” and “Networking is a weak spot”. After eight messages the whole chat is 380 tokens, and the eight memories that replace it are 55.
The prompt stops growing with the chat
MemorySync distills every message into short memories as it arrives. The next message sends those instead of the whole history, and the prompt stays small however long the chat runs.
380 → 55 tokens in this chat
Benchmarking MemorySync
Connected memory that stays relevant over time. Recall that understands every query in context. Measured on LongMemEval and LoCoMo.
LongMemEval
500 questions · 6 categories
94.8%
1 square = 1%
Single-session (user): Recalls what the user said in one chat
96.4
Single-session (assistant): Recalls what the assistant said in one chat
99.2
Single-session (preference): Uses the preferences the user shared
89.8
Knowledge update: Answers with the latest value of a fact
98.5
Temporal reasoning: Works out when things happened
91.6
Multi-session: Combines details from several chats
93.3
Mean tokens 854
LoCoMo
1,540 questions · 5 categories
92.1%
1 square = 1%
Single-hop: Finds an answer said in one place
94.3
Multi-hop: Connects facts from different sessions
93.6
Temporal: Knows when something happened
86.9
Open-domain: Mixes what was said with general knowledge
91.8
Mean tokens 1,189
Enterprise-grade security
from the first memory
Isolation for every customer, single sign-on with SCIM, and a record of who read or changed what. The controls enterprise teams ask for, built in.
Tenant isolation
Scoped to an organization, project and end user. Never retrievable through another customer’s credentials.
Identity and access
Single sign-on through SAML and OIDC, SCIM provisioning, and roles for read, write and admin access.
Audit trail and keys
Access and administrative changes are recorded. API keys are stored hashed and can be rotated or revoked.
Your memories remain yours. We do not train models on your data, and you can export or delete it on request.
Security detailsBlogs
New on the MemorySync blog
Build AI that picks up
where it left off
Start free with 10,000 add requests a month and no credit card. SSO, SCIM and audit logs come with every plan, Free included.

















