executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
posthog-install-authInstall and configure PostHog SDK/CLI authentication. Use when setting up a new PostHog integration, configuring API keys, or initializing PostHog in your project. Trigger with phrases like "install posthog", "setup posthog", "posthog auth", "configure posthog API key".
Independent GitHub snapshot · Automated classification · Original documentation governs
Set up PostHog SDK/CLI and configure authentication credentials.
# Node.js
npm install @posthog/sdk
# Python
pip install posthog
# Set environment variable
export POSTHOG_API_KEY="your-api-key"
# Or create .env file
echo 'POSTHOG_API_KEY=your-api-key' >> .env
// Test connection code here
| Error | Cause | Solution |
|---|---|---|
| Invalid API Key | Incorrect or expired key | Verify key in PostHog dashboard |
| Rate Limited | Exceeded quota | Check quota at https://docs.posthog.com |
| Network Error | Firewall blocking | Ensure outbound HTTPS allowed |
| Module Not Found | Installation failed | Run npm install or pip install again |
import { PostHogClient } from '@posthog/sdk';
const client = new PostHogClient({
apiKey: process.env.POSTHOG_API_KEY,
});
from posthog import PostHogClient
client = PostHogClient(
api_key=os.environ.get('POSTHOG_API_KEY')
)
After successful auth, proceed to posthog-hello-world for your first API call.