Langfuse launches AI Gateway Learn more
FaqHow do I trace or evaluate an LLM app locally without an account or Docker?

How do I trace or evaluate an LLM app locally without an account or Docker?

Run langfuse-lite, a local emulator of Langfuse (beta). It is one process with one SQLite file and works with the official Langfuse SDKs and any OpenTelemetry exporter. This suits coding agents in a sandbox that have no Langfuse API keys.

npx -y langfuse-lite serve   # needs Node.js 22.13 or later
uvx langfuse-lite serve      # from PyPI, no Node.js needed
export LANGFUSE_BASE_URL=http://localhost:3000
export LANGFUSE_PUBLIC_KEY=pk-lf-local
export LANGFUSE_SECRET_KEY=sk-lf-local

The keys are placeholders and are not checked. Traces, scores, datasets, and experiment runs are stored in ./.langfuse/lite.db. Read them back in the viewer at http://localhost:3000 or with the CLI, for example npx -y langfuse-lite observations and npx -y langfuse-lite runs (or the same with uvx).

langfuse-lite is for local development only: it has no authentication and covers part of Langfuse. When the project grows, change the base URL and API keys to Langfuse Cloud or a self-hosted Langfuse. npx -y langfuse-lite push --to <url> copies the local data.


Was this page helpful?

Last updated on