Public reference examples for storing and querying one memory with cURL, Python, or TypeScript.
MemorySync is closed-source software. This repository does not publish or license the MemorySync platform, service implementation, backend, infrastructure, or SDK source code. It contains only small integration examples that use the documented public API and released SDK packages.
Create a MemorySync project and a server-side API key, then set:
MEMORYSYNC_KEY=<server-side API key>
MEMORYSYNC_PROJECT_ID=<project id>
MEMORYSYNC_BASE_URL=https://api.memorysync.io
Keep API keys on the server and out of source control. The examples use starter-user as a synthetic end-user ID; replace it with a stable, non-sensitive identifier from your application.
python -m venv .venv
.venv\Scripts\python -m pip install -r requirements.txt
.venv\Scripts\python python.pynpm ci
npm run type-checktypescript.ts is intended for a Node.js 18+ application. Dependencies are pinned in the lockfile.
first-memory.cmdThe add call returns a stored-memory or skipped result. The query call returns matching memories. See the first-memory guide, authentication guide, and production checklist.
This is a maintained reference repository, not an open-source project, and external contributions are not accepted. For help, see SUPPORT.md. Report vulnerabilities only through the private route in SECURITY.md. Use of MemorySync remains subject to the MemorySync Terms.