
Langfuse Observability Plugin
PluginLangfuse's official plugin: uses hooks to send prompts, model calls, token usage and cost, tool calls and subagents from Claude Code sessions to Langfuse as traces for monitoring and review. Needs Langfuse keys (self-hosting supported) and uv or Python 3.10+.
Langfuse Observability Plugin for Claude Code
Claude Code plugin that sends Claude Code session telemetry to Langfuse. It traces user prompts, agent turns, model generations with their token usage and cost, thinking blocks, tool calls, skills, subagents, and pasted or returned images.
Langfuse also documents this integration on the Claude Code integration page.
Quick Start
Add the marketplace and install the plugin:
claude plugin marketplace add langfuse/Claude-Observability-Plugin
claude plugin install langfuse-observability@langfuse-observability
Restart Claude Code after installing, so that it loads the hook.
Tracing covers the claude CLI and the desktop app in Code mode. Claude
Desktop Chat mode runs no Claude Code hooks and is not traced.
Prerequisites
The plugin needs uv on PATH. The hook runs as a
uv script and installs the Langfuse SDK from its own inline script metadata.
Machines without uv fall back to Python 3.10+ as python3 with
langfuse>=4.7,<5 installed.
Without a usable runtime the hook writes the reason to its log and exits. It never blocks or slows Claude Code.
Langfuse Credentials
Configure the plugin from inside a Claude Code session. This is a Claude Code slash command, not a shell command:
/plugin configure langfuse-observability@langfuse-observability
You can also pass the values during install:
claude plugin install langfuse-observability@langfuse-observability \
--config LANGFUSE_PUBLIC_KEY=pk-lf-... \
--config LANGFUSE_SECRET_KEY=sk-lf-... \
--config LANGFUSE_BASE_URL=https://cloud.langfuse.com
Only LANGFUSE_PUBLIC_KEY and LANGFUSE_SECRET_KEY are required. Without
LANGFUSE_BASE_URL the plugin uses https://cloud.langfuse.com (EU region).
Get the keys from the API Keys page in your Langfuse project settings. The
secret key is held in your OS keychain, not in a file.
/plugin configure also lists the optional settings, such as the user ID,
debug logging, and image capture, with their defaults.
Updating
Automatic updates are off for marketplaces outside Anthropic's, so you run the update yourself.
claude plugin marketplace update langfuse-observability
claude plugin update langfuse-observability@langfuse-observability
Restart Claude Code afterwards. claude plugin list shows the installed
version.
Troubleshooting
The hook explains nearly every failure in
~/.claude/state/langfuse_hook.log. Send one message, then read the newest
lines. Turn on CC_LANGFUSE_DEBUG for verbose logging.
A log with no new lines means that the hook never started. Either the plugin is
disabled, or no usable runtime was found. Run claude plugin list from the
directory you work in, and put uv on the PATH of the app that starts Claude
Code.
Contributing
See the contributing guide.
License
Recursos relacionados

MLflow Skills
PluginMLflow's official skills plugin: lets coding agents add MLflow Tracing to LLM apps, analyze failed traces, build evaluation datasets and scorers, and query token and latency metrics, closing the instrument, evaluate, iterate loop. Needs MLflow 3.8+.
mlflow/skills81
RTK (Rust Token Killer)
CLIRust CLI proxy that filters and compresses command output before it reaches the agent's context, covering git, tests, grep, ls and 100+ other commands and cutting bash output by up to about 90%. Hooks automatically rewrite commands run by Claude Code, Codex and others.
rtk-ai/rtk83.6k
Agent SDK Dev
PluginScaffolds a Claude Agent SDK project in Python or TypeScript interactively with /new-sdk-app, then a verifier agent checks dependencies, config and code against official best practices. Maintained by Anthropic.
anthropics/claude-code151k
Hookify
PluginGenerates hook rules from a one-line description or by analyzing recent conversations. Rules are Markdown files with match conditions that block or warn on dangerous commands and unwanted patterns, and take effect without a restart. Official Anthropic plugin.
anthropics/claude-code151k
Plugin Dev
PluginToolkit for building Claude Code plugins: 7 skills on plugin structure, hooks, MCP integration, commands, subagents and skill writing, a guided eight-phase create command, and subagents for agent generation, plugin validation and skill review. Maintained by Anthropic.
anthropics/claude-code151k
Session Report
PluginOfficial Anthropic plugin that reads local session logs in ~/.claude/projects and generates an interactive HTML usage report covering tokens, cache hit rate, subagents, skills and the most expensive prompts, with optimization tips. Needs Node.js.
anthropics/claude-plugins-official40.3k