Skip to main content
skill CX Codex

logfire-coding-agents — Claude Code skill: what it does

logfire-coding-agents — a skill for Claude Code that connects coding agent sessions to Logfire telemetry and routes model requests through Pydantic AI Gateway.

MIT 239 installs ★ 156 updated 2026-10-16

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add pydantic/skills --skill logfire-coding-agents -a claude-code
Open on GitHub

What logfire-coding-agents does

This skill links AI coding agents to Logfire for activity recording, gateway routing, and MCP queries. It requires the Rust CLI executable called logfire-cli with --beta flags and preserves region and project credentials safely out of logs.

Capabilities include standalone telemetry, model request routing through the organization Gateway, and agent-side MCP queries. It separates these integration paths instead of enabling everything at once.

What it helps with

  • record coding agent session activity in Logfire
  • route agent model requests through Pydantic AI Gateway
  • configure agent telemetry and gateway separately
  • query Logfire via MCP

Example prompts for the agent

  • Connect Claude Code to Logfire telemetry
  • Route my coding agent requests through Pydantic AI Gateway
  • Check the Logfire telemetry configuration for this session

How to install logfire-coding-agents

1Skills CLI (Vercel)

npx skills add pydantic/skills --skill logfire-coding-agents -a claude-code

2Manually: put the files in place

~/.claude/skills/logfire-coding-agents/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/logfire-coding-agents/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about logfire-coding-agents

How to install logfire-coding-agents in Claude Code?

Run npx skills add pydantic/skills --skill logfire-coding-agents -a claude-code followed by reading ~/.claude/skills/logfire-coding-agents/SKILL.md.

What does logfire-coding-agents do?

It connects coding agent sessions to Logfire telemetry and routes model requests through Pydantic AI Gateway.

What is required to run logfire-coding-agents?

It requires the Rust CLI executable logfire-cli supporting --beta and pre-configured project credentials.

Source text

SKILL.md · MIT
---
name: logfire-coding-agents
description: Connect Claude Code or Codex itself to Logfire telemetry, or route a coding agent's model requests through Pydantic AI Gateway. Use for coding-session recording, capture policies, Gateway agent configuration, temporary proxy launches, status, or removal. Not for instrumenting an application or routing an application's model client.
---

# Connect Coding Agents to Logfire

Use the exact Rust CLI executable supplied by the handoff for every operation;
examples call it `logfire-cli`. Preserve its region, organization, project, and
data directory. Do not replace it with a package launcher or install a second
exporter by hand. These commands require `--beta`.

Without a prepared handoff, follow [native CLI connection](./references/connection.md).
The same skill is distributed in the Logfire plugin; plugin installation alone
does not supply a CLI session, project credential, or capture consent.

Distinguish three independent capabilities:

- **Telemetry:** record the coding agent's activity in the selected project.
- **Gateway:** route the agent's model requests through the organization's paid
  Gateway access. This does not enable telemetry.
- **MCP:** let the agent query Logfire. MCP OAuth is owned by the agent's MCP
  client; CLI login or telemetry setup does not authenticate that client.

Honor the user's stated goal and agent. Ask only for missing choices; do not
enable all three because the user asked to connect one. For application code,
use [instrumentation](../logfire-instrumentation/SKILL.md) or the
[application Gateway skill](../logfire-gateway/SKILL.md) instead.

## Confirm the destination

A prepared handoff already selected the origin, organization, project, and
local SDK credential: reuse those without repeating account commands or
creating another write token. Otherwise follow the shared
[connection reference](./references/connection.md).
Do not guess another project when access fails.

Keep account credentials out of prompts, logs, and child environments. Leave
credential storage and settings writes to the CLI. If a saved helper will
invoke this executable later, use a persistent installed path, not a temporary
build or cache directory.

## Choose the requested workflow

- To observe Claude Code or Codex, read [session telemetry](./references/telemetry.md).
- To route coding-agent inference, read [Gateway routing](./references/gateway.md).
- For both, configure telemetry first, then Gateway. Preserve each integration's
  destination and settings independently.

Do not launch another setup agent or a nested interactive coding session just
to configure this one. Explain any required restart. Finish with the configured
agent, destination, capture or routing choice, observed verification result,
and one next action. Configuration is not proof of ingestion or inference.

© pydantic · MIT · pydantic/skills

Similar skills

All skills for Agent setup: memory, context, orchestration →

From the same set24

The whole set →
migrating-google-adk-to-pydantic-ai migrating-google-adk-to-pydantic-ai guides a behavior-preserving move from Python Google ADK applications to Pydantic AI, including agents, tools, state, workflows, and events. CX Codex +1 468installs migrating-claude-agent-sdk-to-pydantic-ai migrating-claude-agent-sdk-to-pydantic-ai — a skill for Claude Code, Codex, Cursor, GitHub Copilot, and Gemini CLI that moves Python apps from claude_agent_sdk to Pydantic AI. CX Codex +1 468installs migrating-mastra-to-pydantic-ai migrating-mastra-to-pydantic-ai — a skill that moves TypeScript Mastra apps to Python with Pydantic AI. Use it when source code imports @mastra/* or relies on Mastra agents, tools, workflows, memory, or streaming. CX Codex +1 464installs migrating-agno-to-pydantic-ai migrating-agno-to-pydantic-ai — a skill for Claude Code, Codex, Cursor and other platforms that migrates Python Agno applications to Pydantic AI. CX Codex +1 463installs logfire-frontend logfire-frontend sets up browser observability and session replays for Pydantic Logfire in JavaScript and TypeScript applications. CX Codex +1 237installs logfire-codex-connection logfire-codex-connection — a Claude Code skill that connects Codex to Logfire, checks connection status, and stops session recording. Runs when managing Codex telemetry and session logging. CX Codex +1 235installs migrating-deep-agents-to-pydantic-ai-harness The migrating-deep-agents-to-pydantic-ai-harness Claude Code skill moves Python LangChain Deep Agents apps to Pydantic AI and Pydantic AI Harness. It applies when Deep Agents middleware, memory, subagent, or sandbox contracts matter. CX Codex +1 234installs logfire-gateway The logfire-gateway Claude Code skill routes an application's model requests through Pydantic AI Gateway. It activates for requests to connect a Gateway key or configure a provider snippet. CX Codex +1 232installs

Project sponsors

Companies that keep this analytics open