Pydantic Logfire
by Pydantic
See what your app and AI agents do.
1. Price
“Every plan includes $20 of free usage a month: 10 million spans, logs, or metrics. After that, $2 per million on Team and Growth.”
Free tier: 10 million spans, logs, or metrics per month. As reported on the official pricing page, checked Oct 9, 2026.
pydantic.dev/pricing2. Commercial use
“Permission is hereby granted, free of charge, to any person obtaining a copy”
The MIT-licensed package can go into any app; the service is used on a paid or free plan under its terms.
github.com/pydantic/logfire/blob/main/LICENSE3. Key & sign-up
“If you do not want to use a CLI, set LOGFIRE_TOKEN to a write token from Project → Settings → Write tokens instead.”
Write token (sends data; saved by logfire-cli init or set as LOGFIRE_TOKEN); read token as Authorization Bearer for the query API
pydantic.dev/docs/logfire/get-started/first-trace/index.md4. Agent access
“Pydantic Logfire provides a hosted remote MCP server that you can use without installing anything locally.”
Our agent check: 4 of 6 (Nov 13, 2026).
pydantic.dev/docs/logfire/guides/mcp-server/index.mdChecked against the maker's official pages, pricing on Oct 9, 2026. Tap a verdict to see its source.How we checkedReport an error
What Pydantic Logfire does
Logfire is an online service from the makers of Pydantic that records what your app and its AI features do, step by step. When something is slow or breaks, you open the record and see which request, database query or AI call caused it. A few lines of code send the records; the free plan covers 10 million records a month.
- Pydantic Logfire is one of 25 APIs in the LLM observability and evals category on AgentGid.
- Its cheapest paid plan ($49 a month) is the 11th cheapest of the 17 here with a monthly plan.
- It is one of 23 that can be started for free.
- 8 of them ship an official MCP server; Pydantic Logfire does not.
- Its official SDK is the 2nd most downloaded in the category (4.3M a week).
What people build with it
See what your AI agent did
Read every AI model call your app made, with the full conversation, tool calls, tokens used and errors, to find out why an answer went wrong.
Know what your AI calls cost
Watch how many tokens and how much money each model and feature uses, before the monthly bill arrives.
Every request of your web app
Add two lines to a FastAPI, Django or Flask app and see each request, how long it took and any error.
Find slow database queries
See each database query your app runs, the exact query and how long it took, to spot the slow page.
Alerts when errors pile up
Get a message, for example in Slack, when the number of errors passes a limit you set.
Let your AI assistant read the logs
Connect your coding assistant to Logfire so it can look up the real errors and slow spots when you ask it to fix a bug.
Pydantic Logfire popularity
SDK downloads from npm and PyPI, weekly. Numbers as of Nov 17, 2026.
Pricing
10 million spans, logs, or metrics per month
$49 a month
$2 per million records
Added automatically: its SDK was in 11 of the public agent repos we sampled when it was added. Prices read from the official pricing page.
What one action costs
| Action | Price |
|---|---|
| 1 million records (spans, logs or metrics) after the free 10 million (Team, Growth) | $2 |
| 1 extra seat per month (Team) | $25 |
Price history
- A year of the pricing page in the Internet Archive (9 months): the lowest monthly figure went from $49 (2026-01) to $20 (2026-10).
- 2026-08: lowest $/month figure $49 → $20; new figures $20/mo
As reported on the official pricing page, checked Oct 9, 2026. Prices change: confirm before you buy. pydantic.dev/pricing
Limits
10 million records a month, hard cap; 3 projects; 30-day retention
Query API up to 500 requests a day (Personal, Team) or 5,000 (Growth)
100 MB per ingest request; 10 MB per span, log or metric point
From the official docs. pydantic.dev/pricing
Key and access
Write token (sends data; saved by logfire-cli init or set as LOGFIRE_TOKEN); read token as Authorization Bearer for the query API
LOGFIRE_TOKENNo
Steps only a person can do
- Create a Logfire account in the region you want (US or EU) and a first project. Run uvx logfire-cli auth and init together with the person, or use the write token they create.
- For production, create a write token in Project, Settings, Write tokens. Set LOGFIRE_TOKEN in the server environment (never in git or browser code).
- Choose a plan and, on Team or Growth, set a price cap. No code change.
Commercial use and your data
The code you add to your app is open source under the MIT license. The Logfire service itself is closed source and paid beyond the free plan; running it on your own servers needs an enterprise license.
The MIT-licensed package can go into any app; the service is used on a paid or free plan under its terms.
“Permission is hereby granted, free of charge, to any person obtaining a copy” source
The SDK may be redistributed under MIT with its copyright notice; the closed-source platform may not.
“The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.” source
Growth allows read-only guests such as clients without a seat cost; on Personal and Team the guest count is limited (2 and 10).
“Read-only guests for the whole company No cap on read-only viewers. Bring in stakeholders, clients, or your CTO.” source
“The Services shall normally retain Client Data for one month.”
“No data is transferred between regions”
Errors to handle
Too many queries at once or the daily query budget is used (query API).
Wait the seconds in the Retry-After header, then retry.
An ingest request was over 100 MB and nothing from it was stored.
Send smaller batches.
Some records had timestamps outside the accepted window and were dropped.
Fix the server clock; do not backfill data older than 24 hours.
Logfire stops accepting new records until the next cycle or an upgrade.
Raise the cap or upgrade the plan; sample or filter data to send less.
No project credentials or write token are set.
Run uvx logfire-cli auth and init, or set LOGFIRE_TOKEN.
Use it from an agent
4 of 6: llms.txt yes, OpenAPI yes, SDK yes, MCP no, status page no, AI assistants allowed yes
Checked Nov 13, 2026.
Logfire remote MCP server
claude mcp add --transport http logfire https://logfire-us.pydantic.dev/mcp
pip install logfireInstructions in its docs to check first
“Include these query parameters when fetching any page on pydantic.dev”
Do not add goal or organization parameters to requests; they send what the person is working on to the vendor. Read the pages without them.
“The command signs you in, connects the directory to a Logfire project, then asks an installed Codex or Claude Code agent to add Logfire and verify that data arrives”
Ask the person first; the wizard signs in, links a project and starts a coding agent that may change and run their app.
Alternatives
Pydantic Logfire This page
Pick LangSmith when you build mainly with LangChain and also want prompt and dataset management for evaluations.
Pick W&B Weave when your team already uses Weights & Biases and wants tracing and evaluation logged from Python or TypeScript.
Pick LangWatch when you want LLM observability that is open source and can also run on your own servers.
Get started
Tell your AI assistant
“Add Pydantic Logfire to my Python app: pin logfire in the project, call logfire.configure() once at start-up, instrument my web framework and AI client, and read LOGFIRE_TOKEN from the environment in production; keep scrubbing on.”
Create a free account and a project; your data region (US or EU) is chosen at sign-up.
From pydantic.dev/docs/logfire/get-started/first-trace/index.md
Install the package and connect the project; the person signs in in the browser.
uv add logfire uvx logfire-cli auth uvx logfire-cli initFrom pydantic.dev/docs/logfire/get-started/first-trace/index.md
Add three lines to your app and run it; the trace appears in the Live view.
import logfire logfire.configure() with logfire.span('greeting'): logfire.info('Hello, {name}!', name='world')From pydantic.dev/docs/logfire/get-started/first-trace/index.md
First request
The Python SDK returns nothing; the documented result is the trace in the Live view.
import logfire
logfire.configure()
with logfire.span('greeting'):
logfire.info('Hello, {name}!', name='world')Your greeting span shows up as a row, with the Hello world! log nested inside it.Mistakes to avoid
A normal write token in a web page can be copied and used to send data as your app.
Otherwise no data shows up.
Buffered data is lost when the program exits first.
Scrubbing removes likely passwords and tokens before data leaves your server.
Traces can contain user-controlled text, such as model replies and tool arguments.
Questions
Is there a free plan?
Yes. The Personal plan is free with no credit card and 10 million records a month, hard-capped at $0.
Does it only work with Python?
No. There are official packages for Python, JavaScript/TypeScript and Rust, and any language with OpenTelemetry can send data.
Can I try it without sending data anywhere?
Yes. The docs describe sending to a local backend while you evaluate, and the Python package can print to the console only (our demo).
Can I search the data myself?
Yes, with SQL in the web app, or through the query API with a read token.
Can I put the token in my website's code?
Not a normal write token. For browser pages the docs use a restricted frontend token that can only send data.