---
title: "Ollama Integration"
sidebar:
  label: "Ollama"
seo:
  title: "Ollama Integration with Judgment | Model Provider Docs"
  description: "Use Judgment with Ollama to capture model calls, trace agent behavior, and evaluate production AI systems."
---

{/* @test-flow
  id: provider-ollama
  lang: python
  env: JUDGMENT_API_KEY, JUDGMENT_ORG_ID
  skip: Requires running Ollama server
*/}

If you use Ollama within your application, you can trace, monitor, and analyze them with **Judgment** using [OllamaInstrumentor](https://pypi.org/project/opentelemetry-instrumentation-ollama/).

1. ### OpenTelemetry

    ```bash
    pip install opentelemetry-instrumentation-ollama
    ```

    ```python
    from judgeval import Tracer
    # Make sure you installed the dependency: opentelemetry-instrumentation-ollama
    from opentelemetry.instrumentation.ollama import OllamaInstrumentor

    Tracer.init(project_name="ollama_project")
    Tracer.registerOTELInstrumentation(OllamaInstrumentor())
    ```

> **Info**
>
> Ollama allows you to run large language models locally. This instrumentation
> automatically traces all Ollama API calls.
