Skip to the content
Vaubaan Gateway

Plugins / PostHog

PostHog 0.1.0

The PostHog plugin lets a Vaubaan Gateway mission use PostHog without handing the agent a credential. PostHog product analytics through its REST API: read dashboards, insights, experiments and errors, query events in SQL, save analyses, and change feature flags.

Version 0.1.0 · 5 permissions · 4 macro-actions · 21 tools · 0 gateways run this plugin (over the last 90 days).

1 · The model

How PostHog is modelled

1 plane, 9 things. The things that exist at the service and how they nest. Every permission is written over these; a resource of an account is one of them, named by its ref.

1 exactly one, namedn a finite, known set* an unknown number, possibly all the resource carries the environment, in the model only

Account

One account is one PostHog personal API key, in the US or EU region.

Resource

Reading analyses, querying raw events (personal data), saving analyses and changing feature flags are four separate permissions; a flag change reaches the product's users at once.

Environment

Rule
No permission of this service depends on an environment: each is held once, whatever the resource.
Known
none
Carried by
analytics.project, in the model only

One resource is one project the key reaches, labelled with an environment by the account's owner.

2 · Macro-actions

What an agent does at PostHog: 4 macro-actions

A mission is made of them: the person ticks the ones the task needs and sets each to a trust level.

  1. 1

    Read analytics

    Read dashboards, insights, flags, experiments, annotations and errors.

    Looking at how the product is used: dashboards and insights with their results, the feature flags and experiments in place, the annotations, the errors users hit. Nothing changes in PostHog; an error may quote what a user typed.

    1 permission

  2. 2

    Query events

    Run SQL over the project's raw events and persons.

    Answering a question no saved insight answers, in SQL over the project's events, persons and sessions. The rows can hold the users' personal data, which then lands in the agent's context.

    1 permission

  3. 3

    Save analyses

    Save insights, dashboards and annotations.

    Keeping what the agent found: a saved insight, a dashboard to gather them, an annotation marking a release on the charts. The team sees them; the product's users never do.

    1 permission

  4. 4

    Change feature flags

    Create, change, enable, disable and delete feature flags.

    Rolling a feature out or back: creating a flag, changing who gets it, turning it on or off, deleting one no code reads any more. Each change reaches the product's users at once.

    2 permissions

3 · The map

The map

5 permissions of 4 macro-actions, in the four rows of the tree. For the chosen trust level, each cell gives yes, ask me or no, and the quota a day.

Trust level

yes runs freelyask me ask me firstno not included

Mild actions run freely; sensitive or costly ones ask first; irreversible ones are left out.Up to sensitive actions run freely; costly and irreversible ones ask first. Limits ×3.Everything but irreversible actions runs freely; those ask first. Limits ×10.

A permission sits in the first row its facts answer: irreversible; costly to undo or unbounded cost; secret or personal data, whole account or bulk, moderate cost, public; otherwise harmless.

PostHog permissions by macro-action and row of the tree, with what the chosen trust level does and the quota a day
RiskRead analyticsRead dashboards, insights, flags, experiments, annotations and errors.Query eventsRun SQL over the project's raw events and persons.Save analysesSave insights, dashboards and annotations.Change feature flagsCreate, change, enable, disable and delete feature flags.
Cannot be repaired

Careful: no. Trusting, Autonomous: ask me.

None

None

None

None

Repairable, at a price

Careful, Trusting: ask me. Autonomous: runs freely.

None

None

None

  • Create, change, enable or disable a feature flag costly to undoWhy it sits here: What the product's users get changes at once, for everyone the release conditions reach; turning the flag back does not undo what they saw. posthog.flag-write

    ask me · 20 a dayask me · 60 a dayyes · 200 a day

  • Delete a feature flag costly to undoWhy it sits here: Code that still reads the flag gets nothing from then on. PostHog keeps it deleted softly, so it can be restored in PostHog. posthog.flag-delete

    ask me · 5 a dayask me · 15 a dayyes · 50 a day

Worth a look

Careful: ask me. Trusting, Autonomous: runs freely.

None

  • Query the project's events in SQL personal dataWhy it sits here: A SQL query reads any row of the project's raw tables, persons and their properties (emails, names, IP addresses) included, and draws on the key's hourly query budget. posthog.read-events

    ask me · 200 a dayyes · 600 a dayyes · 2,000 a day

None

None

Harmless

Runs freely at every level.

  • Read dashboards, insights, flags, experiments and errorsWhy it sits here: Aggregates and definitions of the project come back to the agent; an error issue may quote what a user typed. Nothing changes at PostHog. posthog.read-analytics

    yes · 1,000 a dayyes · 3,000 a dayyes · 10,000 a day

None

  • Save an insight, a dashboard or an annotationWhy it sits here: The team sees what the agent saved in the project; the product's users never do. Each can be edited or deleted in PostHog. posthog.analysis-write

    yes · 100 a dayyes · 300 a dayyes · 1,000 a day

None

Careful: runs freely 2, ask me first 3. Trusting: runs freely 3, ask me first 2. Autonomous: runs freely 5, ask me first 0. Limits are counted over a mission's period: a day unless its creator picks another, or the mission's whole life for a one-off. The figures here are per day.

4 · A few calls

A few calls, classified by the plugin

22 declared calls, run through the plugin's own classifier when this page was built; here one per macro-action. The 22 calls, as code.

The callThe plugin seesThe catalog answersA Careful mission
posthog__dashboards-get-all {}
  • posthog.project[12345].dashboard[*].R
  • Read dashboards, insights, flags, experiments and errors posthog.read-analytics
yes
posthog__execute-sql {"query":"select count() from events where event = '$pa…"}
  • posthog.project[12345].events.R
  • Query the project's events in SQL posthog.read-events
ask me
posthog__insight-create {"name":"Weekly signups","query":{"kind":"InsightVizNode","source":{"kind":"TrendsQuery","series":[]}}}
  • posthog.project[12345].insight[*].W
  • Save an insight, a dashboard or an annotation posthog.analysis-write
yes
posthog__create-feature-flag {"key":"new-checkout","active":false}
  • posthog.project[12345].flag[*].W
  • Create, change, enable or disable a feature flag posthog.flag-write
ask me

5 · Anything else

Anything else

A call no permission covers touches posthog.uncategorized-write instead of slipping through. No macro-action holds it; a person ticks it knowingly.

PermissionRiskCareful ×1Trusting ×3Autonomous ×10
Uncategorized writeWhy it sits here: Catch-all for writes without a dedicated entry. No tool of this plugin reaches it; seeing it means an entry is missing. posthog.uncategorized-writeRepairable, at a price costly to undoask me · 50 a dayask me · 150 a dayyes · 500 a day

6 · Tools

Tools

21 tools. A tool's permissions depend on its arguments, so a mission is made of the macro-actions above, not of tools.

21 tools · scroll the list

ToolWhat it doesUsually touches
posthog__dashboards-get-allList dashboardsposthog.read-analytics
posthog__dashboard-getRead a dashboardposthog.read-analytics
posthog__insights-listList insightsposthog.read-analytics
posthog__insight-getRead an insightposthog.read-analytics
posthog__insight-queryRun an insightposthog.read-analytics
posthog__feature-flag-get-allList feature flagsposthog.read-analytics
posthog__feature-flag-get-definitionRead a feature flagposthog.read-analytics
posthog__experiment-listList experimentsposthog.read-analytics
posthog__experiment-getRead an experimentposthog.read-analytics
posthog__annotations-listList annotationsposthog.read-analytics
posthog__query-error-tracking-issues-listList error issuesposthog.read-analytics
posthog__query-error-tracking-issueRead an error issueposthog.read-analytics
posthog__execute-sqlQuery events in SQLposthog.read-events
posthog__insight-createSave an insightposthog.analysis-write
posthog__dashboard-createCreate a dashboardposthog.analysis-write
posthog__annotation-createAdd an annotationposthog.analysis-write
posthog__create-feature-flagCreate a feature flagposthog.flag-write
posthog__update-feature-flagChange a feature flagposthog.flag-write
posthog__feature-flag-enableTurn a feature flag onposthog.flag-write
posthog__feature-flag-disableTurn a feature flag offposthog.flag-write
posthog__delete-feature-flagDelete a feature flagposthog.flag-write, posthog.flag-delete

7 · Connecting an account

Connecting an account

1 of 3 · a key you create and paste personal API key

A personal API key the person creates at PostHog and pastes once; nobody declares anything beforehand.

Scopes

The organization, with every scope below, plus User and Project: Read. This gateway gives a mission only the projects and permissions it names; User and Project: Read list the projects to choose from.

  1. Sign in to PostHog as the user the agents will act as.
  2. SettingsPersonal API keysCreate a personal API keyOpen your personal API keys and start a new key; on EU Cloud, open the same page on eu.posthog.com. (open)
  3. Organization & project accessScopesName it, choose the organization, and give every scope below the access shown, plus User and Project: Read.
  4. Create the key, copy it, and paste it here with your region. PostHog shows it once.
Permission at PostHogAccess
Dashboardread-write
Insightread-write
Feature flagread-write
Experimentread
Annotationread-write
Error trackingread
Queryread
Where
https://us.posthog.com/settings/user-api-keys
Expiry
PostHog personal API keys do not expire: delete the key on the Personal API keys page to end this account.
The connect page asks
Personal API key (secret) and Region
The service's documentation
https://posthog.com/docs/api/personal-api-keys
Disconnecting
In PostHog, open Settings, then Personal API keys, and delete the key this gateway was given.

8 · Health

Health

0 gateways run this plugin (over the last 90 days).

No version of this plugin has reported a call or a gateway yet.

A version is marked validated by the community with at least 200 reports and a success rate of at least 90 %, over the last 90 days; a gateway shows that mark on the accounts of this service. The figures are refreshed at most hourly (what they mean). It is a community signal, not a security guarantee.

Calls are counted over the last 90 days from the instances that share plugin health. Gateways are counted over the same window among the instances that also share usage statistics, so they are a lower bound. The success rate leaves out calls refused for a rejected credential: a revoked token is the user's configuration, not the plugin.

Last changed 2026-12-02. This page as Markdown: /plugins/posthog.md