---
title: "Logfire Python Observability SDK for LLM and Agent Tracing"
description: "Logfire is Pydantic's observability SDK for Python applications, with first-class tracing for AI, LLM, and agent workloads. It wraps OpenTelemetry, ships with a hosted UI, and supports instrumenting popular Python frameworks without building a custom tracing stack from scratch."
verification: "security_reviewed"
source: "https://github.com/pydantic/logfire"
author: "pydantic"
publisher_type: "Company"
category:
  - "Monitoring & Alerts"
framework:
  - "Multi-Framework"
tool_ecosystem:
  github_repo: "pydantic/logfire"
  github_stars: 4161
---

# Logfire Python Observability SDK for LLM and Agent Tracing

Logfire is Pydantic's observability SDK for Python applications, with first-class tracing for AI, LLM, and agent workloads. It wraps OpenTelemetry, ships with a hosted UI, and supports instrumenting popular Python frameworks without building a custom tracing stack from scratch.

## Prerequisites

python, pip, go, rust

## Installation

Choose whichever fits your setup:

1. Copy this skill folder into your local skills directory.
2. Clone the repo and symlink or copy the skill into your agent workspace.
3. Add the repo as a git submodule if you manage shared skills centrally.
4. Install it through your internal provisioning or packaging workflow.
5. Download the folder directly from GitHub and place it in your skills collection.

Install command or upstream instructions:

```
pip install logfire
```

## Documentation

- https://logfire.pydantic.dev/docs/

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/logfire-python-observability-sdk-llm-agent-tracing/)
