Memory
Turn on memory so that an agent can search its files and remember useful facts from earlier threads.
With memory, an agent can:
- search its knowledge files and your shared files when it answers
- search records in an app, when you turn on Memory in the app settings
- remember useful facts from earlier threads, for example a preference of your team
- use notes from a shared thread in later threads with the same agent
Memory is off until you add an embedding model to the agent. An embedding model makes a search index of the text.
Turn on memory for an agent
Before you start
You need a provider that has embedding models, for example OpenRouter or OpenAI. On the Models & providers tab, the provider must show embedding in its list of types.
- Open the agent and select the Settings tab.
- In the Advanced section, find Embeddings.
- Select Add Embedding.
- In Key, select Index.
- Select the Provider and the Model, for example
openai/text-embedding-3-small. - Select Add.

Memory works only with the Index key. A different key does not turn on memory.
After you add the model, the Memory section shows. The agent starts to index its files.
Select the files to index
In the Memory section:
| Setting | Use |
|---|---|
| Knowledge base allowed extensions | File types in the knowledge files of the agent that memory indexes. The default is document types such as .md, .txt, .pdf, and .docx. |
| User files allowed extensions | File types in your shared files and thread files that memory indexes. |
Index shared/ | Include your shared files. |
Index workbenches/ | Include the files of your threads. |
| Skip nested git repositories | Do not index folders that are git repositories, for example code that the agent cloned. |
Add code or data file types only if you want the agent to search them.
Skip a folder
To keep a folder of files but stop memory from indexing it, select Don't remember files in this folder on the folder. See Stop memory from using a folder.
App data
If an app keeps records, you can let the agent search those records. Open the app, select Settings, then turn on Memory. Tick the tables the agent should search, then select Save. See App settings.
When memory is on, the agent can also find these records on the first message of a new thread.