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

# PostHog

> Connect PostHog so Agentwork can query your product analytics, insights and SQL.

PostHog gives Agentwork live access when a conversation or workflow needs it. Nothing is imported into memory.

## Install

### Before you start

* An owner or admin connects PostHog for the whole organization.
* Agentwork supports PostHog Cloud US only. EU-hosted PostHog projects can't connect yet.
* Have a PostHog personal API key with read-only scopes ready. Create it from a dedicated PostHog user and limit it to one project.

### Connect PostHog

1. Go to **Connections**, select **PostHog**, and choose **Workspace**.
2. Paste your PostHog API key.

## How it works in Agentwork

### What Agentwork can do in it

Agentwork can query analytics and insights and run SQL queries. Use a read-only key so it can't change anything.

### Who sees what

Owners and admins choose which members can use these tools, and everyone allowed reaches what the connected account can see. See [Approvals for actions in your tools](https://docs.agentwork.com/approvals.md#set-organization-defaults).

## Disconnect or reconnect

Open **Connections** → **PostHog** to reconnect or disconnect.

## Related

* [Connect your tools](https://docs.agentwork.com/connections.md)
* [Approvals for actions in your tools](https://docs.agentwork.com/approvals.md)
* [Mixpanel](https://docs.agentwork.com/connectors/mixpanel.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.