# I want to use the local LLM via Ollama, but I'm facing some issues. It keeps asking me for the OpenAI API key

**URL:** https://community.crewai.com/t/i-want-to-use-the-local-llm-via-ollama-but-im-facing-some-issues-it-keeps-asking-me-for-the-openai-api-key/3475
**Category:** CrewAI Community Support
**Tags:** crewai, agent
**Created:** [February 3, 2025, 7:43am UTC](https://community.crewai.com/t/i-want-to-use-the-local-llm-via-ollama-but-im-facing-some-issues-it-keeps-asking-me-for-the-openai-api-key/3475 "2025-02-03T07:43:42Z")
**Posts on this page:** 1
**Showing post:** 7

<div class="post-metadata">

### Author: ![Saeed\_Kasmani](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/saeed_kasmani/32/2396_2.png) [@Saeed\_Kasmani](https://community.crewai.com/u/Saeed_Kasmani)
#### Post date: [February 22, 2025, 1:01pm UTC](https://community.crewai.com/t/i-want-to-use-the-local-llm-via-ollama-but-im-facing-some-issues-it-keeps-asking-me-for-the-openai-api-key/3475/7 "2025-02-22T13:01:04Z")

</div>

Hi @Renato_Guilherme,  
Thanks for your reply. i think there is an issue with using crewai, ollama and pydantic. I requested for help. and shared my code!

> [@Using crewai, ollama, and pandantic](https://community.crewai.com/t/using-crewai-ollama-and-pandantic/4084):
>
> I am using crewai, ollama, pandantic. But I am getting these error and it is frusttating. here is my codes: main.py #!/usr/bin/env python import sys import warnings from dotenv import load\_dotenv load\_dotenv(‘creds.env’) # Adjust path if needed from resume\_crew.crew import ResumeCrew warnings.filterwarnings(“ignore”, category=SyntaxWarning, module=“pysbd”) def run(): “”" Run the resume optimization crew. “”" inputs = { ‘job\_url’: ‘[Jobs | Careers | McKinsey & Company](https://www.mckinsey.com/careers/search-jobs/jobs/associate-15178)’, ‘company\_n…

---

_[View the full topic](https://community.crewai.com/t/i-want-to-use-the-local-llm-via-ollama-but-im-facing-some-issues-it-keeps-asking-me-for-the-openai-api-key/3475)._
