Prerequisites
- An Airstore account with the CLI installed (installation guide)
- A PostHog account with data you want to access
- A PostHog personal API key
Get your PostHog API key
Open PostHog settings
Log in to PostHog and click your profile icon in the top right corner, then select Settings.
Create a personal API key
Navigate to Personal API Keys and click Create personal API key. Give it a descriptive name (e.g., “Airstore integration”).
Connect PostHog
- Dashboard
- CLI
- Go to app.airstore.ai
- Navigate to Settings → Integrations
- Click PostHog → Connect
- Enter your API key and optionally a custom host URL
Available data
Once connected, you can access the following PostHog resources:| Resource | Description |
|---|---|
| Events | Analytics events tracked in your project (pageviews, custom events, etc.) |
| Feature flags | Feature toggles and their current status |
| Insights | Saved analyses like trends, funnels, and retention charts |
| Cohorts | User segment definitions based on behavior or properties |
Filesystem structure
After mounting, PostHog data appears under~/airstore/posthog/:
Smart folder queries
Create smart folders with natural language to query your PostHog data:| Query | What you get |
|---|---|
| ”active feature flags” | Currently enabled feature toggles |
| ”pageview events from last week” | Recent page view analytics data |
| ”onboarding funnel insights” | Saved funnel analyses for user onboarding |
| ”power user cohort” | User segment definitions |
- Words like “flag” or “toggle” route to feature flags
- Words like “funnel” or “retention” route to insights
- Words like “cohort” or “segment” route to cohorts
- Event-related queries route to events by default
Using a self-hosted PostHog instance?
Using a self-hosted PostHog instance?
If you’re running PostHog on your own infrastructure, provide your custom host URL when connecting. Airstore will use this URL instead of the default PostHog Cloud endpoint.Via the dashboard, enter your host URL in the connection form. Via the CLI, use the
--host flag: