Guides
Multi-user SaaS Memory
Architect memory for SaaS products with thousands of users.
Tenant isolation
Always scope by your internal userId:
memory.store({
userId: req.user.id, // your auth system's user ID
appId: 'production',
text: '...'
})Per-workspace memory
Use appId for workspace or team isolation:
memory.store({
userId: userId,
appId: `workspace_${workspaceId}`,
text: '...'
})Rate limits
See Rate Limits for per-plan API limits. Implement client-side retry with exponential backoff.