OpenTelemetry wrapper for Claude Code CLI that logs tool calls, token usage, costs, and execution traces to Logfire, Sentry, Honeycomb, or Datadog. Drop-in replacement that swaps 'claude' command for 'claudia'.
git clone https://github.com/TechNickAI/claude_telemetry.gitclaude_telemetry adds full observability to Claude Code by wrapping the CLI with OpenTelemetry tracing. Every agent run captures tool calls, token counts, costs, execution time, and errors—visible in Logfire, Sentry, Honeycomb, Datadog, or any OTEL backend. The wrapper is a drop-in replacement: use 'claudia' instead of 'claude code' on the command line or call run_agent_with_telemetry() in Python scripts. This solves the visibility gap when running agents headless in CI/CD pipelines, cron jobs, or production environments where console output isn't available. Engineers can debug remote failures without local reproduction, track costs to optimize expensive workflows, and understand exactly what happened during each execution.
Install with pip install claude_telemetry, then use 'claudia' instead of 'claude code' on the command line—all existing flags work unchanged. For Python scripts, import run_agent_with_telemetry and pass your prompt. Configure your observability backend via environment variables (LOGFIRE_TOKEN, SENTRY_DSN, or OTEL_EXPORTER_OTLP_ENDPOINT).
Debug Claude Code agent failures in CI/CD pipelines without reproducing locally
Track token usage and costs for production agent runs to optimize expensive workflows
Monitor headless agents in cron jobs and automated tasks with full execution traces
Capture tool call sequences and timing for performance analysis and bottleneck identification
No install command available. Check the GitHub repository for manual installation instructions.
git clone https://github.com/TechNickAI/claude_telemetryCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
I want to use Claude Telemetry to monitor my AI interactions. Here's my setup: [COMPANY] is a [INDUSTRY] company. We currently use [CURRENT_TOOLS] for observability. I want to track [SPECIFIC_METRICS] like token usage, costs, and execution traces. Can you guide me through setting up Claude Telemetry with [TARGET_PLATFORM]?
## Claude Telemetry Setup Guide for [COMPANY] ### Current Observability Stack - **Platform**: [TARGET_PLATFORM] - **Current Tools**: [CURRENT_TOOLS] - **Key Metrics**: Token usage, costs, execution traces ### Recommended Setup 1. **Installation**: Replace the `claude` command with `claudia` by installing the Claude Telemetry wrapper. 2. **Configuration**: Set up the wrapper to log to [TARGET_PLATFORM]. 3. **Monitoring**: Track [SPECIFIC_METRICS] to optimize AI interactions. ### Expected Benefits - **Cost Optimization**: Monitor token usage to reduce costs. - **Performance Insights**: Track execution traces to identify bottlenecks. - **Compliance**: Ensure all AI interactions are logged for auditing.
Real-time monitoring and observability for cloud infrastructure
Real-time error tracking and performance monitoring
Accounting software with automated invoicing and reporting
AI assistant built for thoughtful, nuanced conversation
Agentic AI Workflow platform
Connected workspace for docs, wikis, and projects
Take a free 3-minute scan and get personalized AI skill recommendations.
Take free scan