> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mirage.strukto.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Langfuse

> Set up Langfuse API keys for the Langfuse VFS.

## Credentials

### 1. Get API Keys

#### Langfuse Cloud

1. Go to [https://cloud.langfuse.com](https://cloud.langfuse.com)
2. Select your project -> **Settings** -> **API Keys**
3. Copy the **Public Key** and **Secret Key**

#### Self-hosted

1. Go to your Langfuse instance (e.g., `https://langfuse.yourcompany.com`)
2. Select your project -> **Settings** -> **API Keys**
3. Copy the **Public Key** and **Secret Key**

The VFS reads the Langfuse v4 API, so a self-hosted instance must run
Langfuse v4.

### 2. Set Environment Variables

```bash theme={null}
# .env.development
LANGFUSE_PUBLIC_KEY=pk-lf-...
LANGFUSE_SECRET_KEY=sk-lf-...
LANGFUSE_HOST=https://cloud.langfuse.com
```

For SDK guides, see [Langfuse (Python)](https://docs.mirage.strukto.ai/python/vfs/langfuse.md) and [Langfuse (TypeScript)](https://docs.mirage.strukto.ai/typescript/setup/langfuse.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.