// agents · pydantic/logfire

logfire

logfireは、pydanticが公開しているオープンソースのAIエージェントプロジェクトです(GitHub: pydantic/logfire)。GitHubスターは4,510、フォークは309で、MITライセンスの下で公開されています。GitHubでの最終更新は2026年10月8日です。

Pydantic Logfire: Python and AI observability on OpenTelemetry — SQL-queryable traces, metrics, and logs

★ 4.5k スター⑂ 309 フォークMIT更新 2026年10月
▦ ビジュアル — このプロジェクトのREADMEには埋め込み可能なスクリーンショットがないため、
ここではプレースホルダーを表示しています。下のガイド自体は完全な内容です。
// プロジェクトの基本情報

プロジェクト基本情報

リポジトリ
pydantic/logfire
GitHubスター
4,510
フォーク
309
ライセンス
MIT
GitHubでの最終更新
2026年10月8日
掲載タイプ
完全なインストールガイド
公式サイト
Official site
// 仕組み

仕組み

  1. Decide your backend

    Use the Logfire cloud platform (free tier available) or export OpenTelemetry data to another backend.

  2. Install and authenticate

    Install the SDK from PyPI and run the auth command if you will send data to Logfire.

  3. Configure in code

    Call logfire.configure() in your application entry point.

  4. Instrument and inspect

    Add auto-instrumentation (for example for FastAPI) and view your first trace as a structured, queryable timeline.

// 機能

選ばれる理由

OpenTelemetry foundation

Built on OTel, so data can also flow to any OTel-compatible backend — no proprietary agent.

SQL-queryable observability

Query traces, metrics, and logs with plain SQL instead of a bespoke query language.

Python-object rich display

Data is shown as rich Python objects rather than flattened JSON strings.

One-call auto-instrumentation

Instrument frameworks such as FastAPI with calls like logfire.instrument_fastapi(app).

AI and agent observability

Purpose-built views and evals for LLM calls and agent behavior.

Pydantic validation analytics

See how your Pydantic models validate in production, from the team behind Pydantic itself.

Advertisement
// 自分で実行

自分で実行してみる

  1. Clone the repository

    Clone the project and enter its directory (most users install from PyPI instead).

    git clone https://github.com/pydantic/logfire.git
    cd logfire
  2. Install and authenticate

    Install the SDK and authenticate with the Logfire platform.

    pip install logfire
    logfire auth
  3. Configure and instrument

    Add configuration and auto-instrumentation to your app, then run it and open the Logfire UI.

    import logfire
    logfire.configure()
    logfire.instrument_fastapi(app)
// 活用例

作れるもの

Advertisement
// よくある質問

よくある質問

Who maintains Logfire?

Pydantic — the team behind the Pydantic data-validation library and Pydantic AI.

Is Logfire free?

The Python SDK in this repo is MIT-licensed and free. The hosted platform has free and paid tiers per the README, its backend is closed source, and self-hosting the platform requires an enterprise license.

Does it need a paid API key?

No paid key is required to start: the SDK is free, the cloud has a free tier, and you can export to any OpenTelemetry backend instead.

How does it compare to LangSmith or generic APM tools?

Logfire is OpenTelemetry-native and SQL-queryable, spans general Python observability (not only LLMs), and renders data as Python objects; LangSmith focuses on LLM tracing within its own platform.

How do I get started?

Run `pip install logfire`, `logfire auth`, add `logfire.configure()` to your app, and instrument your framework.

// さらに探索

似ているツール

AIエージェント

openllmetry

OpenTelemetry-native observability for LLM apps.

★ 7.5k スターApache-2.0
ガイドを見る →
AIエージェント

RagaAI-Catalyst

Python SDK for Agent AI Observability, Monitoring and Evaluation Framework. Includes features like agent, llm and tools tracing, debugging multi-agentic syst…

★ 16.2k スターApache-2.0
ガイドを見る →
AIエージェント

ragas

Supercharge LLM app evaluations with objective metrics, synthetic test data and feedback loops.

★ 16.0k スターApache-2.0
ガイドを見る →
AIエージェント

magentic

Use LLMs as plain Python functions: prompts become typed, testable code.

★ 2.4k スターMIT
ガイドを見る →
AIエージェント

nocturne_memory

Nocturne_memory, in Python — built for a lightweight, rollbackable, and visual long-ter...

★ 1.4k スターMIT
ガイドを見る →
AIエージェント

griptape

Modular Python framework for AI agents and workflows with tools and memory.

★ 2.6k スターApache-2.0
ガイドを見る →
// 代替候補

代替候補: AIエージェント

LibreAIカタログに掲載されたAIエージェントプロジェクトの中で最もスターの多いもの — logfireが合わなかった場合に検討したい、現実的な候補リストです。

// さらに見る agents

さらに見る: AIエージェント

カタログの中でlogfireとスター数が近いAIエージェントプロジェクト — 前後の棚もそのまま見て回れます。

logfireを入手する

無料でオープン — ソースコードを入手して、リポジトリにスターを付け、作り始めましょう。