Skip to main content
The opt-in examples/mem0-openai project runs the real Mem0 OSS client and OpenAI Responses API. Normal Engram tests never invoke this paid integration.

Requirements

  • OPENAI_API_KEY
  • An explicit OPENAI_MODEL
  • Engram Studio running locally

Run the example

From the Engram repository:
In another terminal:
The script stores San Francisco, applies an Oakland correction, retrieves memories, explicitly reports the records loaded into context, and asks OpenAI for the current city.
Use a developer-owned API key through the environment. Never commit credentials to the example, .engram configuration, or a regression artifact.
The example uses store: false for the OpenAI response and keeps Mem0’s local .mem0 data outside version control.