logfire — Agent Skill
by pydantic · Updated
Add Logfire observability to Python applications with auto-instrumentation for FastAPI, httpx, asyncpg, SQLAlchemy, and more
At a glance
logfire is an Agent Skill by pydantic in the Coding & Engineering category. In Claude Code it installs with `/plugin install logfire@claude-plugins-official` after adding the anthropics/claude-plugins-official marketplace; other assistants use its SKILL.md instructions as rules. Its source repository has 146 GitHub stars (as of Oct 28, 2026).
How to install logfire in your AI client
Setup for Claude Code, Claude Desktop, Cursor, Codex, Windsurf, Cline and VS Code — copy-paste ready.
How to install logfire in Claude CodeAnthropic's agentic CLI
Add the marketplace
claude/plugin marketplace add anthropics/claude-plugins-officialInstall the skill
claude/plugin install logfire@claude-plugins-officialUse it
These are slash commands for a Claude Code session, not your shell. Claude auto-invokes the skill when your request matches its description — or type its slash command if it exposes one.
How to install logfire in Claude DesktopDesktop app (MCP config)
Clone the source
bashgit clone https://github.com/pydantic/skills.gitFind the skill
It lives in skills/plugins/logfire — that folder contains the SKILL.md.
Add the SKILL.md to your Skills folder
Settings → Capabilities → Skills → add the folder containing SKILL.md. Claude picks it up automatically.
How to install logfire in CursorAI-first code editor
Clone the source
bashgit clone https://github.com/pydantic/skills.gitFind the skill
It lives in skills/plugins/logfire — that folder contains the SKILL.md.
Convert to a Cursor rule
Create .cursor/rules/logfire.mdc and paste the SKILL.md body. Set `alwaysApply` or a glob so the Agent loads it in context.
How to install logfire in Codex CLIOpenAI coding agent
Clone the source
bashgit clone https://github.com/pydantic/skills.gitFind the skill
It lives in skills/plugins/logfire — that folder contains the SKILL.md.
Reference in AGENTS.md
Add the skill's instructions (or a link) to AGENTS.md at your repo root — Codex reads it on every run.
How to install logfire in WindsurfCodeium's agentic IDE
Clone the source
bashgit clone https://github.com/pydantic/skills.gitFind the skill
It lives in skills/plugins/logfire — that folder contains the SKILL.md.
Add to your rules / context
Paste the SKILL.md instructions into this tool's custom rules or workspace instructions so the agent follows them.
How to install logfire in ClineVS Code autonomous agent
Clone the source
bashgit clone https://github.com/pydantic/skills.gitFind the skill
It lives in skills/plugins/logfire — that folder contains the SKILL.md.
Add to your rules / context
Paste the SKILL.md instructions into this tool's custom rules or workspace instructions so the agent follows them.
How to install logfire in VS CodeCopilot / MCP support
Clone the source
bashgit clone https://github.com/pydantic/skills.gitFind the skill
It lives in skills/plugins/logfire — that folder contains the SKILL.md.
Add to your rules / context
Paste the SKILL.md instructions into this tool's custom rules or workspace instructions so the agent follows them.
Documentation
Full READMElogfire
Add Logfire observability to Python applications.
Features
/logfire:connect- connect Claude's MCP client and optionally set up native session telemetry/logfire:status- check MCP access, native telemetry configuration, and delivery evidence separately/logfire:disconnect- stop native Claude telemetry while keeping MCP and skillslogfire-coding-agentsskill - configure Claude/Codex recording or coding-agent Gateway routinglogfire-frontendskill - set up browser errors, Web Vitals, and session replayslogfire-gatewayskill - route application model calls through Pydantic AI Gateway/instrument- detect frameworks and add Logfire instrumentationlogfire-setupskill - authenticate, inspect the repository, and route to the right setup workflowlogfire-infrastructureskill - monitor hosts, containers, Kubernetes, databases, and cloud infrastructurelogfire-evalsskill - add dataset-based evaluations for AI and agent behavior/debug- investigate errors using Logfire traces via MCP/query- query traces, logs, and metrics interactively or add query capabilities to codelogfire-uiskill - open Logfire project pages, live views, traces, and Explore filters directly in Codex- SKILL.md with core Logfire patterns (configure, instrument, structured logging, AI/LLM instrumentation)
- MCP server for querying Logfire data
Query vs UI Routing
The Codex Logfire plugin uses one primary workflow per request:
| User intent | Route | | --- | --- | | Analyze, query, count, summarize, compare, or find root cause | Use logfire-query and return analysis in chat. | | Open, show in browser, live view, Explore, Logfire UI, or give a link | Use logfire-ui and open or return a Logfire URL without querying first. | | Ambiguous prompts like "show recent errors" or "view logs" | Ask whether the user wants a UI view or query analysis. | | Explicit combined prompts like "analyze this and give me a link" | Do the requested query work, then provide the relevant Logfire link. |
For UI requests that omit the organization/project, the agent should resolve the current project through Logfire MCP auth/current-project metadata before asking the user. Environment values such as LOGFIRE_BASE_URL, LOGFIRE_URL, and exporter config identify the platform/API base only; they are not enough to infer the target organization/project.
Install In Claude Code
claude plugin marketplace add pydantic/skills
claude plugin install logfire@pydantic-skillsThe Claude plugin provides /instrument, /debug, /query, and the Logfire MCP server.
Connect once
Run /logfire:connect inside Claude Code. It guides you through MCP OAuth and, if you choose, native Claude session telemetry. MCP-only use needs no Logfire CLI. For telemetry, the command locates its managed CLI or offers to install one into a private, persistent uv tool environment; you do not need to run CLI setup commands yourself. Python 3 and uv are needed for that managed install.
Native traces/tool-output capture requires logfire-cli>=0.1.14,<0.2 (the release containing logfire-cli#288). The managed installation uses the package's logfire-cli executable, not the Python SDK's logfire command. Older versions are rejected; MCP and existing skills remain usable independently.
Excerpt — the full document is on GitHub.
More Coding & Engineering skills
- Coding & Engineering308k
superpowers
Superpowers teaches Claude brainstorming, subagent driven development with built in code review, systematic debugging, and red/green TDD. Additionally, it teaches Claude how to author and test new skills.
Claude Plugins (Official)by obra
- Coding & Engineering306k
mattpocock skills
Matt Pocock's agent skills for real engineering — grilling, spec/ticket flows, TDD, code review, domain modelling and more. Plug-and-play, not vibe coding.
Claude Plugins (Official)by mattpocock
- Coding & Engineering45k
asana
Asana project management integration. Connects Claude Code to Asana's V2 MCP server to create and manage tasks, search projects, update assignments, and track progress. Requires a one-time Asana OAuth app setup — run /asana-setup after installing.
Claude Plugins (Official)by anthropics
- Coding & Engineering45k
clangd lsp
C/C++ language server (clangd) for code intelligence
Claude Plugins (Official)by anthropics
- Coding & Engineering45k
code modernization
Guided modernization for any legacy codebase: start with /modernize, get an assessment, an interactive map, the business rules mined from the code, and a plan you approve, then an upgrade, a rewrite or a rebuild with independent proof that the new code behaves like the old. Includes security hardening, a one-page repo…
Claude Plugins (Official)by anthropics
- Coding & Engineering45k
code review
Automated code review for pull requests using multiple specialized agents with confidence-based scoring to filter false positives
Claude Plugins (Official)by anthropics
Catalog data refreshed . Something wrong? Report it.