Skip to content
| Marketplace
Sign in
Visual Studio Code>Data Science>IDE Companion for PostHogNew to Visual Studio Code? Get it now.
IDE Companion for PostHog

IDE Companion for PostHog

Tobi Okedeji

|
1 install
| (0) | Free
Bring PostHog into your editor. Monitor errors, manage feature flags, query analytics, and get AI-powered fixes without leaving VS Code.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

IDE Companion for PostHog

Community project - not officially maintained by or affiliated with PostHog.

Bring PostHog into your editor. Monitor your product, investigate errors, manage feature flags, and query analytics without leaving VS Code.

Features

Proactive Discoveries

The extension polls your PostHog project every 5 minutes and surfaces what needs attention in the sidebar: active errors, firing alerts, concluded experiments, stale feature flags, and rollbacks.

AI-Powered Chat

A built-in chat backed by Claude or GPT with full access to your PostHog data and codebase. Ask questions, take action, and get code suggestions in one place. All code changes and data mutations require your explicit approval before executing.

Integration

Analyzes your codebase, figures out the right PostHog SDK and config, and shows you visual diffs for approval before changing anything. Watch demo

Custom Event Tracking

Scans your codebase for places where event captures make sense. Highlight a function and say "add captures here." Watches new files and suggests captures automatically. Watch demo

Error Investigation

Active errors show up in the Discoveries sidebar. Click one and the AI pulls the stack trace, searches your codebase, and proposes a fix. Watch demo

Alert Management

Create, update, and manage PostHog alerts from VS Code. When one fires, investigate and fix in the same flow. Watch demo

Feature Flags

Create flags, spot stale ones at 100% rollout for over 30 days, and catch rollbacks. Highlight code to wrap it in a flag, toggle flags on/off from chat. Watch demo

Dashboards

Ask "how many users signed up this week?" and the AI queries PostHog, builds insights, and assembles dashboards you can share with your team. Watch demo

Surveys

Describe a survey in plain English and the AI creates it in PostHog and proposes code changes to wire it into your app. Watch demo

Getting Started

  1. Install from the VS Code Marketplace
  2. Open the PostHog sidebar and sign in to your PostHog account
  3. Select your project
  4. Configure your AI provider (Anthropic recommended)

The extension starts polling your project immediately and surfaces discoveries as they come in.

Requirements

  • VS Code 1.85+
  • A PostHog Cloud account (US or EU region)
  • An API key from Anthropic or OpenAI

Feedback

Found a bug or have a feature request? Open an issue on GitHub.

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft