How Open WebUI reaches Langfuse through Pipelines
If your team runs a self-hosted Open WebUI and needs usage, cost and conversation traces in a self-hosted Langfuse, the supported route is the Langfuse pipeline running on Open WebUI Pipelines. Open WebUI does not offer a native Langfuse setting, so the connection is a separate component that you deploy, configure and maintain alongside Open WebUI. Pipelines is a UI-agnostic plugin framework that sits between the user and the model provider, intercepts each prompt, and forwards it onward. The Langfuse pipeline uses that position to record what passes through: application traces, usage patterns, cost by user and model, and the data that evaluations need. The method is described in the Langfuse Open WebUI documentation, which should be the first read before you plan the work.
Because the pipeline sits in the request path, its placement is the main design decision. Every chat request from Open WebUI to Ollama, OpenAI, Anthropic or another OpenAI-compatible provider passes through it, so a failure or slow response in Pipelines affects users directly. Decide where the Pipelines service runs, how it is scaled with Open WebUI, and what happens to chats when it is down. Confirm with the Langfuse documentation which Pipelines version and pipeline file it expects, and whether the pipeline's Langfuse host and project keys are set through environment variables or the Pipelines interface in your version.
Plan the user identity mapping before the first test run. The usage and cost views are only useful if traces carry a user and model attribute that matches your directory, so check how Open WebUI user identities arrive at the pipeline when you use SSO, SCIM or local accounts. Also confirm which Langfuse project receives the traces, since keys are scoped to a project and mixing teams or environments in one project makes cost reports harder to read. Run a set of test conversations across two users and two models, then compare the traces in Langfuse with what each user actually sent before you widen access.
Where Pipelines sits between users, Open WebUI, model providers and Langfuse
The flow starts with a user's chat message in Open WebUI. Pipelines intercepts that request through the Langfuse pipeline, which records the trace, usage and cost by user and model before forwarding the prompt to Ollama or another OpenAI-compatible provider. Trace data then goes to Langfuse Web for ingestion and to Langfuse Worker for asynchronous processing. Check that every hop you draw inside the dashed boundary stays in your infrastructure, and confirm which provider endpoints sit outside it.
Chat request and trace paths through Pipelines to self-hosted Langfuse.
What you need running before the pipeline is connected
The Langfuse pipeline in Pipelines only forwards what the surrounding stack can produce, so each component below must work on its own before you connect them. Check the Langfuse instance, the Open WebUI deployment, the Pipelines service and the model backend in that order, and confirm each version against its source before you start.
Self-hosted Langfuse with project keys
Open WebUI traces land in a Langfuse project, so you need a running self-hosted instance and a project with a public and secret API key pair. Create the keys in the project settings, store the secret key in your secrets manager, and confirm that the Langfuse host is the address your Pipelines container will use. A Langfuse instance that is only reachable from your laptop will accept no traces from the rest of the stack. Confirm the Langfuse version you run against the Langfuse self-hosting docs before you copy any configuration.
Langfuse self-hosting docsOpen WebUI version confirmed
Pin the Open WebUI release you deploy and check it against the project's release list before you install the pipeline. The Langfuse pipeline depends on how Open WebUI routes chat requests to Pipelines, so a version mismatch is a common cause of missing traces. Record the exact tag in your change record so that a later upgrade can be tested against the same baseline.
Open WebUI releasesPipelines service running
Pipelines is a separate service that Open WebUI calls to intercept and forward prompts, so it must be deployed, reachable and registered before any Langfuse pipeline can run. Run it as its own container or process, and confirm in the Open WebUI admin settings that it appears as a connection. Confirm the exact Pipelines release and the Langfuse pipeline version against the source docs, because the pipeline code and its configuration fields change between releases.
Model backend reachable
Open WebUI needs at least one model backend to answer chats, either Ollama on a host you control or an OpenAI-compatible provider. Test the backend directly before adding Langfuse so that a failing model call is not mistaken for a tracing fault. For a local Ollama server, confirm which address it listens on, since its default bind is local only and the Pipelines and Open WebUI containers must be able to reach it.
PostgreSQL and Redis for replicas
Open WebUI's scaling guide requires PostgreSQL instead of SQLite for multi-instance deployments, because SQLite does not handle concurrent writes from multiple processes well. Multiple replicas also need Redis as a shared state store for sessions, websocket connections and application state. Plan both before you add replicas, and confirm the current requirements in the Open WebUI scaling guide.
Open WebUI scaling guideShared storage and network paths
Every Open WebUI replica must reach the same uploads and knowledge files, so provide shared file storage before you scale out. Then map the network path from the Pipelines container to the Langfuse host, including DNS, TLS trust for any internal certificate authority and firewall rules. A test request from the Pipelines container to the Langfuse API is the quickest way to rule out network faults before you debug the pipeline itself.
Configuring the Langfuse pipeline step by step
This sequence connects a self-hosted Open WebUI to a self-hosted Langfuse through Pipelines, so each chat is traced with the user and model that produced it. Each step ends with a check you can run before moving on. Run it in a test environment first, since the exact valve names and pipeline files come from the Langfuse and Open WebUI documentation for your versions.
Create the Langfuse project and API keys
In your self-hosted Langfuse, create a project dedicated to Open WebUI traces so its data stays separate from other applications, then generate a public and secret API key pair for that project. Store the secret key in your secrets manager and limit who can read it. Record the host URL that the Pipelines container will use to reach Langfuse, because the next steps depend on it. Done when the project appears in the Langfuse UI, both keys are listed in its settings, and you have written down the host URL.
Deploy Pipelines alongside Open WebUI
The platform team runs Pipelines as a separate service next to Open WebUI, on the same Docker network or in the same Kubernetes namespace, so Open WebUI can reach it by service name. Pin both Open WebUI and Pipelines to versions you have tested, and set the Pipelines API key that Open WebUI will use later. Check the image tag and startup settings against the Open WebUI documentation for your release. Done when the Open WebUI container resolves the Pipelines service by its internal name and the Pipelines logs show a clean startup with no errors.
Install the Langfuse pipeline into Pipelines
Add the Langfuse pipeline file to the Pipelines service using the method in the Langfuse Open WebUI guide, then restart Pipelines so it loads the file. Confirm the pipeline's required Python dependencies are present in the container, since a missing package is the most common reason a pipeline fails to load. Done when the Langfuse pipeline appears in the list of loaded pipelines and the startup logs show no import or load errors.
Set the Langfuse host and keys in valves
Open the Langfuse pipeline's settings and enter the host URL and the public and secret keys from step one. Depending on the pipeline version, these appear as valves in the pipeline configuration or as environment variables on the Pipelines container. Use the names shown in the pipeline's own configuration and the Langfuse guide, and avoid pasting keys into shared chat or ticket threads. Done when the settings save without errors and the host field shows your self-hosted address, not the Langfuse Cloud default.
Connect Pipelines to Open WebUI as a connection
In the Open WebUI admin settings, add an OpenAI-compatible connection that points to the Pipelines service URL and uses the Pipelines API key from step two. Check the Langfuse guide to see whether the pipeline attaches as a filter to existing models or appears as its own model entry, since that decides which models you test with. Done when Open WebUI saves the connection and the models that Pipelines exposes appear in the model selector of a chat.
Send a test chat from a named user
Sign in to Open WebUI as a dedicated test user, select a model that is covered by the pipeline, and send a short prompt with a known phrase so the trace is easy to find later. Keep the test to a single model at first. Done when Open WebUI returns a complete response and the Pipelines logs show the request passed through the Langfuse pipeline without errors.
Confirm the trace with user and model attributes
In the Langfuse UI, open the tracing view for the project and find the trace from your test chat. Check that the user identifier matches the test user, the model name matches the model you selected, and the input and output match your prompt and the response. Token usage and cost appear only when Langfuse has pricing for the model. If the user or model attribute is missing, confirm in the Langfuse Open WebUI guide which metadata your Open WebUI version passes to the pipeline. Done when the trace shows both attributes correctly.
How Open WebUI users, models and chats appear in Langfuse
This table maps each Open WebUI attribute to the Langfuse trace, user, session and generation field where it usually lands through the Langfuse pipeline. Read it as a planning reference: confirm exact field names in the pipeline source for your pinned version before you build dashboards on them. The main takeaway is that cost by model only appears when the model name matches a price definition in Langfuse.
| Open WebUI attribute | Langfuse field | What to confirm before go-live |
|---|---|---|
| User identity | Trace user ID and user metadata | Confirm whether the pipeline sends the Open WebUI user ID, email or name, and whether that matches your privacy policy |
| Model name | Generation model name | Confirm the exact string the pipeline sends, since cost matching depends on it |
| Chat identifier | Session ID | Confirm that one chat maps to one session across follow-up messages |
| Individual prompt and reply | Trace input and output, generation input and output | Check how system prompts and uploaded file content are captured and masked |
| Token usage | Generation usage details (input and output tokens) | Confirm whether the provider returns token counts for every model you expose |
| Cost by model | Generation cost, calculated from model pricing | Define pricing in Langfuse for each model name, or cost fields stay empty |
| Pipeline or application tags | Trace tags and metadata | Confirm which tags are set so you can filter by environment or Open WebUI instance |
Capturing usage and cost by user and model
The Langfuse pipeline for Open WebUI records each chat as a trace, and the usage and cost views in Langfuse depend on what the pipeline sends with it. Before you rely on those dashboards for chargeback or capacity decisions, confirm in your own test instance which user, model and token fields arrive in Langfuse for a sample chat, because the exact fields depend on the pipeline version and the Open WebUI release you run. Open WebUI v0.12.3 was published on October 16, 2026, so validate against the version you deploy, not the one in older examples. Cost in Langfuse is derived from token counts multiplied by a price definition attached to the model name. If the model name in the trace does not match a price definition, the cost field stays empty or wrong, so treat model name matching as a first test.
Hosted models from OpenAI, Anthropic or other providers usually come with prices that Langfuse can match by model name, but confirm that for each model you expose. Local Ollama models are different. Ollama states that running models on your own hardware is always unlimited, so no provider invoice exists to copy a price from. Token counts may still be captured, but the cost is zero or meaningless until you define a price or an internal cost basis for each local model, such as amortized hardware and power. Decide who owns that basis, how often it is reviewed, and whether a local model should appear in cost reports at all, since comparing local and hosted spend requires a consistent method.
Three decisions shape this section. First, user identifiers: a user's email or name in a trace is personal data, so decide whether to send a stable pseudonymous ID instead and document the choice alongside your retention settings. Second, which models are priced: list every model available in Open WebUI, including connections to Ollama and remote providers, and mark each as priced, estimated or excluded. Third, dashboard grouping: agree in advance whether reports group by user, team, model or a combination, and make sure the grouping field is set consistently in every chat. Ask DeployOpen or your own engineers to run a two-week pilot report and check it against the provider invoices before anyone uses it for budgets.
Securing the pipeline and the trace data
The Langfuse pipeline sits between Open WebUI users and your trace store, so it holds credentials, controls configuration and decides what chat content leaves the chat tier. The cards below cover the four decisions that shape that exposure, and the Langfuse and Open WebUI controls that enforce them.
Protect the Langfuse keys in Pipelines
The Langfuse pipeline needs a public and secret key pair to send traces. Anyone who can read the pipeline's valve settings or the Pipelines container environment can copy those keys and write false or misleading traces into your project. Scope the keys to a dedicated Langfuse project for this integration, store them in your secrets manager or container secrets rather than in plain configuration exports, and plan a rotation procedure before go-live. Confirm with your team where Open WebUI stores valve values in its database and who holds backups of it.
Langfuse Open WebUI docsLimit who edits pipeline valves
Valves are the runtime settings of a pipeline, including the Langfuse host, keys and options that control what gets captured. In Open WebUI, restrict pipeline administration to a small admin group using its role-based access control, and keep regular users out of the admin area entirely. Review changes to valves as configuration changes, since a single edit can switch the destination host or widen the data captured.
Open WebUI featuresRestrict the network path to Langfuse
Open a single outbound route from the Pipelines container to the Langfuse web endpoint, and block other egress from that container. Keep Langfuse on a private address or behind an internal load balancer so that only the Pipelines host and approved administrators can reach its API. Verify the route with a test trace from the Pipelines container and confirm that the Langfuse host in valves matches the internal name your certificates cover.
Decide what chat content gets stored
Traces can include full prompts, model responses, uploaded document text and retrieved knowledge passages. Decide per use case whether the trace needs message content or only usage, cost, model and user identifiers, and configure the pipeline to match that decision. Document the choice with your privacy and security teams, because stored prompts become personal data in the trace store and are copied into every backup.
Enforce SSO and disable password sign-in
Langfuse supports SSO through Auth.js providers and can disable password sign-in or enforce SSO for given email domains. Open WebUI supports SSO through OIDC and LDAP, with SCIM 2.0 for provisioning. Put both applications behind the same identity provider so that a leaver loses access to chat and to the trace viewer at the same time. Check which Langfuse login options are available on your plan before you rely on them.
Langfuse SSO docsUse Enterprise controls for masking and retention
Server-side data masking and data retention policies are Enterprise features that need a Langfuse license key, and they are the controls that limit what Langfuse keeps after capture. Without them, plan retention and redaction through the pipeline itself and through your ClickHouse and backup policies. Ask Langfuse for the current feature list for your license tier before you design around a specific control.
Evaluating conversations captured from Open WebUI
Once the Langfuse pipeline is forwarding Open WebUI traces, the captured conversations become the working set for evaluation. Each trace records the user, the model and the usage and cost the pipeline captured, so a reviewer can pull the exchanges for a given user group or model and read them in the Langfuse trace view. Decide before go-live who reviews traces, how often, and which conversations they sample. Without that decision, traces accumulate with no owner and no quality signal. Confirm in your own environment which trace fields your pipeline version sends, since the review workflow depends on user and model metadata being present on every trace.
Scores are how review findings persist. Reviewers or automated checks can attach scores to a trace, so a poor answer can be tagged and later filtered alongside the cost and usage data for the same model. Agree on a small, fixed scoring scheme before reviewers start, such as a single relevance or correctness rating with a written definition, and record who may assign scores. Scores added in the UI are a manual process. Confirm with your pipeline version whether it attaches scores or whether you will add them through the Langfuse API, because that choice determines who maintains the scoring code.
Evaluators run on captured output and produce scores without a person reading each conversation. Because Open WebUI conversations are stored as traces, you can select a sample of them as input for evaluators, but the scope of what each evaluator sees depends on how the pipeline maps messages into the trace. Before relying on automated scores, check that the captured input and output match what users actually saw, including system prompts and retrieved context if your deployment uses retrieval. Treat evaluator results as triage signals that route conversations to human review. For evaluator setup, judge models and experiments, see the separate Langfuse evaluations and datasets content on this site.
Why traces are missing or cost is wrong
This table lists the failures teams most often hit when Open WebUI chat usage should appear in Langfuse but does not, or appears with wrong cost or identity. Read each row as a symptom, its likely cause and the first fix to try. Check connectivity and keys before changing model pricing or scaling, since those are the cheapest checks.
| Symptom | Likely cause | Fix |
|---|---|---|
| No traces appear in Langfuse | Wrong Langfuse host or project keys in the pipeline valves, or the pipeline container cannot reach the Langfuse host | Confirm the host URL and key pair match the target project, then test connectivity from the Pipelines container, not from your laptop |
| No traces for one model | The Langfuse pipeline is not enabled on that model or is set up for another model in the model selector | Enable the pipeline for the model in Open WebUI admin settings and send a test chat to confirm a new trace |
| Pipelines service unreachable | Open WebUI cannot reach the Pipelines server URL or API key differs from the one configured | Check the Pipelines URL and key in Open WebUI connection settings and review Pipelines container logs for connection errors |
| Traces have no user identity | User fields are not passed through to the pipeline, so traces are grouped under a generic or empty user | Confirm the pipeline reads the user information Open WebUI sends and check the user attribute in a test trace before reporting by user |
| Cost shows as zero | The model name in the trace has no price definition in Langfuse, so no cost is calculated | Add a model definition with input and output prices for that exact model name in Langfuse, then confirm the model name in the trace matches it |
| Duplicate traces | Open WebUI retries a request, or several Open WebUI replicas each forward the same event to Langfuse | Check retry settings and whether more than one pipeline instance forwards events, and deduplicate by trace or request ID during analysis |
| Traces stuck or delayed | Langfuse Worker is under load and cannot process ingestion events quickly enough | Check Worker CPU and queue health, scale worker containers on CPU load as the Langfuse scaling guide recommends, and confirm ClickHouse and Redis or Valkey are not the bottleneck |
Questions buyers ask before connecting Open WebUI to Langfuse
Does connecting Open WebUI to a self-hosted Langfuse cost money for the software itself?
The Langfuse core features are MIT licensed and available in the open source version without limits, and self-hosted deployments use the same codebase as Langfuse Cloud. Your software cost for Langfuse is therefore zero for core features, but the infrastructure is not free: you pay for the virtual machines or Kubernetes nodes, PostgreSQL, ClickHouse, Redis or Valkey, and S3-compatible blob storage that Langfuse runs on. Features such as project-level RBAC, audit logs, data retention policies and SCIM provisioning need an Enterprise license key, which is quoted on request. Open WebUI is a separate question covered below.
Do we need an Open WebUI enterprise license before rolling it out?
It depends on the number of users. The Open WebUI License forbids altering or removing Open WebUI branding in deployments that exceed 50 users in any rolling 30-day period, unless the operator holds an enterprise license or written contributor permission. Below that threshold the branding rule does not apply. Above it, you need to decide whether you keep the branding, buy an enterprise license that allows white-labeling, or obtain written permission. Enterprise pricing is not published; you contact Open WebUI enterprise sales with an expected seat count to get a quote.
How long does it take to connect Open WebUI to Langfuse through Pipelines?
The timeline depends on whether Langfuse already exists in your environment and how many moving parts you add. A working connection, with the Pipelines service running, the Langfuse pipeline configured with project keys and a test chat traced end to end, is a small piece of work. The larger effort is the surrounding platform: sizing and deploying Langfuse, securing its endpoints, setting up SSO, and agreeing how usage is reported by user and model. No duration is set here, so ask any provider for a written timeline tied to a written scope.
What does the work need from our team?
Expect to supply several roles and decisions up front:
Can our own engineers do this without a partner?
Yes, if your team has experience running containers, a PostgreSQL and ClickHouse database, and an identity provider. The Open WebUI Pipelines setup and the Langfuse pipeline configuration are documented and do not require custom code for basic tracing. Teams usually find the harder parts are the production Langfuse deployment, backups and restores, scaling for ingestion, and the identity and access decisions. Weigh your team's capacity for ongoing operation, not only the first connection. DeployOpen plans, implements, hardens, backs up and documents self-hosted platforms in your infrastructure, so a partner can cover all or part of that work under a written scope.
What drives the effort up or down for this integration?
Effort rises with the number of users and models, the depth of usage reporting you need, and the number of environments. Traffic volume matters because a busy Open WebUI instance produces more traces, which increases load on Langfuse Worker and ClickHouse. Multi-replica Open WebUI also needs PostgreSQL, Redis and shared file storage, which adds work before tracing starts. Evaluations, retention rules and access controls each add design work. Ask any provider to price these drivers separately in the quote.
Which Langfuse data-handling risks should we review before enabling tracing?
Traces capture prompts, model responses and user identifiers, so personal data can end up in Langfuse. Decide which content is recorded, who can view it, how long it is kept and whether masking is needed. Retention policies and server-side data masking are Enterprise features, so if you need them, factor the license into the decision before go-live. Plan these controls with your security and compliance teams, and confirm the current feature list in the Langfuse license key documentation.
How DeployOpen scopes and delivers this integration
DeployOpen plans, builds and hands over the Open WebUI to Langfuse tracing path inside your own infrastructure, from the Pipelines filter to the Langfuse project that receives usage and cost data. Engagements are fixed-scope, so the scope, deliverables and timeline are agreed in writing before any configuration begins.
How we scope
- Confirm the Open WebUI version, install method and whether it runs as a single instance or multiple replicas.
- Record which model providers, including local Ollama endpoints, each user group will reach through Open WebUI.
- Agree in writing which Langfuse projects, user attributes, cost views and evaluation workflows are in the deliverables.
How we build
- Deploy the Langfuse Pipelines filter in a test Open WebUI instance and verify traces, users and models before rollout.
- Configure Langfuse host, keys and metadata mapping so usage and cost appear by user and model.
- Test the evaluation setup on sample conversations and check that personal data handling matches your policy.
How we hand over
- Deliver configuration records, the pipeline deployment steps and a list of the Langfuse keys and where they are stored.
- Document how to upgrade the Pipelines component and Open WebUI without losing trace continuity.
- Walk your platform and security teams through trace review, cost reports and the findings from the verification run.
How we support
- Ongoing support, upgrades and continuous testing are available as a retainer after handover.
- Retainers can cover Open WebUI and Langfuse version changes, including checks against release notes before each upgrade.
- Confirm response expectations and any support SLA with your written scope, since none is set by default.

