# Better Stack

<div style={{maxWidth: '720px'}}>
![The Better Stack connector in Workspace Settings, for logs, uptime monitors and incidents, with a Connect button](</docs/_next/static/media/better-stack-connector.0-vs6f2nzc-jz.jpg>)
</div>

[Better Stack MCP](https://betterstack.com/docs/getting-started/integrations/mcp/) lets agents query Better Stack data directly. This gives agents production context when they need to debug incidents, explain failures, or connect user-facing issues back to code.

For use cases and example prompts, see [Better Stack for AI coding agents](/integrations/better-stack).

## What is Better Stack? [#what-is-better-stack]

[Better Stack](https://betterstack.com) is an observability platform for logs, uptime monitoring, incident management, and on-call.

## What agents can do [#what-agents-can-do]

Once you connect Better Stack, agents can inspect:

- Logs
- Traces
- Errors
- Metrics
- Uptime monitors
- Incidents
- Dashboards
- On-call context

## Setup [#setup]

Go to **Workspace Settings → Connectors** (or a project's **Connectors** page). Click **Add**, search for Better Stack, and select it. You can also click **Connect** on the Better Stack card, or **Connect another** to add another account.

### Step 1: who the connection is for [#step-1-who-the-connection-is-for]

Choose **Me** or **Workspace** as the owner, then choose which agents can use the connection. The default is **Me**, with **My personal assistants** selected. From a project's **Connectors** page, only **In this project** is selected instead. Enable **Team assistants** or **Agents in projects** separately. Anyone in the workspace can use the connection through the team assistants you pick, and anyone with access to the projects you pick can use it, including in sessions they launch themselves. See [connection options](/docs/integrations/connectors#fill-in-the-connection-details) for what each choice means.

Click **Continue**.

### Step 2: how agents reach Better Stack [#step-2-how-agents-reach-better-stack]

The second screen has two tabs: **Better Stack account** and **Access token**. Pick one.

#### Better Stack account [#better-stack-account]

This tab is selected by default, and it's the easiest way in — there's no key to create.

Click **Continue to Better Stack**. Better Stack asks you to approve access. Approve, and you land back on the Connectors page with **Better Stack connected**.

Agents then act in Better Stack as whoever signed in, so they see exactly what that person can. If you enable **In projects**, anyone with access to those projects can use that account — so sign in with an account whose permissions you're happy to share.

#### Access token [#access-token]

Follow the [Better Stack API token docs](https://betterstack.com/docs/logs/api/getting-started/#get-a-global-api-token) to create or copy a global API token. Paste it into the **Better Stack API Token** field and click **Connect Better Stack**.

## Reconnecting and disconnecting [#reconnecting-and-disconnecting]

If an account connection stops working, the Connectors page shows a **Reconnect needed** badge on it, and agents run without Better Stack.

To fix it, click **Manage** next to the connection, then **Reconnect Better Stack**, and sign in again. You can only reconnect a personal connection you own; for someone else's, Superconductor tells you who to ask.

A pasted access token that Better Stack stops accepting doesn't show **Reconnect needed**. Agents' Better Stack calls fail until you paste a new token under **Manage** and click its **Save** button.

**Disconnect** also revokes Superconductor's access at Better Stack. If Better Stack doesn't confirm the revocation, Superconductor tells you to remove Superconductor from your Better Stack authorized apps to finish the job.

## When to use it [#when-to-use-it]

Ask agents to use Better Stack when a ticket involves production logs, traces, uptime failures, incidents, or on-call investigation.