> ## 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 resource.

## 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**

### 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 Python configuration, see the [Python Langfuse Setup](/python/setup/langfuse) guide.
