Code examples for integrating StudioMeyer Memory into your AI agents.
| File | Language | Description |
|---|---|---|
| 01-basic-usage.py | Python | Sign up, store memories, search, create entities |
| 02-langchain-integration.py | Python | LangChain tools with persistent memory |
| 03-crewai-integration.py | Python | CrewAI multi-agent shared memory |
| 04-typescript-basic.ts | TypeScript | Basic REST API usage with fetch |
| 05-import-chatgpt.py | Python | Import ChatGPT history |
| 06-sdk-usage.py | Python | Official SDK usage (requires pip install nex-memory) |
# 1. Get your API key
curl -X POST https://memory.studiomeyer.io/api/signup \
-H "Content-Type: application/json" \
-d '{"email": "you@example.com"}'
# 2. Run an example
export NEX_API_KEY="nex_your_key"
python 01-basic-usage.pyFor Claude Desktop, Cursor, or VS Code:
{
"mcpServers": {
"memory": {
"url": "https://memory.studiomeyer.io/mcp"
}
}
}- TypeScript:
npm install @studiomeyer/memory-sdk - Python:
pip install nex-memory
MIT — use these examples however you like.