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-cli 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.14

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.14
File
logfire_cli-0.1.14-py3-none-win_arm64.whl Python 3 none Windows ARM64 Details
logfire_cli-0.1.14-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details
logfire_cli-0.1.14-py3-none-win32.whl Python 3 none Windows x86-32 Details
logfire_cli-0.1.14-py3-none-musllinux_1_2_x86_64.whl Python 3 none Linux musl 1.2+ x86-64 Details
logfire_cli-0.1.14-py3-none-musllinux_1_2_i686.whl Python 3 none Linux musl 1.2+ x86-32 Details
logfire_cli-0.1.14-py3-none-musllinux_1_2_armv7l.whl Python 3 none Linux musl 1.2+ ARMv7l Details
logfire_cli-0.1.14-py3-none-musllinux_1_2_aarch64.whl Python 3 none Linux musl 1.2+ ARM64 Details
logfire_cli-0.1.14-py3-none-manylinux_2_31_riscv64.whl Python 3 none Linux glibc 2.31+ RISC-V 64 Details
logfire_cli-0.1.14-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.14-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl Python 3 none Linux glibc 2.17+ IBM System/390x Details
logfire_cli-0.1.14-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl Python 3 none Linux glibc 2.17+ PowerPC 64-le Details
logfire_cli-0.1.14-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl Python 3 none Linux glibc 2.17+ x86-32 Details
logfire_cli-0.1.14-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl Python 3 none Linux glibc 2.17+ ARMv7l Details
logfire_cli-0.1.14-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64 Details
logfire_cli-0.1.14-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details
logfire_cli-0.1.14-py3-none-macosx_10_12_x86_64.whl Python 3 none macOS 10.12+ x86-64 Details
logfire_cli-0.1.14-py3-none-linux_armv6l.whl Python 3 none linux armv6l Details

Total release size: 59.7 MB

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

Download URL logfire_cli-0.1.14-py3-none-win_arm64.whl
Size 2.9 MB
Tags Python 3 Windows ARM64
SHA-256 checksum
How to use checksums
7226b5f6fd859c8b170de00ca8799035541d15f28041b986e445ab72e05e1613
BLAKE2b-256 checksum
How to use checksums
ff2c0973bb4105c2ba15b01be647e758771c2769923acfbc6120215aa107c3fa
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.14-py3-none-win_amd64.whl

Download URL logfire_cli-0.1.14-py3-none-win_amd64.whl
Size 3.1 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
58addbdbce03a1fcf7664640c96711ccc9e25dfad95b31b2f32544e4d54ec4ba
BLAKE2b-256 checksum
How to use checksums
d53e294a6b5ef5f346506a79ba4dfc91d186c9049cc7bc58cb82d31ed269b5e2
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.14-py3-none-win32.whl

Download URL logfire_cli-0.1.14-py3-none-win32.whl
Size 2.9 MB
Tags Python 3 Windows x86-32
SHA-256 checksum
How to use checksums
7bee700f09641c9197eead4f94a1a9494e30cbdfdc652a30418b1a94b0070896
BLAKE2b-256 checksum
How to use checksums
6691aafa747b7946a535fb9cc0d6c6dcc9da07eb304c6a87cbf87e59f04b0e26
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.14-py3-none-musllinux_1_2_x86_64.whl

Download URL logfire_cli-0.1.14-py3-none-musllinux_1_2_x86_64.whl
Size 4.0 MB
Tags Linux musl 1.2+ x86-64 Python 3
SHA-256 checksum
How to use checksums
ae2b7dde3a00903b0e10f11303fe4910a8ece2552c9e02981eeb691f9b3553fd
BLAKE2b-256 checksum
How to use checksums
a422b9179914086091e6a71f3f4d81887cc6cbb35591a8202c2fe465461f53ca
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.14-py3-none-musllinux_1_2_i686.whl

Download URL logfire_cli-0.1.14-py3-none-musllinux_1_2_i686.whl
Size 3.7 MB
Tags Linux musl 1.2+ x86-32 Python 3
SHA-256 checksum
How to use checksums
70e91cd7040d26567d6720aeb4b2377bd604a5787558e4e9905de74e28455b8f
BLAKE2b-256 checksum
How to use checksums
19b6a319f0d21de4885f06a084035ca3d9d102a29b7d704af2a73523698d6957
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.14-py3-none-musllinux_1_2_armv7l.whl

Download URL logfire_cli-0.1.14-py3-none-musllinux_1_2_armv7l.whl
Size 3.5 MB
Tags Linux musl 1.2+ ARMv7l Python 3
SHA-256 checksum
How to use checksums
85e64c30647606d565531f595e77f20a4807076fdf3dc86ec0e2b446e0073ca8
BLAKE2b-256 checksum
How to use checksums
9b7f22d69b8017670bea65e718ecb76980269f7313cbbe65f4fec68024644297
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.14-py3-none-musllinux_1_2_aarch64.whl

Download URL logfire_cli-0.1.14-py3-none-musllinux_1_2_aarch64.whl
Size 3.8 MB
Tags Linux musl 1.2+ ARM64 Python 3
SHA-256 checksum
How to use checksums
fd35a44209e6bae8249fc35e8846e0b5c0ddc5a1fb3da03a2cc7d95ed5383b15
BLAKE2b-256 checksum
How to use checksums
d05f61d5ce2a956a14384031910054a8e1f178ba82731009dc8275d70f182aa7
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.14-py3-none-manylinux_2_31_riscv64.whl

Download URL logfire_cli-0.1.14-py3-none-manylinux_2_31_riscv64.whl
Size 3.6 MB
Tags Linux glibc 2.31+ RISC-V 64 Python 3
SHA-256 checksum
How to use checksums
80805c9938bfeaa73214c91d3f01f9a304c4632cafc2c120bd2db499f8c47fde
BLAKE2b-256 checksum
How to use checksums
6ab8e7f5c5e4034ac8901ca2beb6aaa6c7056372dfc232d1a527e6fb0d1f814f
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.14-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL logfire_cli-0.1.14-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 3.9 MB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
d337a29ef0fa54a339b0a80fe1e11c2fd20eb97898b4287f306b0bfcdc7af997
BLAKE2b-256 checksum
How to use checksums
4de16a8e50bef708f16f9ac991dc024fa6a91a698fcc7efaf5f5cd9437401b29
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.14-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl

Download URL logfire_cli-0.1.14-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl
Size 3.6 MB
Tags Linux glibc 2.17+ IBM System/390x Python 3
SHA-256 checksum
How to use checksums
149b8f6294ab04c1bd611e9f29024e2754b47bde7fe16d2f0c854b8fa3f6a45c
BLAKE2b-256 checksum
How to use checksums
0377ac114c284e5029107aabf849aac23c385298619916c02294e0c0b4771613
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.14-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl

Download URL logfire_cli-0.1.14-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Size 3.9 MB
Tags Linux glibc 2.17+ PowerPC 64-le Python 3
SHA-256 checksum
How to use checksums
8c0b1b3e2a51618f0916b0c4c921fa6ec64b3cb66f2635a733b85de2abcf802b
BLAKE2b-256 checksum
How to use checksums
01eee23c357f1948a062f0f6d3326b10ecd9b48eff313ba884077c3371ad42e7
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.14-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl

Download URL logfire_cli-0.1.14-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl
Size 3.8 MB
Tags Linux glibc 2.17+ x86-32 Python 3
SHA-256 checksum
How to use checksums
4d1c4d93c463ebc78ae9b7c4501f6f23c28cb3080e35b47897f2c0af60cec649
BLAKE2b-256 checksum
How to use checksums
eba56f8d41f6836425f508fd2c2f6a06a6486aef7d91531f30b949ce653920e7
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.14-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl

Download URL logfire_cli-0.1.14-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Size 3.5 MB
Tags Linux glibc 2.17+ ARMv7l Python 3
SHA-256 checksum
How to use checksums
7a9dc7d8fd6511da41926c97268e01f3ad863c642165112f9dd431de0f9d5420
BLAKE2b-256 checksum
How to use checksums
1425253c746863bff8b7f946a4430a1ee8279949c9c45b3756f05d9ada6e93ff
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.14-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL logfire_cli-0.1.14-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 3.7 MB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
a19dbf36fcdcb84c94793be08db7513e957f058c3e6fbf2ecc2b80935e5c2e08
BLAKE2b-256 checksum
How to use checksums
58cdae1d738113b642798d419ff77924c712d8101c43236bd79e6df14e5e9280
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.14-py3-none-macosx_11_0_arm64.whl

Download URL logfire_cli-0.1.14-py3-none-macosx_11_0_arm64.whl
Size 3.0 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
f3463edca31f0adc4433908913b82ad86c496c01c577fb495dc9ecb331d33ee7
BLAKE2b-256 checksum
How to use checksums
aa01de918d4b48bb0f57aec91b558f8ef4b52890d336ea849b65e867aecb437a
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.14-py3-none-macosx_10_12_x86_64.whl

Download URL logfire_cli-0.1.14-py3-none-macosx_10_12_x86_64.whl
Size 3.2 MB
Tags Python 3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
baff238cff702aa8659b9b80b24e44639b9325b58ffa3a17b2f5a48ba52ebc62
BLAKE2b-256 checksum
How to use checksums
3c07bb5d462fee42ec28f5e5445ebaf562af34144c1d3b76cd3aeca13c224b18
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.14-py3-none-linux_armv6l.whl

Download URL logfire_cli-0.1.14-py3-none-linux_armv6l.whl
Size 3.5 MB
Tags Python 3 linux armv6l
SHA-256 checksum
How to use checksums
56ff84e019598b0b8fc691a7bbbbe09ba55e4534caf24fbfaae170d7170f95dc
BLAKE2b-256 checksum
How to use checksums
768fa895de96b7efbff41ef67f113d2b76feb164af524aacc888d09c627d3627
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.14 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