Logfire
From the team behind Pydantic Validation, Pydantic Logfire is a new type of observability platform built on the same belief as our open source library — that the most powerful tools can be easy to use.
Logfire is built on OpenTelemetry, with native SDKs for Python, JavaScript/TypeScript, and Rust — plus support for any language via OpenTelemetry. Read more.
This page walks through setting up a Python app. For other languages, see the JavaScript/TypeScript integration or our language support page.
-
Follow the prompts to create your account
-
Once logged in, you’ll see the Welcome to Logfire prompt. Click Let’s go! to go to the starter-project Setup page.
-
You will find how to send data to your starter-project there. Also, there are some code snippets to help you get started.
Ready to create your own projects in UI or CLI?
- In the UI, create projects by navigating to the Organization > Projects page, and click New project.
- For CLI check the SDK CLI documentation.
- In the terminal, install the Logfire SDK (Software Developer Kit):
pip install logfire
uv add logfire
conda install -c conda-forge logfire
- Once installed, try it out!
logfire -h
- Next, authenticate your local environment:
logfire auth
- Set your project
logfire projects use <first-project>
- Write some basic logs in your Python app
import logfire
logfire.configure() # (1)
logfire.info('Hello, {name}!', name='world') # (2) The configure() method should be called once before logging to initialize Logfire.
This will log Hello world! with info level.
- See your logs in the Live view

-
Generate a new write token in the Logfire platform
- Go to Project Settings Write Tokens
- Follow the prompts to create a new token
-
Configure your Logfire environment
export LOGFIRE_TOKEN=<your-write-token>
- Write some basic logs in your Python app
import logfire
logfire.configure() # (1)
logfire.info('Hello, {name}!', name='world') # (2) The configure() method should be called once before logging to initialize Logfire.
This will log Hello world! with info level.
- See your logs in the Live view

Ready to keep going?
- Read about Concepts
- Complete the Onboarding Checklist
- Building AI applications? See AI & LLM Observability
More topics to explore…
- Logfire’s real power comes from integrations with many popular libraries
- As well as spans, you can use Logfire to record metrics
- Using another language? See Language support for Python, JavaScript/TypeScript, Rust, and more
- Compliance requirements (e.g. SOC2)? See Logfire’s certifications