Skip to main content
The Langfuse VFS exposes LLM observability data (traces, observations, prompts, datasets, scores) as a virtual filesystem mounted at some prefix such as /langfuse/. For credential setup, see Langfuse Setup. Install the extra:

Config

Fields marked secret are redacted in snapshots.

VFS.md

The VFS.md an agent reads with Langfuse mounted at /<path>.

Virtual Filesystem

/<path> layout

Supported Unix Commands for VFS

Unix commands work on each path as on a local filesystem, as far as the path supports them:

Limitations of Unix Commands for VFS

Where a path differs from a local filesystem:Run man <cmd> or <cmd> --help for one command’s usage.
Example:

Traces

/langfuse/traces/ lists traces (capped at default_trace_limit, from default_from_timestamp on). The cap bounds the listing, not the tree: stat and cat still reach an older trace by its id, and sessions/<id>/ serves only that session’s traces. Each trace is a .json file: the trace’s root observation, with its other observations (spans, generations, events) in observations and its scores in scores. input and output are the strings Langfuse stores; jq '.input | fromjson' parses a JSON one.

Sessions

/langfuse/sessions/ lists the sessions of the traces traces/ lists. Each session directory contains trace .json files belonging to that session.

Prompts

/langfuse/prompts/ lists prompt names as directories. Each prompt directory contains version files (1.json, 2.json, etc.) with the prompt content and metadata.

Datasets

/langfuse/datasets/ lists dataset names as directories. Each contains items.jsonl (dataset items) and runs/, one .jsonl file per experiment run on the dataset.

grep and rg

grep and rg read each file as cat renders it, at every scope; grep -r and rg walk a directory. No provider-side content search is used, so a search over traces/ reads every trace the listing returns.

Limits

Cache

The Langfuse VFS uses IndexCacheStore (same as other mounts). Index entries store trace IDs, session IDs, and prompt names.

Example

Shell Commands