Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

langfuse

Skill by trailofbits

Langfuse gives an AI assistant CLI access to the Langfuse REST API and to its documentation. It is for developers who work with Langfuse traces, prompts, datasets, scores and SDK integrations.

  • Score 84
  • 1.8k stars
  • AGPL-3.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install langfuse

Built from the published package, never by AI.

git clone --depth 1 https://github.com/trailofbits/buttercup /tmp/buttercup && mkdir -p ~/.claude/skills && cp -r /tmp/buttercup/.claude/skills/langfuse ~/.claude/skills/langfuse

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install langfuse in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill lets an AI assistant query or modify Langfuse data from the command line using langfuse-cli, which runs through npx or bunx. It covers resources such as traces, prompts, datasets, scores and sessions. The assistant discovers available resources and arguments with schema and help commands before it makes calls.

For documentation, the skill points to langfuse.com in three ways: the llms.txt index, individual pages fetched as markdown, and a search endpoint that also indexes GitHub issues and discussions. It also includes reference guides for instrumentation, prompt migration, user feedback scores, SDK upgrades and error analysis. The skill is aimed at developers building or debugging applications with Langfuse.

Written from the project's SKILL.md and checked against it.

What it can do

  • CLI API accessQueries or modifies any Langfuse API resource using langfuse-cli via npx or bunx.
  • Schema discoveryLists available resources and shows arguments for each action with help commands.
  • Documentation indexFetches the llms.txt index of all Langfuse documentation pages.
  • Markdown page fetchRetrieves individual Langfuse doc pages as clean markdown.
  • Documentation searchSearches Langfuse docs, GitHub issues and discussions through the search-docs endpoint.
  • Instrumentation guideProvides best practices for instrumenting an existing function or application.
  • Prompt migration guideDescribes how to move prompts from a codebase into Langfuse.
  • User feedback scoresCovers capturing thumbs, ratings and implicit signals as scores on traces.
  • Error analysis guideCovers reading traces, building a failure taxonomy and deciding what to fix.
  • Skill feedbackSubmits feedback about the skill's instructions to its maintainers.

What you need

  • Langfuse public and secret API keys
  • LANGFUSE_HOST set to a cloud or self-hosted Langfuse URL
  • npx or bunx to run langfuse-cli

Try asking

  • List the recent traces in my Langfuse project
  • Show me the Langfuse docs on tracing LangGraph agents
  • Help me migrate my prompts from this codebase into Langfuse

Good to know

  • Pre-approved CLI commands are limited to schema, help, list and get actions.
  • Search responses can be large and need to be filtered for relevant parts.
  • The skill requires LANGFUSE_HOST to be set, since the server must always be specified.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: .claude/skills/langfuse/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

Allowed tools: WebFetch(domain:langfuse.com)Bash(curl *langfuse.com/*)Bash(npx langfuse-cli api __schema *)Bash(npx langfuse-cli api * --help *)Bash(npx langfuse-cli api * list *)Bash(npx langfuse-cli api * get *)Bash(bunx langfuse-cli api __schema *)Bash(bunx langfuse-cli api * --help *)Bash(bunx langfuse-cli api * list *)Bash(bunx langfuse-cli api * get *)

  • SKILL.md6 KB
  • references/cli.md1 KB
  • references/error-analysis.md5 KB
  • references/instrumentation.md9 KB
  • references/prompt-migration.md8 KB
Show all 8 files
  • references/sdk-upgrade.md8 KB
  • references/skill-feedback.md2 KB
  • references/user-feedback.md4 KB

Alternatives to langfuse

All alternatives →

Compare with agent-reproduce-align, google_contacts or m06-error-handling

langfuse: common questions

Does the Langfuse skill need API keys?

Yes. The CLI reads LANGFUSE_PUBLIC_KEY and LANGFUSE_SECRET_KEY from the environment, and the source says to find them under Langfuse UI, Settings, API Keys.

Can it work with a self-hosted Langfuse server?

Yes. The source says LANGFUSE_HOST can be a self-hosted URL, and that the server must always be specified.

Can the skill change Langfuse data?

The CLI covers the full REST API, but the pre-approved commands in the skill are limited to schema, help, list and get actions.

How do I install langfuse?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is langfuse free?

The code is published under the AGPL-3.0 licence. The service it connects to may have its own pricing.

Is langfuse safe to use?

It scores 84 of 100. Grades: maintenance B, licence C, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to langfuse?

Similar skills: agent-reproduce-align, google_contacts, m06-error-handling, caveman.

langfuse Install

Add to stack

Loading.