HostPog

Product analytics that explains why a metric dropped instead of only charting the drop: HostPog pairs trends, funnels, retention, and web analytics with an AI analyst that runs the queries and shows the chart behind every answer. Funnels are built by naming the steps, then broken down by any property with drill-down to the people who dropped off. Web analytics tracks visitors, bounce rate, top pages, referrers, and UTM campaigns. The assistant keeps one conversation per user and can set up feature flags, experiments, surveys, and workflows, though anything it creates starts switched off until reviewed. Flags support percentage rollouts, person conditions, variants, and payloads, with bucketing that matches PostHog so users keep their variant. Experiments report a Bayesian chance to win, and surveys offer NPS, ratings, choices, and open text through the posthog-js widget you already ship. LLM analytics breaks down cost, tokens, latency, and errors by model and user, while logs arrive over OpenTelemetry or JSON and link each error to the person who hit it. Teams get workspaces, roles, invite links, and an audit log, and the assistant works with OpenAI, Anthropic, Gemini, OpenRouter, or a local Ollama model on your own key. Leaving PostHog takes five steps, starting with a read-only connection; nothing changes for your users until the last one, which can be undone. Running on a dedicated VPS on RepoCloud with guaranteed CPU, RAM, and SSD, full root SSH access, and a browser serial console. MIT licensed.

HostPog
HostPog
HostPog
HostPog
HostPog

Benefits

  • Answers come with their evidence
  • Ask why signups dropped in plain English and the analyst compares periods, separates traffic from conversion, then shows every step, the chart, and the query behind each number.
  • Switch from PostHog with one line
  • Point the posthog-js api_host at HostPog and flag bucketing stays identical, so users keep their variants; a guided import copies history and compares counts before you cut over.
  • Your events stay on your server
  • Events sit in your own ClickHouse, stored keys are encrypted at rest with AES-256-GCM, and the model sees aggregates with email and IP masking instead of raw events.
  • The whole toolkit in one workspace
  • Flags, Bayesian experiments, NPS surveys, LLM cost tracking, log search, and Slack or webhook workflows are built in and share one SDK, so no separate tool is needed for each.

Features

  • One-Command Docker Stack
  • The hostpog up script starts Postgres, ClickHouse, the Fastify ingest service, and the Next.js app, runs migrations, generates secrets, and adds status, logs, backup, update, and down commands.
  • PostHog-Compatible Ingest
  • The ingest service takes events at /v1/capture, /v1/batch, and PostHog-style /ph paths, so posthog-js works unchanged; a load test reached about 4,900 events per second on 2 vCPUs.
  • One Query Compiler
  • A shared builder compiles the metric DSL to HogQL or ClickHouse SQL, so connected PostHog projects and native data report identical numbers, and every chart links to its exact query.
  • Bring-Your-Own-Model Assistant
  • Model adapters cover OpenAI, Anthropic, Gemini, OpenRouter, and Ollama; the agent tools are read-only, outbound fetches are SSRF-guarded, and keys are encrypted under a master key you back up.
  • Connect, Native, Migrate
  • Connect queries an existing PostHog project read-only, Native stores SDK events in your ClickHouse, and Migrate imports a batch export, reconciles counts, then cuts over.
  • OTLP Logs and Workflows
  • Logs arrive over OTLP/HTTP or JSON with search, filters, and 30-day retention, and workflows send events to Slack or any webhook with retries.

Apps Similar to HostPog