Open-Sourced Voice Agent Cost Profiler

mahimairaja · reddit · 2026-07-18

The author open-sourced a profiler for voice agents called VoiceGateway. It specifically addresses the issue where voice agents like LiveKit or Pipecat concurrently call STT, LLM, and TTS during a single conversation, making cost and latency attribution extremely difficult.

It only requires a single line to integrate: voicegateway.attach(session), and it will log for every call:

The author emphasizes that it is self-hosted, uses your own keys, and its telemetry does not sit directly in the audio path. It is MIT-licensed and compatible with any provider. They are also asking for feedback at the end of the post on what other metrics should be tracked per call.

Original post →

More from coding & agent

coding & agent channel →