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

> ## Agent Instructions
> To act on a user's behalf in Guild, use the Guild REST API at https://api.guild.ai/v1.
> The OpenAPI spec is unauthenticated: https://docs.guild.ai/openapi.json (or openapi.yaml).
> Authenticate with an account API key, sent as HTTP Basic (key id as username, secret as password) or as `Authorization: Bearer <api_key_id>:<api_key_secret>`. See https://docs.guild.ai/api-reference/introduction#authentication.
> To run one agent on demand without account-wide access, use an API trigger instead: https://docs.guild.ai/platform/api-triggers.
> To act on Guild from an MCP client, connect to https://api.guild.ai/mcp (OAuth) or run `guild mcp` locally. Setup: https://docs.guild.ai/api-reference/mcp.
> To search these docs from an MCP client, connect to https://docs.guild.ai/mcp. The full page index is https://docs.guild.ai/llms.txt.

# Manage Langfuse datasets, prompts, and evaluators from Guild agents

> Connect Guild agents to Langfuse to create datasets, manage prompts, run evaluators, query metrics, and administer projects and org memberships.

Integrations · Langfuse

A Guild agent reads and writes Langfuse resources directly: datasets, prompts, evaluators, annotation queues, scores, models, LLM connections, and organization memberships. Guild stores the API key server-side and injects it into every request, so agent code never sees the credential. Credential policies and audit records apply to every call the agent makes.

> [card] [Book a demo](https://guild-ai.cal.com/gtm/meeting-with-guild.ai)
>
> See how teams govern agents that use Langfuse.

> [card] [Talk to sales](https://guild.ai/talk-to-sales)
>
> Get access to Guild, then connect Langfuse to your first agent.

## What the Langfuse integration exposes

The tools cover annotation queues, datasets and dataset items, prompts and prompt versions, evaluators and evaluation rules, scores and score configs, experiments, observations, metrics, models, LLM connections, media, blob storage integrations, SCIM user provisioning, and project and organization administration. Several tools, including blob storage, SCIM, and org-level operations, require an organization-scoped API key. Tools are prefixed with `langfuse_` and the table on this page updates as new versions publish.

## How it works

**1. Open credentials in Guild**

Go to Access & setup > Credentials in your Guild account or organization. The page lists connected credentials and shows a gallery of available integrations.

**2. Connect the Langfuse credential**

Click Connect, select langfuse, and paste your API key into the API Key field. Guild sends it as an Authorization: Basic header on every request.

**3. Add the tools to your agent**

Import LangfuseTools from the integration package and spread it into your agent's tools object. Use `pick()` from the [SDK tools reference](https://docs.guild.ai/sdk/tools.md) to include only the tools your agent needs.

## Why Langfuse access needs governing

Langfuse holds prompt versions, evaluation rules, scores, and organization memberships. An agent with an unconstrained credential can create or delete projects, rotate API keys, and modify org memberships. Guild's credential proxy enforces credential policies before any request leaves Guild: ALLOW and DENY rules can restrict the agent to specific operations, and a DENY rule always wins over a matching ALLOW. Policies can be scoped to individual agents or workspaces, so one agent gets read-only access to datasets while another manages evaluators, all on the same connected credential. See [credential policies](https://docs.guild.ai/platform/credential-policies.md) for rule syntax.

Guild stores the API key server-side and injects it only after the policy check passes. Agent code never sees the key. You can scope a credential to one workspace, one member, or a single agent using the options in [credentials](https://docs.guild.ai/platform/credentials.md), so access does not spread further than intended.

## About the Langfuse integration

Agents can create and manage datasets, prompts, evaluators, and annotation queues within a Langfuse project. They can query observations and metrics, configure LLM connections, and administer organization memberships and projects. Blob storage integrations, media uploads, and OpenTelemetry trace ingestion are also supported. The integration is `guildai~langfuse`.

## Authentication

* **Type:** API key
* **Header:** Guild sends the key as `Authorization: Basic <key>`

### Setup

**1. Connect Langfuse**

In Guild, go to **Access & setup > Credentials**, click **Connect**, select **langfuse**, and paste the key into **API Key**.

See [Credentials](https://docs.guild.ai/platform/credentials.md) for workspace, member, and agent-scoped credentials.

## Usage

```typescript theme={null}
import { LangfuseTools } from "@guildai-services/guildai~langfuse"
import { llmAgent } from "@guildai/agents-sdk"

export default llmAgent({
  systemPrompt: "You work with Langfuse.",
  tools: { ...LangfuseTools },
})
```

### Selecting specific tools

Tools are named with the `langfuse_` prefix. Use [`pick()`](https://docs.guild.ai/sdk/tools#selecting-specific-tools) to include only what your agent needs.

## Tools

Tools in the latest published version of `guildai~langfuse`:

> [accordion] All 121 tools
>
> | Tool | What it does |
> | - | - |
> | `langfuse_annotation_queues_create_queue` | Create an annotation queue |
> | `langfuse_annotation_queues_create_queue_assignment` | Create an assignment for a user to an annotation queue |
> | `langfuse_annotation_queues_create_queue_item` | Add an item to an annotation queue |
> | `langfuse_annotation_queues_delete_queue_assignment` | Delete an assignment for a user to an annotation queue |
> | `langfuse_annotation_queues_delete_queue_item` | Remove an item from an annotation queue |
> | `langfuse_annotation_queues_get_queue` | Get an annotation queue by ID |
> | `langfuse_annotation_queues_get_queue_item` | Get a specific item from an annotation queue |
> | `langfuse_annotation_queues_list_queue_items` | Get items for a specific annotation queue |
> | `langfuse_annotation_queues_list_queues` | Get all annotation queues |
> | `langfuse_annotation_queues_update_queue_item` | Update an annotation queue item |
> | `langfuse_blob_storage_integrations_delete_blob_storage_integration` | Delete a blob storage integration by ID (requires organization-scoped API key) |
> | `langfuse_blob_storage_integrations_get_blob_storage_integrations` | Get all blob storage integrations for the organization (requires organization-scoped API key) |
> | `langfuse_blob_storage_integrations_get_blob_storage_integration_status` | Get the sync status of a blob storage integration by integration ID (requires organization-scoped API key) |
> | `langfuse_blob_storage_integrations_upsert_blob_storage_integration` | Create or update a blob storage integration for a specific project (requires organization-scoped API key). |
> | `langfuse_comments_create` | Create a comment. |
> | `langfuse_comments_get` | Get all comments |
> | `langfuse_comments_get_by_id` | Get a comment by id |
> | `langfuse_dataset_items_create` | Create a dataset item |
> | `langfuse_dataset_items_delete` | Delete a dataset item and all its run items. |
> | `langfuse_dataset_items_get` | Get a dataset item |
> | `langfuse_dataset_items_list` | Get dataset items. |
> | `langfuse_datasets_create` | Create a dataset |
> | `langfuse_datasets_get` | Get a dataset |
> | `langfuse_datasets_list` | Get all datasets |
> | `langfuse_evaluation_rules_create` | Create an evaluation rule using stable evaluator identifiers. |
> | `langfuse_evaluation_rules_delete` | Delete an evaluation rule. |
> | `langfuse_evaluation_rules_get` | Get one evaluation rule, including a legacy trace or dataset rule, by its stable identifier. |
> | `langfuse_evaluation_rules_list` | List evaluation rules in newest-first creation order. |
> | `langfuse_evaluation_rules_update` | Update an evaluation rule by its stable identifier. |
> | `langfuse_evaluators_create` | Create an evaluator in the authenticated project. |
> | `langfuse_evaluators_delete` | Delete an evaluator and all of its stored versions. |
> | `langfuse_evaluators_get` | Get one evaluator by its stable identifier. |
> | `langfuse_evaluators_list` | List evaluators in newest-first creation order. |
> | `langfuse_evaluators_list_versions` | List an evaluator's version history in newest-first order. |
> | `langfuse_evaluators_update` | Update an evaluator by its stable identifier. |
> | `langfuse_experiments_list` | List experiments with cursor-based pagination. |
> | `langfuse_experiments_list_items` | List experiment items with cursor-based pagination. |
> | `langfuse_feedback_submit` | Submit explicit user-approved feedback about Langfuse skills, MCP tools, CLI, docs, or public API. |
> | `langfuse_health_health` | Check health of API and database |
> | `langfuse_llm_connections_delete` | Delete an LLM connection by id. |
> | `langfuse_llm_connections_delete_organization` | Delete an organization-level LLM connection by id. |
> | `langfuse_llm_connections_list` | Get all LLM connections in a project |
> | `langfuse_llm_connections_list_organization` | Get all organization-level LLM connections. |
> | `langfuse_llm_connections_upsert` | Create or update an LLM connection. |
> | `langfuse_llm_connections_upsert_organization` | Create or update an organization-level LLM connection. |
> | `langfuse_media_get` | Get a media record |
> | `langfuse_media_get_upload_url` | Get a presigned upload URL for a media record |
> | `langfuse_media_patch` | Patch a media record |
> | `langfuse_metrics_metrics` | Get metrics from the Langfuse project using a query object. |
> | `langfuse_models_create` | Create a model |
> | `langfuse_models_delete` | Delete a model. |
> | `langfuse_models_get` | Get a model |
> | `langfuse_models_list` | Get all models |
> | `langfuse_models_upsert` | Create or replace a project-owned model using its id. |
> | `langfuse_observations_get_many` | Get a list of observations with cursor-based pagination and flexible field selection. |
> | `langfuse_opentelemetry_export_traces` | OpenTelemetry Traces Ingestion Endpoint |
> | `langfuse_organizations_delete_organization_membership` | Delete a membership from the organization associated with the API key (requires organization-scoped API key) |
> | `langfuse_organizations_delete_project_membership` | Delete a membership from a specific project (requires organization-scoped API key). |
> | `langfuse_organizations_get_organization_api_keys` | Get all API keys for the organization associated with the API key (requires organization-scoped API key) |
> | `langfuse_organizations_get_organization_memberships` | Get all memberships for the organization associated with the API key (requires organization-scoped API key) |
> | `langfuse_organizations_get_organization_projects` | Get all projects for the organization associated with the API key (requires organization-scoped API key) |
> | `langfuse_organizations_get_project_memberships` | Get all memberships for a specific project (requires organization-scoped API key) |
> | `langfuse_organizations_update_organization_membership` | Create or update a membership for the organization associated with the API key (requires organization-scoped API key) |
> | `langfuse_organizations_update_project_membership` | Create or update a membership for a specific project (requires organization-scoped API key). |
> | `langfuse_projects_create` | Create a new project (requires organization-scoped API key) |
> | `langfuse_projects_create_api_key` | Create a new API key for a project (requires organization-scoped API key) |
> | `langfuse_projects_delete` | Delete a project by ID (requires organization-scoped API key). |
> | `langfuse_projects_delete_api_key` | Delete an API key for a project (requires organization-scoped API key) |
> | `langfuse_projects_get` | Get Project associated with API key (requires project-scoped API key). |
> | `langfuse_projects_get_api_keys` | Get all API keys for a project (requires organization-scoped API key) |
> | `langfuse_projects_update` | Update a project by ID (requires organization-scoped API key). |
> | `langfuse_prompts_create` | Create a new version for the prompt with the given 'name' |
> | `langfuse_prompts_delete` | Delete prompt versions. |
> | `langfuse_prompts_get` | Get a prompt |
> | `langfuse_prompts_list` | Get a list of prompt names with versions and labels |
> | `langfuse_prompt_version_update` | Update labels for a specific prompt version |
> | `langfuse_scim_create_user` | Create a new user in the organization (requires organization-scoped API key) |
> | `langfuse_scim_delete_user` | Remove a user from the organization (requires organization-scoped API key). |
> | `langfuse_scim_get_resource_types` | Get SCIM Resource Types (requires organization-scoped API key) |
> | `langfuse_scim_get_schemas` | Get SCIM Schemas (requires organization-scoped API key) |
> | `langfuse_scim_get_service_provider_config` | Get SCIM Service Provider Configuration (requires organization-scoped API key) |
> | `langfuse_scim_get_user` | Get a specific user by ID (requires organization-scoped API key) |
> | `langfuse_scim_list_users` | List users in the organization (requires organization-scoped API key) |
> | `langfuse_score_configs_create` | Create a score configuration (config). |
> | `langfuse_score_configs_get` | Get all score configs |
> | `langfuse_score_configs_get_by_id` | Get a score config |
> | `langfuse_score_configs_update` | Update a score config |
> | `langfuse_scores_create` | Create scores asynchronously from a list of scores. |
> | `langfuse_scores_delete` | Delete a score (supports both trace and session scores) |
> | `langfuse_scores_get_many` | Get a list of scores with a polymorphic 'value' field (v3). |
> | `langfuse_skills_create_version` | Create skill version |
> | `langfuse_skills_delete_version` | Delete one immutable skill version. |
> | `langfuse_skills_get` | Resolve a skill's metadata and file manifest by version or label. |
> | `langfuse_skills_get_file_contents` | Read a batch of text contents by canonical base64-encoded SHA-256 hashes. |
> | `langfuse_skills_list` | List skills with metadata and timestamps from their latest version, shared tags, and the version assigned to production when present. |
> | `langfuse_skills_set_labels` | Replace the labels on a skill version and atomically move them from other versions. |
> | `langfuse_skills_update` | Replace the shared tags across all versions of a skill. |
> | `langfuse_trace_delete` | Delete a specific trace |
> | `langfuse_trace_delete_multiple` | Delete multiple traces |
> | `langfuse_unstable_billable_units_get` | Unstable: the shape may change without notice. |
> | `langfuse_unstable_dashboards_add_placement` | Add a placement to a dashboard grid (see 'DashboardPlacement' for grid semantics). |
> | `langfuse_unstable_dashboards_create` | Create a dashboard. |
> | `langfuse_unstable_dashboards_delete` | Delete a dashboard. |
> | `langfuse_unstable_dashboards_delete_placement` | Remove a placement from a dashboard grid without deleting the referenced widget. |
> | `langfuse_unstable_dashboards_get` | Get a dashboard by id. |
> | `langfuse_unstable_dashboards_list` | List dashboards in the project, ordered by most recently updated first. |
> | `langfuse_unstable_dashboards_update` | Update a dashboard's name, description, definition, or filters. |
> | `langfuse_unstable_dashboards_update_placement` | Move or resize a placement. |
> | `langfuse_unstable_dashboard_widgets_create` | Create a dashboard widget (a standalone chart definition you place on any dashboard). |
> | `langfuse_unstable_dashboard_widgets_delete` | Delete a dashboard widget. |
> | `langfuse_unstable_dashboard_widgets_get` | Get a dashboard widget by id. |
> | `langfuse_unstable_dashboard_widgets_list` | List dashboard widgets in the project, ordered by most recently updated first. |
> | `langfuse_unstable_dashboard_widgets_update` | Update a dashboard widget. |
> | `langfuse_unstable_topics_get` | Unstable: Topics is in closed beta. |
> | `langfuse_unstable_topics_get_facet` | Unstable: Topics is in closed beta. |
> | `langfuse_unstable_topics_get_rule` | Unstable: Topics is in closed beta. |
> | `langfuse_unstable_topics_list` | Unstable: Topics is in closed beta. |
> | `langfuse_unstable_topics_list_assignments` | Unstable: Topics is in closed beta. |
> | `langfuse_unstable_topics_list_facets` | Unstable: Topics is in closed beta. |
> | `langfuse_unstable_topics_list_rules` | Unstable: Topics is in closed beta. |
> | `langfuse_unstable_topics_list_summaries` | Unstable: Topics is in closed beta. |

## Frequently asked questions

> [accordion] Can I limit an agent to read-only Langfuse operations?
>
> Yes. Write DENY rules for mutating operations, or ALLOW only the specific read tools your agent needs. Guild's credential proxy enforces these rules before any request reaches Langfuse. See [credential policies](https://docs.guild.ai/platform/credential-policies.md) for syntax.

> [accordion] Do I need a different API key for org-level tools like SCIM or blob storage?
>
> Yes. Tools such as blob storage integrations, SCIM provisioning, and organization membership management state that they require an organization-scoped API key. A project-scoped key works for project-level tools only.

> [accordion] Does the Langfuse integration support webhook triggers?
>
> No. The catalog entry for this integration lists no webhook events, so event-driven triggers from Langfuse are not available.

> [accordion] Can I give one agent its own Langfuse credential instead of sharing the organization credential?
>
> Yes. From the installed agent's detail page you can connect a credential dedicated to that agent alone. Guild stores it under the account that owns the workspace and never uses it for other agents. See [credentials](https://docs.guild.ai/platform/credentials.md) for the full scoping options.

## Put a governed agent on Langfuse this week

> [card] [Book a demo](https://guild-ai.cal.com/gtm/meeting-with-guild.ai)
>
> See how teams govern agents that use Langfuse.

> [card] [Talk to sales](https://guild.ai/talk-to-sales)
>
> Get access to Guild, then connect Langfuse to your first agent.

## Related

**Also runs on Guild:** [AWS CloudWatch](https://docs.guild.ai/integrations/aws-cloudwatch.md) · [Braintrust](https://docs.guild.ai/integrations/braintrust.md) · [Datadog](https://docs.guild.ai/integrations/datadog.md) · [Google Logging](https://docs.guild.ai/integrations/google-logging.md)

**Read:** Docs: [Credential policies](https://docs.guild.ai/platform/credential-policies.md) · [Credentials](https://docs.guild.ai/platform/credentials.md) · [Tools in agents](https://docs.guild.ai/sdk/tools.md)
