1. Packages
  2. Logfire
  3. Installation & Configuration
Viewing docs for Logfire v0.1.8
published on Tuesday, Apr 7, 2026 by Pydantic

Logfire: Installation & Configuration

logfire logo
Viewing docs for Logfire v0.1.8
published on Tuesday, Apr 7, 2026 by Pydantic

    Installation

    Node.js (TypeScript/JavaScript)

    Package page: npm

    npm install @pydantic/pulumi-logfire
    

    Python

    Package page: PyPI

    pip install pydantic-pulumi-logfire
    

    Import it in code as pulumi_logfire.

    Go

    Package page: pkg.go.dev

    go get github.com/pydantic/pulumi-logfire/sdk/go/logfire
    

    Provider Configuration

    Set provider config with Pulumi config values (recommended):

    pulumi config set --secret logfire:apiKey pylf_v2_us_...
    # Self-hosted only:
    # pulumi config set logfire:baseUrl https://<self-hosted-logfire>
    

    You can also use environment variables:

    • LOGFIRE_API_KEY
    • LOGFIRE_BASE_URL (optional override; self-hosted customers should set this)

    For Logfire SaaS, the provider infers https://logfire-us.pydantic.dev or https://logfire-eu.pydantic.dev from the API key region. If you set logfire:baseUrl or LOGFIRE_BASE_URL, that value is used instead.

    Configuration Reference

    • logfire:baseUrl (string): Optional override for the Logfire API base URL. If omitted, the provider uses LOGFIRE_BASE_URL or infers the SaaS endpoint from the API key region. Self-hosted customers should set this explicitly.
    • logfire:apiKey (secret string): Bearer token for the Logfire API.
    logfire logo
    Viewing docs for Logfire v0.1.8
    published on Tuesday, Apr 7, 2026 by Pydantic
      Try Pulumi Cloud free. Your team will thank you.