Skip to main content
Tenant-scoped MemoryOS with OpenAI. The pattern is: write memories as facts emerge, retrieve before every model call, prepend system_prompt_addition only when not in passthrough.
Key rules:
  • Keep MEMORYOS_API_KEY server-side
  • Don’t fail the LLM call when MemoryOS is in passthrough
  • Treat system_prompt_addition as optional — the call should work with or without it
For the cross-agent Memory Passport flow, see Cross-agent memory sharing.