Prerequisites
- A Langfuse Cloud or self-hosted project you want to investigate.
- A project-scoped API key pair (public key and secret key) from that project.
- Your Langfuse host URL (
https://cloud.langfuse.comfor EU,https://us.cloud.langfuse.comfor US, or your self-hosted domain).
Langfuse API keys are scoped to a single project. Create the key pair in the project CloudThinker should reach, and use a key pair dedicated to CloudThinker so access is easy to audit and revoke.
Setup
Create an API key pair
Go to Project โ Settings โ API Keys and click Create new API keys. Langfuse generates:
- A Public Key (prefixed
pk-lf-) - A Secret Key (prefixed
sk-lf-)
Add connection in CloudThinker
Navigate to Connections โ Langfuse and enter:
- Host: your Langfuse base URL, e.g.
https://cloud.langfuse.com(base URL only, no path) - Public Key: the
pk-lf-key you created - Secret Key: the
sk-lf-key you created
Connection details
| Field | Description | Example |
|---|---|---|
| LANGFUSE_HOST | Base URL of your Langfuse instance โ EU cloud, US cloud, or self-hosted | https://cloud.langfuse.com |
| LANGFUSE_PUBLIC_KEY | Project-scoped public key | pk-lf-... |
| LANGFUSE_SECRET_KEY | Project-scoped secret key | sk-lf-... |
Required permissions
Langfuse API keys inherit the access of the project they belong to. CloudThinker uses the key pair for read and investigation workflows across traces, observations, metrics, scores, datasets, annotation queues, comments, and prompts.Agent capabilities
Once connected, agents can investigate LLM observability data across your Langfuse project.| Capability | Description |
|---|---|
| Traces | Search and inspect traces, correlate errors, latency, and model usage |
| Observations | Drill into spans, generations, and events within a trace |
| Metrics | Query usage, latency, and cost metrics over a time window |
| Scores | Review evaluation scores and quality signals |
| Datasets | Inspect datasets used for evaluation and testing |
| Annotation queues | Review annotation queues and their items |
| Comments | Read comments left on traces and observations |
| Prompts | List prompt versions, labels, and recent changes for prompt audits |
A CloudThinker chat URL carries a
conversationId that maps to a Langfuse sessionId. Ask the agent to analyze the chat URL and it resolves the session through Langfuse rather than fetching the URL as a webpage.Verify the connection
Example prompts
Troubleshooting
Connection fails with 401 Unauthorized
Connection fails with 401 Unauthorized
Wrong host or region
Wrong host or region
Data is separated per region, so a key pair only works against the host it was created in. Check that LANGFUSE_HOST matches the URL you sign in to, e.g.
https://cloud.langfuse.com for EU or https://us.cloud.langfuse.com for US.Every request returns 404
Every request returns 404
LANGFUSE_HOST has an extra path suffix. Set it to the base URL only, with no trailing path.
Searches return no results
Searches return no results
Trace and metric searches need a time range. Ask the agent to use a recent window (e.g. the last hour) and widen it only if needed. Confirm the project is actively receiving traces from your application.
Chat URL is not analyzed as a session
Chat URL is not analyzed as a session
Ask the agent to extract the
conversationId and map it to a Langfuse sessionId instead of fetching the URL directly.Security
- Least privilege โ grant only the permissions the agents need for your use case; start read-only and widen later.
- Read-only by default โ use read-only credentials unless you want agents to make changes through this connection.
- Rotate credentials โ rotate keys and tokens on your normal schedule; CloudThinker picks up the new value when you update the connection.
- Revoke on offboarding โ remove the credential at the provider when you delete a connection or a teammate leaves.
- Project-scoped key pair โ use a key pair scoped to the single project CloudThinker investigates; create a dedicated pair for CloudThinker so access is easy to audit and revoke independently.
- Correct host โ match the host to the region where the project lives to avoid cross-region failures.
Related
SigNoz Connection
Logs, metrics, traces, and dashboards
Datadog Connection
Log search, metrics, and monitoring