8 Open Source LLMOps Tools You Can Self-Host
These eight open source LLMOps tools cover tracing, prompt testing, experiment tracking and cost control, and all of them run on your own infrastructure.
On this page
Short answer
The best open source LLMOps tools you can self-host are MLflow, Langfuse, Promptfoo, Phoenix, LiteLLM, OpenLLMetry, Evidently AI and DeepEval. Together they cover tracing, prompt testing, experiment tracking and cost control, so pick the one that fills the gap your team has today.
Which open source LLMOps tools are worth self-hosting?
The open source LLMOps tools worth self-hosting are the ones that cover the jobs a production LLM app needs: tracing what the model did, testing prompts before release, tracking experiments and watching costs. The eight below are all open source and can run on your own infrastructure.
Use the comparison to shortlist. This list covers only tools you can self-host; managed-only tools are a different shortlist.
| Tool | Main job | Self-hosting | Best for |
|---|---|---|---|
| MLflow | Experiment tracking and model registry | Yes, server plus storage | Teams tracking many runs |
| Langfuse | Tracing and evaluation for LLM apps | Yes, Docker or Kubernetes | Seeing what the model did |
| Promptfoo | Prompt testing in CI | Yes, runs in CI | Catching prompt regressions |
| Phoenix | Tracing and evaluation | Yes, single container | Quick local tracing |
| LiteLLM | One API for many model providers | Yes, proxy server | Switching providers |
| OpenLLMetry | OpenTelemetry tracing for LLMs | Yes, standard collector | Teams already on OpenTelemetry |
| Evidently AI | Evaluation and monitoring reports | Yes, Python library | Regular quality reports |
| DeepEval | Unit tests for LLM outputs | Yes, runs in CI | Testing RAG answers |
Pick the tool that covers the job you are missing today. Most teams need tracing first, then prompt testing, and only then a full experiment registry.
MLflow and Langfuse
1. MLflow: best for tracking many experiments
MLflow is the most widely used open source tool for tracking machine learning experiments. It records parameters, metrics, code versions and artefacts for every run, so a team can compare hundreds of training runs and know exactly which model came from which code and data. Its model registry adds versioning, stage labels and approval steps for promoting a model to production.
For LLM work, MLflow is strongest at the training and fine-tuning side: tracking fine-tuning runs, comparing base models and keeping the registry as the single source of truth for which model is live. It is less focused on prompt tracing, which is where the next tools on this list come in.
Pros:
- Tracks parameters, metrics and artefacts for every run
- Model registry with versioning and approval stages
- Large community and many integrations
Cons:
- Needs a server and storage to run well
- Little built-in support for prompt tracing
- Setup takes time for small teams
2. Langfuse: best for seeing what the model did
Langfuse is an open source tracing and evaluation platform for LLM apps. It records each request, the prompt, the retrieved context, the model response, latency and cost, so a team can replay a bad answer and see exactly what the model was given. That trace is the difference between guessing why an answer went wrong and knowing.
It also supports scoring, so human reviewers or automated checks can grade traces, and dataset-based evaluation, so a new prompt or model can be tested against a fixed set of cases before release. It runs in Docker or Kubernetes, and teams that need it can also use a hosted version, though this list focuses on the self-hosted path.
Pros:
- Full traces: prompt, context, response, latency and cost
- Scoring and dataset evaluation built in
- Runs in Docker or Kubernetes
Cons:
- Storage grows quickly on high-traffic apps
- Needs database and object storage to run
- Evaluation setup takes a few days to tune
Promptfoo and Phoenix
3. Promptfoo: best for catching prompt regressions
Promptfoo is an open source tool that tests prompts and RAG pipelines in CI, the same way unit tests check code. You define test cases with expected outputs or scoring rules, run them against several models or prompt versions, and get a report showing which cases passed, which failed and how each version compares.
Its strength is catching regressions: a small prompt edit that fixes one case and breaks five others shows up in the report before the change ships. It runs from the command line, so it fits into an existing CI pipeline with little extra infrastructure, and it works with many providers through a simple configuration file.
Pros:
- Catches prompt regressions before they ship
- Runs in CI with no server to maintain
- Compares models and prompt versions side by side
Cons:
- Needs a good set of test cases to be useful
- Scoring rules take time to write well
- Less suited to live monitoring than tracing tools
4. Phoenix: best for quick local tracing
Phoenix, from Arize, is an open source observability tool for LLM apps that focuses on tracing and evaluation. It collects spans for each request, shows retrieval and generation steps in a trace view, and adds evaluation for relevance, toxicity and hallucination using either built-in checks or your own evaluators.
Its main advantage is how fast it is to start: a single container or a few lines of Python gives you a working trace view on your own machine, which makes it a good first tracing tool for a team that has nothing yet. For production use it can run as a shared service, though teams with high traffic will need to plan storage.
Pros:
- Starts in minutes with a single container
- Trace view shows retrieval and generation steps
- Built-in evaluations for common quality problems
Cons:
- Fewer features than larger tracing platforms
- Storage needs planning at high traffic
- Evaluation quality depends on the chosen checks
LiteLLM and OpenLLMetry
5. LiteLLM: best for switching model providers
LiteLLM is an open source proxy that gives you one API for many model providers. Your app calls LiteLLM with a single format, and LiteLLM routes the call to the provider you choose, handling the differences in request format, authentication and error handling. Switching from one provider to another becomes a configuration change, not a rewrite.
It also tracks spend per model, per key and per team, which makes cost control practical: you can see which feature burns the most tokens and set budgets per key. It runs as a small proxy server, so it fits into an existing deployment without much extra work.
Pros:
- One API for many model providers
- Switching providers is a configuration change
- Spend tracking per key, model and team
Cons:
- Another service in the request path to monitor
- Provider-specific features may not be exposed
- Needs its own reliability and scaling plan
6. OpenLLMetry: best for teams already on OpenTelemetry
OpenLLMetry is an open source set of extensions that adds LLM tracing to OpenTelemetry, the standard most teams already use for traces, metrics and logs. It instruments popular LLM libraries automatically, so prompts, completions, token counts and costs appear as spans in the same trace view your engineers already use for the rest of the system.
The benefit is that LLM behaviour stops being a separate silo: a slow user request shows the database query, the retrieval step and the model call in one trace, and alerts can cover LLM cost and error rates with the same tooling as the rest of the stack. It needs a working OpenTelemetry setup, so it fits teams that already have one.
Pros:
- LLM traces appear in your existing trace view
- Works with standard OpenTelemetry collectors
- One place for cost, latency and error alerts
Cons:
- Needs an OpenTelemetry setup already in place
- Less evaluation features than dedicated platforms
- Instrumentation quality varies by library
Evidently AI and DeepEval
7. Evidently AI: best for regular quality reports
Evidently AI is an open source Python library for evaluating and monitoring machine learning and LLM systems. It generates reports that compare a new model or dataset against a reference, covering drift, data quality and, for LLM apps, text quality checks such as relevance and toxicity. The reports are HTML files a team can share and review without a server.
It fits teams that want a regular quality check rather than a live dashboard: run it weekly against production samples, and the report shows whether the answers are getting better or worse. It is a library, not a platform, so it works well alongside a tracing tool rather than replacing one.
Pros:
- Clear HTML reports that are easy to share
- Drift and quality checks in one run
- No server needed for basic reports
Cons:
- A library, not a live monitoring platform
- Reports need someone to read them regularly
- LLM checks need careful configuration
8. DeepEval: best for testing RAG answers
DeepEval is an open source framework for unit testing LLM outputs, with a focus on RAG apps. It provides metrics for answer relevance, faithfulness to the retrieved context, and context precision, so a team can write tests such as 'the answer must be supported by the retrieved documents' and run them in CI on every change.
Its strength is that it treats LLM quality like software quality: tests fail when an answer drifts, and the failure message shows which metric dropped and why. That makes it a natural partner for Promptfoo, which runs the tests, while DeepEval supplies the scoring logic for RAG-specific checks.
Pros:
- Metrics designed for RAG answers
- Tests fail in CI when quality drops
- Clear failure messages per metric
Cons:
- Needs a good evaluation dataset to be useful
- Metrics use models themselves, so they cost tokens
- Less suited to non-RAG apps
How to choose an open source LLMOps tool
You choose by matching the tool to the job you are missing: tracing, prompt testing, experiment tracking or cost control. Start with the biggest gap, pilot one tool for two weeks, and only then add a second.
- Name the missing job. Cannot see what the model did, cannot test prompts, or cannot track costs are the usual gaps.
- Shortlist one tool per job. If two tools cover the same job, pick the one with the simpler setup.
- Check the self-hosting cost. Count the database, storage and maintenance time, not only the licence, which is free.
- Pilot on one app for two weeks. Trace real requests, run real tests, and ask the team whether the data helped.
- Keep what proves useful. Adopt the tools that change a decision, and drop the ones nobody opens.
Most teams end up with two or three tools: a tracing tool, a prompt testing tool, and optionally an experiment registry. MLOps consulting can help set up the tracing and evaluation pieces for a production app.
What are the common mistakes?
The most common mistakes are installing every tool at once, skipping the evaluation dataset, and never reading the traces the tools collect. A tool only helps when someone acts on what it shows.
- Installing everything at once. Four tracing tools produce four half-used dashboards instead of one trusted one.
- No evaluation dataset. Tests without good cases pass and fail for the wrong reasons.
- Ignoring storage costs. Traces for every request add up fast, so sample or set retention early.
- No one owns the setup. A self-hosted tool with no owner stops being updated and becomes a risk.
- Testing with toy prompts. Evaluation cases that do not match real user questions give false confidence.
- Forgetting cost tracking. A tool that shows quality but not spend leaves half the picture hidden.
If you already have a general tools shortlist, best LLMOps tools for startups covers the managed options alongside the open source ones.
LLM development covers the build side, from the first prototype to a production app.
Key takeaways
- Start with tracing: if you cannot see what the model did, nothing else helps
- Prompt testing in CI catches regressions before they reach users
- Open source is free to use but still costs server, storage and maintenance time
- Most teams end up with two or three tools, not eight
- An evaluation dataset is what makes any testing tool useful
Frequently asked questions
What is LLMOps?
LLMOps is the set of practices and tools for running LLM apps in production: tracing requests, testing prompts, tracking experiments, managing versions and watching costs. It borrows from MLOps and adds the pieces that are specific to language models, such as prompt evaluation.
Are open source LLMOps tools free?
The licence is free, but self-hosting is not: you pay for the server, database, storage and the time to maintain and update the tool. For most teams that is still cheaper than a managed plan at scale, and it keeps data inside their own infrastructure.
Do I need all eight tools?
No. Most teams need tracing first, then prompt testing, and only then an experiment registry or a cost proxy. Start with the one tool that covers your biggest gap, use it for two weeks, and add a second only when a new gap appears.
How is this list different from a general LLMOps tools list?
This list covers only tools you can self-host, with the hosting and maintenance trade-offs for each. A general list mixes managed services with open source tools, which makes the comparison harder when data control and self-hosting are the deciding factors.
Which tool is best for testing RAG apps?
DeepEval is built for RAG answers, with metrics for relevance and faithfulness to the retrieved context. Pair it with Promptfoo to run the tests in CI, and with Langfuse or Phoenix to trace the requests that fail.
Can I self-host these tools on Kubernetes?
Yes, most of them ship Docker images and work on Kubernetes, and several have Helm charts maintained by the community. Check the tool's own documentation for the current chart and the database and storage it needs before planning the deployment.