---
title: "Laravel AI"
description: "Learn about Sentry's Laravel AI integration."
url: https://docs.sentry.io/platforms/php/guides/laravel/integrations/laravel-ai/
---

# Laravel AI

This feature is currently in Beta. Beta features are still in progress and may have bugs. We recognize the irony.

The Laravel AI integration connects Sentry with the [Laravel AI](https://laravel.com/docs/13.x/ai-sdk) package. It powers [Agent Tracing](https://docs.sentry.io/platforms/php/guides/laravel/agent-tracing.md) for Laravel applications.

## [Requirements](https://docs.sentry.io/platforms/php/guides/laravel/integrations/laravel-ai.md#requirements)

* `sentry/sentry-laravel` version `4.27.0` or later
* Laravel 12.x or later
* [`laravel/ai`](https://laravel.com/docs/13.x/ai-sdk#installation) installed and configured
* [Tracing](https://docs.sentry.io/platforms/php/guides/laravel/tracing.md) enabled in your Sentry configuration

## [Behavior](https://docs.sentry.io/platforms/php/guides/laravel/integrations/laravel-ai.md#behavior)

When tracing is active and `laravel/ai` is installed, Sentry automatically captures:

* Agent invocations
* LLM requests
* Tool executions
* Embeddings
* Token usage
* Model and provider metadata
* Conversation IDs from Laravel AI's [remembering conversations](https://laravel.com/docs/13.x/ai-sdk#remembering-conversations) feature

For setup, provider support, privacy controls, and verification, see [Set Up Agent Tracing](https://docs.sentry.io/platforms/php/guides/laravel/agent-tracing.md).
