qmetrics.net

cost-xray

Wire-capture cost attribution for coding agents

cost-xray screenshot

cost-xray proxies Claude Code and Codex API traffic locally to show token and dollar costs per prompt slice, tool schema, and MCP block. It runs on macOS or Linux without changing agent API keys.

Overview

cost-xray installs as a transparent local hop using mitmproxy wrappers so Claude Code and Codex sessions can be captured without altering normal CLI usage. It records raw API requests, redacts secrets, and stores deduplicated traces under ~/.cost-xray/.

Unlike log parsers, it inspects assembled request payloads—including system prompts, tool schemas, MCP definitions, and cache boundaries—that never appear in local transcripts. Dashboards break down context window occupancy and attribute spend down to individual tool calls.

The cx CLI provides a live TUI to drill from agent to project, session, MCP server, and per-turn costs with cache read, write, and fresh splits. Background services auto-start on supported platforms, and capture can pause via cx stop.

Tokenizer calibration mixes tiktoken estimates with Anthropic count_tokens checks when available, keeping totals accurate while approximate splits guide optimization decisions.

Key features

  • Local API traffic capture
  • Per-source token attribution
  • MCP dead-weight detection
  • Live TUI dashboards
  • Claude Code and Codex support
  • Deduped trace storage
  • Self-healing proxy wrappers

Use cases

  • Debugging expensive agent turns
  • Trimming unused MCP schemas
  • Comparing cache effectiveness
  • Auditing coding agent spend

Tags

Similar software

Uptime Kuma

Self-hosted uptime monitoring with status pages and alerts

Uptime Kuma is a self-hosted monitoring tool for checking whether services stay online. It covers many probe types and can notify you through numerous messaging and email channels.

  • HTTP, TCP, and ping monitors
  • WebSocket and DNS record checks
  • Docker container monitoring
JavaScriptLinux, Windows, DockerDetails →
★ 95.2k⟳ todayMIT
Open Source Alternative to:ChecklyPingdom+1

Netdata

Per-second full-stack infrastructure observability platform

Netdata collects metrics, logs, and traces where they are generated, with per-second resolution, built-in dashboards, alerts, and machine learning anomaly detection on every metric.

  • Per-second metric collection
  • ML anomaly detection per metric
  • OpenTelemetry ingestion
GoLinux, macOS, Windows, DockerDetails →
★ 81.8k⟳ todayGPL-3.0
Open Source Alternative to:AppDynamicsApplication Insights+13

Grafana

Composable observability and data visualization platform

Grafana queries, visualizes, and alerts on metrics, logs, and traces from many backends. Teams build and share dashboards to explore operational data.

  • Flexible visualization panels and plugins
  • Dynamic dashboards with template variables
  • Ad-hoc metrics explore and drilldown
GoDetails →
★ 78.5k⟳ todayAGPL-3.0
Open Source Alternative to:AppDynamicsApplication Insights+8

Prometheus

Open-source metrics monitoring and time series database

Prometheus collects metrics from configured targets, evaluates rules, and can raise alerts. It stores time series data and exposes a query language called PromQL.

  • Multi-dimensional time series model
  • PromQL query language
  • HTTP pull-based metric collection
GoDockerDetails →
★ 68.2k⟳ todayApache-2.0
Open Source Alternative to:CloudWatchDash0+6

Sentry

Developer error tracking and performance monitoring

Sentry is a debugging platform for detecting, tracing, and fixing application issues. SDKs connect code to error, performance, replay, and related signals in one workflow.

  • Error and exception tracking
  • Application performance monitoring
  • Connected logs, replays, and traces
PythonDetails →
★ 45.9k⟳ todaySource-available

Stats

Free macOS menu bar system monitor

Stats shows CPU, GPU, memory, disk, network, sensors, and battery readings from the macOS menu bar. It runs on Apple Silicon and Intel Macs with customizable modules and widgets.

  • Nine monitoring modules
  • Thirteen menu bar widget styles
  • CPU and GPU load with temperatures
SwiftmacOSDetails →
★ 43.8k⟳ todayMIT
Open Source Alternative to:iStat Menus