Build, host and run AI solutions.
Trace, evaluate and manage your LLM applications — self-hosted, production-ready.
Langfuse is the leading open-source LLM observability platform. It gives you deep visibility into every AI request your application makes: full prompt and completion traces, latency breakdowns, cost tracking per model and per user, and structured evaluation scores — all in a single dashboard.
Deployed on your VPS, Langfuse replaces cloud-hosted alternatives (Langsmith, Helicone, Arize) without sending your traces or user data to third parties. A single SDK call (`@observe()` decorator or `langfuse.trace()`) instruments any Python, TypeScript, or OpenAI-compatible stack in minutes — LiteLLM, LangChain, LlamaIndex, Dify, and direct API calls all emit traces automatically.
Version 3.x (MIT core) adds a prompt management hub where engineers can A/B-test prompt versions, run evaluations with LLM-as-a-judge or human raters, and promote the winning prompt to production without a code deploy. A REST API, a web SDK and native integrations make it the operational backbone for any team shipping AI to users.
When a new model or prompt version degrades quality, filter traces by evaluation score, compare side-by-side with the previous version, and reproduce the failing input in one click.
Track token spend by model, user and feature — set alerts when a single endpoint exceeds your budget. Switch from GPT-4 to a cheaper model using data, not guesswork.
Push a prompt update from the Langfuse UI, route a percentage of traffic to the new version, collect evaluation scores, and promote the winner — all without touching your application code.
Guide optimized for ServOrbit Cloud VPS.
Langfuse runs PostgreSQL, ClickHouse, Redis and MinIO alongside the web and worker services. A 4 GB plan is the practical minimum; 8 GB is recommended for production workloads.
Select Langfuse in the ServOrbit marketplace and click Deploy. Docker Compose brings up all six services automatically. The web UI is available on your domain once all health checks pass (allow 60–90 seconds on first boot for ClickHouse initialisation).
Open https://your-domain.com and register (signup is enabled by default). Create a project and copy its public/secret key pair from the Settings page.
In Python: pip install langfuse, set LANGFUSE_HOST=https://your-domain.com, LANGFUSE_PUBLIC_KEY and LANGFUSE_SECRET_KEY, then decorate your LLM calls with @observe(). In TypeScript: npm install langfuse, initialise with your host and keys. Traces appear in the dashboard within seconds.
If you already have LiteLLM in your stack: add success_callback = ["langfuse"] to your litellm_config.yaml and set the three env vars above. Every proxied LLM call is traced automatically — no application-level code change needed.
Go to Traces, select a representative set, click 'Add to dataset'. Open Evaluations, create a score template (e.g. 1-5 relevance), attach it to the dataset, and run a batch evaluation with LLM-as-a-judge or your own scoring function.
Browse our help center and FAQ, or write to our team — support in French, English and Arabic.