# CrewAI not Working with Ollama

**URL:** <https://community.crewai.com/t/crewai-not-working-with-ollama/7307>\
**Category:** CrewAI Community Support\
**Created:** [January 21, 2026, 12:16am UTC](https://community.crewai.com/t/crewai-not-working-with-ollama/7307 "2026-01-21T00:16:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mindvision](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/mindvision/32/1799_2.png) [@Mindvision](https://community.crewai.com/u/Mindvision)\
**Post date:** [January 21, 2026, 12:16am UTC](https://community.crewai.com/t/crewai-not-working-with-ollama/7307/1 "2026-01-21T00:16:32Z")

</div>

I am trying to follow the steps that are mentioned here:

> **[Installation - CrewAI](https://docs.crewai.com/en/installation)**
>
> Get started with CrewAI - Install, configure, and build your first AI crew

but somehow its not able to work with ollama. I have already tried different python versions, different ollama models and different environments like pip and uv but still i am getting the same error message and i am not able to fix it.

```
raise Exception(f"An error occurred while running the crew: {e}")

```

Exception: An error occurred while running the crew: Fallback to LiteLLM is not available

An error occurred while running the crew: Command ‘[‘uv’, ‘run’, ‘run\_crew’]’ returned non-zero exit status 1.

---

<div class="post-metadata">

**Author:** ![Mindvision](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/mindvision/32/1799_2.png) [@Mindvision](https://community.crewai.com/u/Mindvision)\
**Post date:** [January 21, 2026, 12:32am UTC](https://community.crewai.com/t/crewai-not-working-with-ollama/7307/2 "2026-01-21T00:32:33Z")

</div>

I am getting the same error if I run simply this:

from crewai import LLM

llm = LLM(  
model=“ollama/llama3.1”,  
base\_url=“[http://localhost:11434](http://localhost:11434)”  
)

---

<div class="post-metadata">

**Author:** ![michaelcizmar](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/michaelcizmar/32/4718_2.png) [@michaelcizmar](https://community.crewai.com/u/michaelcizmar)\
**Post date:** [January 21, 2026, 4:48am UTC](https://community.crewai.com/t/crewai-not-working-with-ollama/7307/3 "2026-01-21T04:48:47Z")

</div>

There’s been a change with respect to LiteLLM as noted in this [issue](https://github.com/crewAIInc/crewAI/issues/3811).

You probably need to add it explicitly like:

```auto
uv add litellm
uv sync
uv run run_crew

```

and you can directly test it being available via:

```auto
uv run python -c "import litellm; print('litellm ok')"

```

---

<div class="post-metadata">

**Author:** ![Mindvision](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/mindvision/32/1799_2.png) [@Mindvision](https://community.crewai.com/u/Mindvision)\
**Post date:** [January 21, 2026, 6:29am UTC](https://community.crewai.com/t/crewai-not-working-with-ollama/7307/4 "2026-01-21T06:29:08Z")

</div>

Thanks alot, with this the issue is resolved.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex025/uploads/crewai/original/1X/ecda97e72f77c7100e0a761444b1c991925cc789.png) [@system](https://community.crewai.com/u/system)\
**Post date:** [January 22, 2026, 6:29am UTC](https://community.crewai.com/t/crewai-not-working-with-ollama/7307/5 "2026-01-22T06:29:22Z")

</div>

Closed on January 22, 2026, 6:29am UTC

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
