Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By langfuse Verified Orgv1.2.2MITIn 9 marketplaces
See Claude Code sessions in Langfuse, with prompts, token usage, cost and tool calls traced per turn. Its hook runs after every response and at session end, sending traces to Langfuse and needing your Langfuse keys.
Trending plugins
7-day copy clicks
Run automatically on Claude Code events. Claude doesn't decide.
Claude Code asks for these when you enable the plugin. Sensitive values are stored in your system keychain.
User IDLANGFUSE_USER_ID
Optional user identifier attached to every trace (shown as the user in Langfuse). Leave empty to omit.
string
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
9 marketplaces, most starred first
langfuse, observability, tracing, llm-observability, token-usage, cost-tracking, telemetry
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
CC_LANGFUSE_DEBUGWrite verbose logs to ~/.claude/state/langfuse_hook.log
booleandefault false
Langfuse Base URLLANGFUSE_BASE_URL
Langfuse host. Use https://us.cloud.langfuse.com for US, https://cloud.langfuse.com for EU, or your self-hosted URL.
stringdefault https://cloud.langfuse.com
Langfuse Public KeyLANGFUSE_PUBLIC_KEY
Your Langfuse project public key (pk-lf-...)
string
Langfuse Secret KeyLANGFUSE_SECRET_KEY
Your Langfuse project secret key (sk-lf-...)
Sensitivestring
Max characters per fieldCC_LANGFUSE_MAX_CHARS
Truncate captured inputs/outputs to this many characters
numberdefault 20000
State directoryCC_LANGFUSE_STATE_DIR
Optional. Absolute directory for the hook's state, lock and log files (default ~/.claude/state). Set a distinct value per CLAUDE_CONFIG_DIR installation to keep their state separate. Leave empty for the default.
string
Tag traces with skillsCC_LANGFUSE_SKILL_TAGS
Add a skill:<name> tag to traces for every skill invoked in the turn
booleandefault true
Trace ID seedCC_LANGFUSE_TRACE_SEED
Optional. Derive deterministic trace ids as Langfuse.create_trace_id(seed=f"{seed}:{turn_number}") so external systems can precompute them. Use a unique seed per session (e.g. the --session-id UUID). Leave empty for auto-generated ids.
string
Capture imagesCC_LANGFUSE_CAPTURE_IMAGES
Upload images to Langfuse and show them in the trace. This includes pasted images and screenshots from tool results. Your Langfuse deployment must support media upload. Set to false to show short text markers instead.
booleandefault true
Capture skill instructionsCC_LANGFUSE_CAPTURE_SKILL_CONTENT
Include the injected skill instruction text in the Skill tool span output
booleandefault false
Public GitHub repos that commit this plugin as enabled in their Claude Code settings
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.
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.
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.
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.
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.
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.
See the contributing guide.
7-day copy clicks
Plugins from other owners that cover similar ground
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub langfuse/claude-observability-plugin --plugin langfuse-observability