# Crewai memory using other downloaded ollama model rather than openai api key

**URL:** <https://community.crewai.com/t/crewai-memory-using-other-downloaded-ollama-model-rather-than-openai-api-key/6447>\
**Category:** CrewAI Community Support\
**Tags:** memory\
**Created:** [July 2, 2025, 8:44am UTC](https://community.crewai.com/t/crewai-memory-using-other-downloaded-ollama-model-rather-than-openai-api-key/6447 "2025-07-02T08:44:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Somil\_yadav](https://avatars.discourse-cdn.com/v4/letter/s/ea666f/32.png) [@Somil\_yadav](https://community.crewai.com/u/Somil_yadav)\
**Post date:** [July 2, 2025, 8:44am UTC](https://community.crewai.com/t/crewai-memory-using-other-downloaded-ollama-model-rather-than-openai-api-key/6447/1 "2025-07-02T08:44:12Z")

</div>

How to add long term memory using sqlite as I only have ollama phi4 model downloaded in my system , as it is giving error to use only openai key for memory ?
