# logfire-session-capture

Captures Claude Code sessions and exports pydantic-ai compatible OTel traces to Pydantic Logfire, with local JSONL fallback.

Plugin by Pydantic. Category: Shipping and ops.

## Install

Global (for every project on this machine):

```sh
npx plugins add pydantic/claude-code-logfire-plugin
```

Works with: Claude Code, Codex CLI, Cursor, Copilot CLI.

Project (for this project only):

```sh
npx plugins add pydantic/claude-code-logfire-plugin -s project
```

Works with: Claude Code, Codex CLI, Cursor, Copilot CLI.

## What's inside

- Hooks: included

## Source

[Open the source](https://github.com/pydantic/claude-code-logfire-plugin). Checked 2026-10-10. This summary may contain AI-generated text, so it can be wrong. Check the source before you rely on it.

- Previous: [integration-skills](https://syn4pse.dev/terminal/integration-skills.md)
- Next: [restatedev](https://syn4pse.dev/terminal/restatedev.md)
- [Terminal](https://syn4pse.dev/terminal.md)
- [Suggest a change](mailto:terminal@syn4pse.dev?subject=Terminal%20suggestion)
