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.
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.
Account One account is one PostHog personal API key, in the US or EU region.
Plane · analyticsA PostHog project: its analyses, its feature flags and its users' events.
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
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
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
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
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.
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.
| Risk | Read 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 |
|
| Worth a look Careful: ask me. Trusting, Autonomous: runs freely. | None |
| None | None |
| Harmless Runs freely at every level. |
| None |
| 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 call | The plugin sees | The catalog answers | A Careful mission |
|---|---|---|---|
posthog__ |
|
| yes |
posthog__ |
|
| ask me |
posthog__ |
|
| yes |
posthog__ |
|
| ask me |
5 · Anything else
Anything else
A call no permission covers touches posthog. instead of slipping through. No macro-action holds it; a person ticks it knowingly.
| Permission | Risk | Careful ×1 | Trusting ×3 | Autonomous ×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-write | Repairable, at a price costly to undo | ask me · 50 a day | ask me · 150 a day | yes · 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
| Tool | What it does | Usually touches |
|---|---|---|
posthog__ | List dashboards | posthog. |
posthog__ | Read a dashboard | posthog. |
posthog__ | List insights | posthog. |
posthog__ | Read an insight | posthog. |
posthog__ | Run an insight | posthog. |
posthog__ | List feature flags | posthog. |
posthog__ | Read a feature flag | posthog. |
posthog__ | List experiments | posthog. |
posthog__ | Read an experiment | posthog. |
posthog__ | List annotations | posthog. |
posthog__ | List error issues | posthog. |
posthog__ | Read an error issue | posthog. |
posthog__ | Query events in SQL | posthog. |
posthog__ | Save an insight | posthog. |
posthog__ | Create a dashboard | posthog. |
posthog__ | Add an annotation | posthog. |
posthog__ | Create a feature flag | posthog. |
posthog__ | Change a feature flag | posthog. |
posthog__ | Turn a feature flag on | posthog. |
posthog__ | Turn a feature flag off | posthog. |
posthog__ | Delete a feature flag | posthog., posthog. |
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.
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.
- Sign in to PostHog as the user the agents will act as.
- 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)
- Organization & project accessScopesName it, choose the organization, and give every scope below the access shown, plus User and Project: Read.
- Create the key, copy it, and paste it here with your region. PostHog shows it once.
| Permission at PostHog | Access |
|---|---|
| Dashboard | read-write |
| Insight | read-write |
| Feature flag | read-write |
| Experiment | read |
| Annotation | read-write |
| Error tracking | read |
| Query | read |
- 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.
9 · Links
Links
Last changed 2026-12-02. This page as Markdown: /plugins/posthog.md