← All projects
Project record1 mention
Originally shared on Hacker News

Langfuse AI Gateway

Open source AI gateway written in Rust, in beta, that traces every LLM call. Stateless with no database, it forwards native provider requests unchanged (no API translation), keeps provider keys out of team distribution, and lands calls inside existing Langfuse traces via a traceparent header. MIT licensed; self-hostable with Docker Compose or Helm or usable via Langfuse Cloud.

Last shared
01 / The problem

What it addresses

Much of a company's model traffic runs through code that is not or cannot be easily instrumented (coding agents like Pi, Claude Code and Codex, internal tools, scripts), so observability SDKs don't see those LLM calls; the gateway provides a scalable, reliable and secure way to emit traces for the gateway use case.

02 / Source history

Shared over time

Each entry reflects what was shared on that date. Details may have changed since then.

  1. Langfuse AI Gateway

    Open source AI gateway written in Rust, in beta, that traces every LLM call. Stateless with no database, it forwards native provider requests unchanged (no API translation), keeps provider keys out of team distribution, and lands calls inside existing Langfuse traces via a traceparent header. MIT licensed; self-hostable with Docker Compose or Helm or usable via Langfuse Cloud.

    Problem: Much of a company's model traffic runs through code that is not or cannot be easily instrumented (coding agents like Pi, Claude Code and Codex, internal tools, scripts), so observability SDKs don't see those LLM calls; the gateway provides a scalable, reliable and secure way to emit traces for the gateway use case.

    Posted by @clemo_ra · Original source ↗

    Story title · @clemo_ra · · Source ↗

    Show HN: Langfuse AI Gateway, open source rust gateway to trace every LLM call

    Submitted URL · @clemo_ra · · Source ↗

    https://github.com/langfuse/langfuse/tree/main/ai-gateway

    Source text · @clemo_ra · · Source ↗

    You change your base URL and your API key. Langfuse AI Gateway forwards the native request with a provider key that does not need to be distributed across the team. Right now, it doesn't translate between APIs, responses are relayed unchanged.

    Source text · @clemo_ra · · Source ↗

    If you pass a traceparent header, the call lands inside your existing Langfuse traces.

    Source text · @clemo_ra · · Source ↗

    Written in Rust. Stateless, with no database; it talks only to the Langfuse platform and the providers.

    Source text · @clemo_ra · · Source ↗

    MIT licensed. Self-host it with Docker Compose or Helm or use our Cloud version.

    Source text · @clemo_ra · · Source ↗

    Our observability SDKs currently see the code you instrument. Much of a company's model traffic runs through code that is not or cannot be easily instrumented: coding agents like Pi, Claude Code and Codex, internal tools, scripts etc.

    Source text · @clemo_ra · · Source ↗

    Much of a company's model traffic runs through code that is not or cannot be easily instrumented: coding agents like Pi, Claude Code and Codex, internal tools, scripts etc.