langfuse/langfuse

★ 34,668⑂ 0

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

About langfuse/langfuse

langfuse/langfuse is an open-source project on GitHub, mainly written in TypeScript. 🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform. It currently holds 34,668 stars and 0 forks with 0 open issues, and was last pushed on an unknown date (repository created unknown).

Project Overview

AI Homed tracks it on the AI Models & LLM Tools board.

GitHub Repository Details

Repository langfuse/langfuse · default branch - · size 0 KB · watchers 0 · source: GitHub REST API and repository README

README

https://github.com/langfuse/langfuse/blob/HEAD/hero-b (1)

Langfuse Cloud · Self Host · Demo

Docs · Report Bug · Feature Request · Changelog · Roadmap ·

https://github.com/langfuse/langfuse/blob/HEAD/MIT License https://github.com/langfuse/langfuse/blob/HEAD/Y Combinator W23 https://github.com/langfuse/langfuse/blob/HEAD/Docker Pulls https://github.com/langfuse/langfuse/blob/HEAD/langfuse Python package on PyPi https://github.com/langfuse/langfuse/blob/HEAD/langfuse npm package
https://github.com/langfuse/langfuse/blob/HEAD/chat on Discord https://github.com/langfuse/langfuse/blob/HEAD/follow on X(Twitter) https://github.com/langfuse/langfuse/blob/HEAD/follow on LinkedIn https://github.com/langfuse/langfuse/blob/HEAD/Commits last month https://github.com/langfuse/langfuse/blob/HEAD/Issues closed https://github.com/langfuse/langfuse/blob/HEAD/Discussion posts

https://github.com/langfuse/langfuse/blob/HEAD/README in English https://github.com/langfuse/langfuse/blob/HEAD/简体中文版自述文件 https://github.com/langfuse/langfuse/blob/HEAD/日本語のREADME https://github.com/langfuse/langfuse/blob/HEAD/README in Korean

Langfuse is an open source LLM engineering platform. It helps teams collaboratively develop, monitor, evaluate, and debug AI applications. Langfuse can be self-hosted in minutes and is battle-tested. Proudly made with ClickHouse open source database.

### 🧑‍💻 We're hiring
> Langfuse is growing fast (we doubled the team in the last 6 months) - since January 2026 we're part of ClickHouse, we're hiring engineering hybrid across the EU.
We hire engineers who love open source and great developer experiences.
See open roles →

✨ Core Features

https://github.com/langfuse/langfuse/blob/HEAD/features

📦 Deploy Langfuse

https://github.com/langfuse/langfuse/blob/HEAD/deploy

Langfuse Cloud

Managed deployment by the Langfuse team, generous free-tier, no credit card required.

https://github.com/langfuse/langfuse/blob/HEAD/Static Badge

Self-Host Langfuse

Run Langfuse on your own infrastructure:

  # Get a copy of the latest Langfuse repository
  git clone --depth=1 https://github.com/langfuse/langfuse.git
  cd langfuse

# Run the langfuse docker compose docker compose up

See self-hosting documentation to learn more about architecture and configuration options.

[!TIP]
Self-hosting Langfuse? Subscribe to the self-hosting update list to get an email about important features and new releases for open source Langfuse — self-hosting updates only, no marketing.

🔌 Integrations

https://github.com/langfuse/langfuse/blob/HEAD/integrations

Main Integrations:

| Integration | Supports | Description | | ---------------------------------------------------------------------------- | -------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------ | | SDK | Python, JS/TS | Manual instrumentation using the SDKs for full flexibility. | | OpenAI | Python, JS/TS | Automated instrumentation using drop-in replacement of OpenAI SDK. | | Langchain | Python, JS/TS | Automated instrumentation by passing callback handler to Langchain application. | | LlamaIndex | Python | Automated instrumentation via LlamaIndex callback system. | | Haystack | Python | Automated instrumentation via Haystack content tracing system. | | LiteLLM | Python, JS/TS (proxy only) | Use any LLM as a drop in replacement for GPT. Use Azure, OpenAI, Cohere, Anthropic, Ollama, VLLM, Sagemaker, HuggingFace, Replicate (100+ LLMs). | | Vercel AI SDK | JS/TS | TypeScript toolkit designed to help developers build AI-powered applications with React, Next.js, Vue, Svelte, Node.js. | | Mastra | JS/TS | Open source framework for building AI agents and multi-agent systems. | | API | | Directly call the public API. OpenAPI spec available. |

Packages integrated with Langfuse:

| Name | Type | Description | | ----------------------------------------------------------------------- | ------------------ | ----------------------------------------------------------------------------------------------------------------------- | | Instructor | Library | Library to get structured LLM outputs (JSON, Pydantic) | | DSPy | Library | Framework that systematically optimizes language model prompts and weights | | Mirascope | Library | Python toolkit for building LLM applications. | | Ollama | Model (local) | Easily run open source LLMs on your own machine. | | Amazon Bedrock | Model | Run foundation and fine-tuned models on AWS. | | AutoGen | Agent Framework | Open source LLM platform for building distributed agents. | | Flowise | Chat/Agent UI | JS/TS no-code builder for customized LLM flows. | | Langflow | Chat/Agent UI | Python-based UI for LangChain, designed with react-flow to provide an effortless way to experiment and prototype flows. | | Dify | Chat/Agent UI | Open source LLM app development platform with no-code builder. | | OpenWebUI | Chat/Agent UI | Self-hosted LLM Chat web ui supporting various LLM runners including self-hosted and local models. | | Promptfoo | Tool | Open source LLM testing platform. | | LobeChat | Chat/Agent UI | Open source chatbot platform. | | Vapi | Platform | Open source voice AI platform. | | Inferable | Agents | Open source LLM platform for building distributed agents. | | Gradio | Chat/Agent UI | Open source Python library to build web interfaces like Chat UI. | | Goose | Agents | Open source LLM platform for building distributed agents. | | smolagents | Agents | Open source AI agents framework. | | CrewAI | Agents | Multi agent framework for agent collaboration and tool use. |

🚀 Quickstart

Instrument your app and start ingesting traces to Langfuse, thereby tracking LLM calls and other relevant logic in your app such as retrieval, embedding, or agent actions. Inspect and debug complex logs and user sessions.

1️⃣ Create new project

1. Create Langfuse account or self-host 2. Create a new project 3. Create new API credentials in the project settings

2️⃣ Log your first LLM call

The @observe() decorator makes it easy to trace any Python LLM application. In this quickstart we also use the Langfuse OpenAI integration to automatically capture all model parameters.

[!TIP]
Not using OpenAI? Visit our documentation to learn how to log other models and frameworks.
pip install langfuse openai

```bash filename=".env" LANGFUSE_SECRET_KEY="sk-lf-..." LANGFUSE_PUBLIC_KEY="pk-lf-..." LANGFUSE_BASE_URL="https://cloud.langfuse.com" # 🇪🇺 EU region

LANGFUSE_BASE_URL="https://us.cloud.langfuse.com" # 🇺🇸 US region


python /@observe()/ /from langfuse.openai import openai/ filename="main.py" from langfuse import observe from langfuse.openai import openai # OpenAI integration

@observe() def story(): return openai.chat.completions.create( model="gpt-4o", messages=[{"role": "user", "content": "What is Langfuse?"}], ).choices[0].message.content

@observe() def main(): return story()

main() ```

3️⃣ See traces in Langfuse

See your language model calls and other application logic in Langfuse.

https://github.com/langfuse/langfuse/blob/HEAD/example-trace-for-github

_Public example trace in Langfuse_

💭 Support

Finding an answer to your question:

Support Channels:

🤝 Contributing

Your contributions are welcome!

🥇 License

This repository is MIT licensed, except for the ee folders. See LICENSE and docs for more details.

Dependencies

We deploy this code base in Docker containers based on the Linux Alpine Image (source). You may find the Dockerfiles in web/Dockerfile and worker/Dockerfile.

⭐️ Star History

https://github.com/langfuse/langfuse/blob/HEAD/Star History Chart

❤️ Open Source Projects Using Langfuse

Top open-source Python projects that use Langfuse, ranked by stars (Source):

| Repository | Stars | | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -----: | | https://github.com/langfuse/langfuse/blob/HEAD/   langflow-ai / langflow | 116251 | | https://github.com/langfuse/langfuse/blob/HEAD/   open-webui / open-webui | 109642 | | https://github.com/langfuse/langfuse/blob/HEAD/   abi / screenshot-to-code | 70877 | | https://github.com/langfuse/langfuse/blob/HEAD/   lobehub / lobe-chat | 65454 | | https://github.com/langfuse/langfuse/blob/HEAD/   infiniflow / ragflow | 64118 | | https://github.com/langfuse/langfuse/blob/HEAD/   firecrawl / firecrawl | 56713 | | https://github.com/langfuse/langfuse/blob/HEAD/   run-llama / llama_index | 44203 | | https://github.com/langfuse/langfuse/blob/HEAD/   FlowiseAI / Flowise | 43547 | | https://github.com/langfuse/langfuse/blob/HEAD/   QuivrHQ / quivr | 38415 | | https://github.com/langfuse/langfuse/blob/HEAD/   microsoft / ai-agents-for-beginners | 38012 | |

GitHub Stars & Activity

34,668Stars
0Forks
0Open issues
TypeScriptLanguage

GitHub Popularity

GitHub stars34,668
Forks0
Open issues0
Primary languageTypeScript
License-
Stars gained today0
Created-
Last pushed-

Trending History

Trending statusnot on today's boards

Related AI Projects

1

firecrawl / firecrawl

TypeScript★ 180,977⑂ 0
2

langgenius / dify

TypeScript★ 155,892⑂ 0
3

thedotmack / claude-mem

TypeScript★ 93,998⑂ 0
4

OpenHands / OpenHands

TypeScript★ 88,068⑂ 0
5

upstash / context7

TypeScript★ 62,071⑂ 0
6

FlowiseAI / Flowise

TypeScript★ 55,466⑂ 0
7

janhq / jan

TypeScript★ 44,490⑂ 0
8

CopilotKit / CopilotKit

TypeScript★ 37,378⑂ 0

More AI Rankings