Llm Analytics Apps
Description
Node.js and Python examples for integrating LLM providers with PostHog's AI SDKs for observability and analytics
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
README
LLM Analytics Apps
Internal tooling for the PostHog LLM Analytics team. Contains demo data generators, trace generators, test scripts, and a runner for the SDK examples that live in [posthog-python](https://github.com/PostHog/posthog-python) and [posthog-js](https://github.com/PostHog/posthog-js).
For copy-paste-able provider integration examples, see the `examples/example-ai-*` directories in each SDK repo.
Setup
Requires:
cp .env.example .env
# Fill in your API keys in .env
make setup
Tools
SDK Example Runner
Discovers and runs all `example-ai-*` examples from sibling `posthog-python` and `posthog-js` repos.
# List all available examples (with cache status)
./run-examples.sh --list
# Run a specific example or group by name
./run-examples.sh anthropic # all anthropic examples
./run-examples.sh python/openai # python openai examples only
# Run all examples in parallel via phrocs
./run-examples.sh --parallel
# Run all sequentially
./run-examples.sh --all
# Force re-run (ignore cache)
./run-examples.sh --rerun --all
# Install dependencies for all examples
./run-examples.sh --install
Demo Data Generator
Generates realistic multi-turn conversations across all supported providers using the PostHog AI SDKs directly. Useful for populating a PostHog instance with representative LLM analytics data.
make demo-data # 5 conversations, random providers
make demo-data-quick # 3 short conversations, single provider
make demo-data-tools # tool-heavy conversations
make demo-data-negative # negative sentiment for testing
Trace Generator
Creates complex nested LLM trace data (traces, spans, generations) without making real LLM calls. Useful for testing PostHog's trace visualization.
make run-trace-generator
Test Sc
Related Skills
mcp-server-postgres
Read-only PostgreSQL database access.
Data mcp-server-sqlite
SQLite database interaction and querying.
Data mcp-server-google-maps
Google Maps integration for location data.
Data Bitbucket Data Center
---
Data Csv Data Summarizer
Automatically analyze CSV files and generate comprehensive insights with visualizations
Data Financial Services
Reference agents, skills, and data connectors for the financial-services workflows we see most — investment ba
Data