← ClaudeAtlas

langfuse-setuplisted

Set up or disable Langfuse observability for Claude Code sessions. Manages hook configuration, credential verification, and connection testing.
stevengonsalvez/agents-in-a-box · ★ 10 · AI & Automation · score 76
Install: claude install-skill stevengonsalvez/agents-in-a-box
# Langfuse Setup Set up, check, or disable Langfuse observability tracing for Claude Code hook-based sessions. ## Quick Reference | Command | Action | |---------|--------| | `/langfuse-setup` | Interactive setup wizard | | `/langfuse-setup:status` | Check current Langfuse configuration status | | `/langfuse-setup:disable` | Remove Langfuse hooks and disable tracing | --- ## /langfuse-setup -- Interactive Setup Wizard When invoked without a sub-command, run the full setup flow. ### Initial Response ``` I'll walk you through setting up Langfuse observability for your Claude Code sessions. This will: 1. Verify your Langfuse credentials 2. Configure PreToolUse / PostToolUse hooks in settings.json 3. Test the connection to your Langfuse instance Let me check your current environment. ``` ### Step 1: Check Credentials Look for `LANGFUSE_PUBLIC_KEY` and `LANGFUSE_SECRET_KEY` in the current environment: ```bash # Check if credentials are set (print existence only, never echo values) if [ -n "$LANGFUSE_PUBLIC_KEY" ] && [ -n "$LANGFUSE_SECRET_KEY" ]; then echo "LANGFUSE_PUBLIC_KEY is set" echo "LANGFUSE_SECRET_KEY is set" else echo "LANGFUSE_PUBLIC_KEY is ${LANGFUSE_PUBLIC_KEY:+set}${LANGFUSE_PUBLIC_KEY:-NOT SET}" echo "LANGFUSE_SECRET_KEY is ${LANGFUSE_SECRET_KEY:+set}${LANGFUSE_SECRET_KEY:-NOT SET}" fi ``` **If either key is missing**, stop and instruct the user: ``` One or more Langfuse credentials are missing from your environment. Add the following