Skip to main content

Logfire CLI

The Rust command-line interface for Pydantic Logfire. Sign in, query your traces and logs, manage projects and tokens, and connect your coding agent to Logfire from the terminal.

This package installs the native CLI, not the Python instrumentation SDK. Install an application SDK separately to send telemetry; see the Logfire documentation.

Install

Try it with uv:

uvx logfire-cli --help

Install it as an isolated command-line tool:

uv tool install logfire-cli
logfire-cli --help

Or use pipx install logfire-cli. In an activated virtual environment, you can also run python -m pip install logfire-cli.

This standalone package owns only logfire-cli. In Logfire 6, the Python logfire package owns logfire and installs the same native CLI alongside the Python SDK, without either wheel claiming the other's command. If an older logfire-cli installation provided logfire, use logfire-cli after upgrading the standalone package.

Python 3.9 or newer is required for the launcher. Wheels include the matching prebuilt binary for macOS (ARM64 and x86-64), Windows (ARM64, x86, and x86-64), GNU/Linux (ARM64, ARMv7, x86, x86-64, PowerPC 64 LE, RISC-V 64, and IBM Z), and musl Linux (ARM64, ARMv6, ARMv7, x86, and x86-64). You do not need Rust installed. GNU/Linux requires glibc 2.17 or newer, except RISC-V 64, which requires glibc 2.31. The musl wheels support compatible Alpine Linux versions.

New to Logfire

From your application's directory, create an account, organization, and first project in one guided flow:

logfire-cli --region us signup --org acme --project my-app
logfire-cli --org acme project current

Replace acme and my-app with the real names you want. Use --region eu for the EU region. Browser OAuth credentials go to the operating system credential store; the project SDK credential stays under .logfire/ in your application.

Then add instrumentation with an installed coding agent:

logfire-cli --org acme wizard

Use an existing account

Use your real organization name in place of acme, and eu instead of us if your data is in the EU region:

logfire-cli --region us --org acme auth
logfire-cli --org acme mcp projects

Complete sign-in and approve access in your browser. OAuth credentials are stored in the OS credential store, scoped to the Logfire origin and organization.

Choose a project from the list, then query its data through the hosted Model Context Protocol (MCP) server:

logfire-cli --org acme mcp query run 'SELECT message FROM records LIMIT 20' --project my-app

For scripts, make the target explicit and request non-interactive JSON output:

logfire-cli --org acme --no-input --output json mcp projects

Connect a local project

From your application's directory, create or choose a project interactively:

logfire-cli --org acme init

To connect an exact existing project without a picker:

logfire-cli --org acme init use --name my-app --permission send
logfire-cli project current

OAuth remains in the OS credential store; the SDK token stays with the local project. Keep credential files out of version control.

To create additional read or write tokens for that project:

logfire-cli --org acme token read
logfire-cli --org acme token write

Each command creates a new token and prints the secret once to standard output. Store it securely; do not paste it into logs, issues, or chat. These commands do not replace the project's saved SDK write token.

Run Python with automatic instrumentation

The CLI selects the active project interpreter and delegates instrumentation to the Logfire Python SDK installed in that environment:

logfire-cli run app.py
logfire-cli run -m uvicorn main:app
logfire-cli run pytest tests/

Use --python .venv/bin/python when interpreter discovery is ambiguous. Run logfire help run for selection rules and passthrough behavior.

Set up instrumentation with a coding agent

With a supported coding agent installed, run this from your application's directory:

logfire-cli --region us --org acme wizard

The CLI detects installed agents and hands off the Logfire setup instructions bundled with this release. The agent can change your project to add instrumentation, using its normal permission and approval controls. It receives the selected target and project identity, but it does not inherit the CLI's LOGFIRE_API_KEY, LOGFIRE_TOKEN, or LOGFIRE_MCP_TOKEN.

If you already know the exact project and setup task, pass them explicitly:

logfire-cli --region us --org acme wizard --project api --task instrumentation

Use bare wizard when you want the CLI and agent to discover the task from the current directory.

To inspect the instructions without launching an agent:

logfire-cli --region us --org acme wizard --print-prompt

Help and updates

logfire-cli help
logfire-cli help mcp
logfire-cli help wizard
uv tool upgrade logfire-cli

Use the upgrade command for a uv tool install installation; otherwise upgrade with the package manager you used to install it.

See the Logfire documentation for application instrumentation and platform guides. Logfire CLI is licensed under the MIT license.

Metadata

Release files for logfire-cli 0.1.13

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for logfire-cli 0.1.13
File
logfire_cli-0.1.13-py3-none-win_arm64.whl Python 3 none Windows ARM64 Details
logfire_cli-0.1.13-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details
logfire_cli-0.1.13-py3-none-win32.whl Python 3 none Windows x86-32 Details
logfire_cli-0.1.13-py3-none-musllinux_1_2_x86_64.whl Python 3 none Linux musl 1.2+ x86-64 Details
logfire_cli-0.1.13-py3-none-musllinux_1_2_i686.whl Python 3 none Linux musl 1.2+ x86-32 Details
logfire_cli-0.1.13-py3-none-musllinux_1_2_armv7l.whl Python 3 none Linux musl 1.2+ ARMv7l Details
logfire_cli-0.1.13-py3-none-musllinux_1_2_aarch64.whl Python 3 none Linux musl 1.2+ ARM64 Details
logfire_cli-0.1.13-py3-none-manylinux_2_31_riscv64.whl Python 3 none Linux glibc 2.31+ RISC-V 64 Details
logfire_cli-0.1.13-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl Python 3 none Linux glibc 2.17+ x86-64 Details
logfire_cli-0.1.13-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl Python 3 none Linux glibc 2.17+ IBM System/390x Details
logfire_cli-0.1.13-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl Python 3 none Linux glibc 2.17+ PowerPC 64-le Details
logfire_cli-0.1.13-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl Python 3 none Linux glibc 2.17+ x86-32 Details
logfire_cli-0.1.13-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl Python 3 none Linux glibc 2.17+ ARMv7l Details
logfire_cli-0.1.13-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64 Details
logfire_cli-0.1.13-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details
logfire_cli-0.1.13-py3-none-macosx_10_12_x86_64.whl Python 3 none macOS 10.12+ x86-64 Details
logfire_cli-0.1.13-py3-none-linux_armv6l.whl Python 3 none linux armv6l Details

Total release size: 58.0 MB

Release files / logfire_cli-0.1.13-py3-none-win_arm64.whl

Download URL logfire_cli-0.1.13-py3-none-win_arm64.whl
Size 2.8 MB
Tags Python 3 Windows ARM64
SHA-256 checksum
How to use checksums
e7616e8f238a2e3db49e339e5ddbd80076614f3724fe783894cc862ead0e0d06
BLAKE2b-256 checksum
How to use checksums
53dc8b04a794b5786286558d3f166d8346c0b5e55672acea115ab618afa74f84
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / logfire_cli-0.1.13-py3-none-win_amd64.whl

Download URL logfire_cli-0.1.13-py3-none-win_amd64.whl
Size 3.0 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
501f958b616937c70d6fa76288bf32728df076d0d838c27baa05abac4f259540
BLAKE2b-256 checksum
How to use checksums
a7ee2e6bfe46ba8c721147bbc729c28d4fd8deac1fef05573da53a9442dc7361
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / logfire_cli-0.1.13-py3-none-win32.whl

Download URL logfire_cli-0.1.13-py3-none-win32.whl
Size 2.8 MB
Tags Python 3 Windows x86-32
SHA-256 checksum
How to use checksums
e46c8ab5db6befb313efb9e652d388530a6004f724412fdb60af7c0e01e9d382
BLAKE2b-256 checksum
How to use checksums
16f3f9b7b2ce5481ead58ed7ed070a8a44ad379c38549c460196f9bbad09d196
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / logfire_cli-0.1.13-py3-none-musllinux_1_2_x86_64.whl

Download URL logfire_cli-0.1.13-py3-none-musllinux_1_2_x86_64.whl
Size 3.9 MB
Tags Linux musl 1.2+ x86-64 Python 3
SHA-256 checksum
How to use checksums
9eb9cb0b694c2429f232025f634f096f1fda3b18268a037cb34bd281573675de
BLAKE2b-256 checksum
How to use checksums
556da7b0349153b114995f27b47222eab95afc9efec6a26b9484cd92a29fb1ad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / logfire_cli-0.1.13-py3-none-musllinux_1_2_i686.whl

Download URL logfire_cli-0.1.13-py3-none-musllinux_1_2_i686.whl
Size 3.6 MB
Tags Linux musl 1.2+ x86-32 Python 3
SHA-256 checksum
How to use checksums
1bad11a5708f7de710455770b31a29336d3cb2f6c7d6de7fa14347456803ac18
BLAKE2b-256 checksum
How to use checksums
54a9c6f9f0d044e103f1444b2e88365f0e874e7e3185ff14cc4938336f9d2011
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / logfire_cli-0.1.13-py3-none-musllinux_1_2_armv7l.whl

Download URL logfire_cli-0.1.13-py3-none-musllinux_1_2_armv7l.whl
Size 3.4 MB
Tags Linux musl 1.2+ ARMv7l Python 3
SHA-256 checksum
How to use checksums
1d649e8534eb5fc237270c0d21406ac79462329892ca1ccc41c4170e72409e7a
BLAKE2b-256 checksum
How to use checksums
8ae8f73b13721e75113c1aef237e687a46481c24ac0a9a78116f23bd07e5f55e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / logfire_cli-0.1.13-py3-none-musllinux_1_2_aarch64.whl

Download URL logfire_cli-0.1.13-py3-none-musllinux_1_2_aarch64.whl
Size 3.7 MB
Tags Linux musl 1.2+ ARM64 Python 3
SHA-256 checksum
How to use checksums
866c831ff2833e3e2a8f77412716fa05cae57ca464e712cac06fe9800432ce30
BLAKE2b-256 checksum
How to use checksums
fb5de40123c8ab288ade30fa7c284565692279a9d31a277eed04710d8b7cfb24
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / logfire_cli-0.1.13-py3-none-manylinux_2_31_riscv64.whl

Download URL logfire_cli-0.1.13-py3-none-manylinux_2_31_riscv64.whl
Size 3.5 MB
Tags Linux glibc 2.31+ RISC-V 64 Python 3
SHA-256 checksum
How to use checksums
6406bb898f5504a23c84fc2d92cf62f7b58017bc2ad800560fc2dd994a969497
BLAKE2b-256 checksum
How to use checksums
c5022308d9014b97ea8f934ac404722ac27e61ccb825808e5e51290e748a7fbe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / logfire_cli-0.1.13-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL logfire_cli-0.1.13-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 3.8 MB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
d679e057077111b0d94c9856858869cf2515af1eeabe4d1547f2ee1788224758
BLAKE2b-256 checksum
How to use checksums
b6da81ae85569656f199e1d3ef68ec4917a7837abcd1c1b018e1bfc69cf19ec1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / logfire_cli-0.1.13-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl

Download URL logfire_cli-0.1.13-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl
Size 3.5 MB
Tags Linux glibc 2.17+ IBM System/390x Python 3
SHA-256 checksum
How to use checksums
b5ea3ab9b8dd08a11eac5c4af404b7950787866b2fcfde80d0d78723c89f95bc
BLAKE2b-256 checksum
How to use checksums
c57f74f0114c40b086d5696f821806138d43708f84cc8754030521a2a60138bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / logfire_cli-0.1.13-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl

Download URL logfire_cli-0.1.13-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Size 3.8 MB
Tags Linux glibc 2.17+ PowerPC 64-le Python 3
SHA-256 checksum
How to use checksums
30e27c4673a48cdfcf8d58c8d6508adf9d5d8d2ad9b1e917d7f274de846c78d4
BLAKE2b-256 checksum
How to use checksums
fddb837f430caba1780de66e5b4e7f06207e6d618af0713b0b81c2af32b6e08b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / logfire_cli-0.1.13-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl

Download URL logfire_cli-0.1.13-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl
Size 3.7 MB
Tags Linux glibc 2.17+ x86-32 Python 3
SHA-256 checksum
How to use checksums
c823652bcba4f9a17631d3ad72fd96181a3274f65dd47896c54d62aa7ef770d3
BLAKE2b-256 checksum
How to use checksums
f94c447f35c4a9b032ce51f93abb3d72047c3b74a80de98419f40bce6674bc21
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / logfire_cli-0.1.13-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl

Download URL logfire_cli-0.1.13-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Size 3.4 MB
Tags Linux glibc 2.17+ ARMv7l Python 3
SHA-256 checksum
How to use checksums
ef530906fd2fea3a3613054834b169fbb913bf4d37186f2537aab886c15b0939
BLAKE2b-256 checksum
How to use checksums
0c4f62ae3d998374eb8f1163ed6a89b76948f3f6f3558b1a91ac1cedcae97a55
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / logfire_cli-0.1.13-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL logfire_cli-0.1.13-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 3.6 MB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
6c014a503a7cddd3a207ce6fe1f79dcf950fcd09de2d3b747b5c5e74da1ac208
BLAKE2b-256 checksum
How to use checksums
6b5e57f5f88830bfc98d7b4452bc4e9670f8008f285c073b6555e41a5a8506c9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / logfire_cli-0.1.13-py3-none-macosx_11_0_arm64.whl

Download URL logfire_cli-0.1.13-py3-none-macosx_11_0_arm64.whl
Size 2.9 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
1ff38b65efac3ea8c06c200353515695a67e2ccdcf583c372a80118f9b765eb7
BLAKE2b-256 checksum
How to use checksums
82578661b697d74449fef9c621c66e23468dcd15894e4ee574c5253ddde07783
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / logfire_cli-0.1.13-py3-none-macosx_10_12_x86_64.whl

Download URL logfire_cli-0.1.13-py3-none-macosx_10_12_x86_64.whl
Size 3.1 MB
Tags Python 3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
87fc96080f78c594dc75f3668d6cf09da9dfce98a196d0ff44c44aa6212de3cf
BLAKE2b-256 checksum
How to use checksums
400bb6dd306cbbccf512f63a2fefb6b588e61fd16f261d90e20fcfbbfc143e0c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / logfire_cli-0.1.13-py3-none-linux_armv6l.whl

Download URL logfire_cli-0.1.13-py3-none-linux_armv6l.whl
Size 3.4 MB
Tags Python 3 linux armv6l
SHA-256 checksum
How to use checksums
6ab31326879896c01841b5ae6840b9fdf719b1bee74ab5629f6939da83929415
BLAKE2b-256 checksum
How to use checksums
1013fc843aca93b6a138e1075da9fff88ffdfd871a346552e645168b3408f819
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Release history Release notifications | RSS feed

This release

0.1.13 This release

17 release files

0.1.9

17 release files

0.1.8

17 release files

0.1.7

17 release files

0.1.6

17 release files

0.1.5

17 release files

0.1.4

5 release files

0.1.3

5 release files

0.1.2

5 release files

0.1.1

5 release files

0.1.0

4 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page