PostHog self-hosting run by OSStend, in your cloud account or data center
Self-hosted PostHog on its MIT-licensed build, with the stack underneath it operated for you: ClickHouse, Kafka, PostgreSQL, Redis or Valkey, object storage and the ingestion services, plus backups and upgrades. It runs inside your own cloud account or data center, or in OSStend's cloud on the MIT-only build.
45 minutes with an engineer: we review your workload and sketch the design.
- ✓160+ customers, 10+ years
- ✓24/7 on-call engineers
OSStend runs self-hosted PostHog for teams whose product data has to stay in their own environment. We operate the ClickHouse, Kafka, PostgreSQL, Redis and object storage it depends on, back it up and upgrade it. PostHog itself does not support self-hosted instances, so for high event volumes we point you to PostHog Cloud.
Customers
Partners
- PostgreSQL
- MySQL
- MongoDB
- Redis
Valkey
- OpenSearch
- Kafka
- RabbitMQ
- AWS
- Google Cloud
- Azure
- Kubernetes
- OpenShift
- Prometheus
- Grafana
- Datadog
- Dynatrace
- Splunk
What OSStend runs when it hosts PostHog for you
OSStend operates the PostHog services and every data store under them; you keep your projects, dashboards, feature flags and the SDKs in your products. The stack is larger than it looks, so the design lists each service and who owns it.
| Layer | What it covers | Who runs it |
|---|---|---|
| PostHog application | The web app, background workers, ingestion and capture services, and the reverse proxy in front of them. | OSStend |
| Data stores | ClickHouse for events, PostgreSQL for app data, Kafka as the ingestion bus, Redis or Valkey, and object storage for recordings and exports. | OSStend |
| Backups and upgrades | Backups of PostgreSQL, ClickHouse and object storage before every upgrade, and the upgrades themselves. | OSStend |
| Instrumentation | SDKs in your apps, event names, properties and the reverse-proxy domain your capture calls use. | Co-owned: you instrument, OSStend checks the capture path |
| Analysis | Projects, insights, dashboards, experiments and feature flag rules. | You |
PostHog's code outside the ee/ directory is MIT-licensed (LICENSE, read 19 Nov 2026), and that is the build OSStend runs.
There is no fixed menu here: the services, data store sizes and retention rules your workload needs are written into the design you sign off before anything is built, and that design is what OSStend runs.
Can you self-host PostHog? What PostHog says about it
Yes, but on PostHog's own terms it is a hobby path. PostHog's self-hosting page calls self-hosted deployments officially unsupported, offers no customer support for them, and recommends PostHog Cloud for most teams. OSStend takes on the operations; it does not make the deployment supported by PostHog.
- ✓The supported install. A free Docker Compose deployment under the MIT licence, installed with the deploy-hobby script, on something like a 4 vCPU, 16 GB RAM VM with more than 30 GB of storage (self-host docs, read 19 Nov 2026).
- ✓Kubernetes. The same page says new Kubernetes deployments of PostHog's paid open-source product are no longer supported (self-host docs).
- ✓Support and guarantees. PostHog says it gives no customer support and no guarantees for self-hosted instances, and points to community resources (self-host docs).
- ✓Volume guidance. Its decision chart asks whether you expect more than 300k events, 1k recordings or 300k /flags calls, and above that leans to PostHog Cloud unless running infrastructure is a core skill and you accept the risk of data loss (self-host docs).
- ✓Where OSStend fits. Teams that must keep product data in their own account or site, at volumes the self-hosted stack can carry. Above that, PostHog Cloud is usually the better answer, and we say so in the review.
PostHog licence: the MIT build, the ee directory and where each can run
PostHog's repository is MIT-licensed except the ee/ directory, which has its own licence. In OSStend's cloud we run the MIT-only build. Enterprise features from ee/ are used in production only under PostHog's own subscription terms.
| Placement | What runs | Condition |
|---|---|---|
| OSStend's cloud | The MIT-only build. PostHog publishes posthog-foss, a read-only mirror of PostHog "with all proprietary code removed" (posthog-foss, read 19 Nov 2026). | No ee/ features in production unless you hold PostHog subscription terms that cover them. |
| Your cloud account | The MIT build by default, operated by OSStend inside your account and VPC. | ee/ features only under your own agreement with PostHog. |
| Your data center | The MIT build on your hosts, operated by OSStend on infrastructure you own. | ee/ features only under your own agreement with PostHog. |
The licence file names three groups: ee/ under ee/LICENSE, third-party components under their own licences, and everything else under the MIT (Expat) licence (LICENSE, read 19 Nov 2026). PostHog ships from its main branch rather than numbered self-host releases, so the design pins the image tags it runs.
OSStend's cloud
- What runs
- The MIT-only build. PostHog publishes posthog-foss, a read-only mirror of PostHog "with all proprietary code removed" (posthog-foss, read 19 Nov 2026).
- Condition
- No ee/ features in production unless you hold PostHog subscription terms that cover them.
Your cloud account
- What runs
- The MIT build by default, operated by OSStend inside your account and VPC.
- Condition
- ee/ features only under your own agreement with PostHog.
Your data center
- What runs
- The MIT build on your hosts, operated by OSStend on infrastructure you own.
- Condition
- ee/ features only under your own agreement with PostHog.
What the self-hosted PostHog stack runs: ClickHouse, Kafka, PostgreSQL and more
A self-hosted PostHog is a set of data stores plus a dozen application services. Events go through capture services into Kafka, are written to ClickHouse, and app data lives in PostgreSQL. Each store needs the care it would get on its own.
| Component | Role in PostHog | Operated as |
|---|---|---|
| ClickHouse | The analytical store for events; on PostHog Cloud it runs as shards with replicas coordinated by ZooKeeper, fed by Kafka (architecture, read 19 Nov 2026). | Managed ClickHouse, with ZooKeeper or Keeper beside it. |
| Kafka | The "central message bus connecting ingestion to storage" (architecture). | Managed Kafka, sized for event bursts and replay. |
| PostgreSQL | The relational store for the web app, workers and feature flags, behind PgBouncer on Cloud (architecture). The hobby compose file pins postgres:15.12-alpine (compose file, read 19 Nov 2026). | Managed PostgreSQL with backups and a pooler. |
| Redis or | Used by the web app; the architecture page labels it Redis / Valkey (architecture). | Managed Redis or Valkey. |
| Object storage | Session recordings and exports; the hobby compose file serves a MinIO-compatible endpoint from SeaweedFS (compose file). | S3-compatible object storage or your cloud's own bucket service. |
| Application services | Web and workers, Node ingestion services, Rust capture and feature-flag services, Temporal and etcd, per the hobby compose file (compose file). | Pinned image tags, health checks and logs for each service. |
Upgrading and backing up self-hosted PostHog
PostHog asks self-hosters to stay current and to back up all data before upgrading, but it does not describe a backup procedure. OSStend writes one per data store and rehearses the upgrade on a copy first.
- Upgrade path.
- The hobby deployment upgrades with the upgrade-hobby script, and PostHog recommends keeping the deployment up to date (self-host docs, read 19 Nov 2026).
- Backups first.
- The same page warns to back up all data before upgrading (self-host docs). OSStend snapshots PostgreSQL, runs a ClickHouse BACKUP and copies object storage before each upgrade.
- SDK order.
- PostHog says to upgrade the instance before moving server SDKs to capture v1, because those SDKs drop events that still get a 404 after retries (self-host docs). Upgrades come before SDK changes in the runbook.
- Scaling up.
- When the server struggles, PostHog's answers are a bigger instance or PostHog Cloud. The review states where your volume sits against that.
OSStend vs PostHog Cloud, running PostHog yourself, and Matomo
PostHog Cloud is the vendor's own service, in US and EU regions, with a large free allowance. Running the hobby deployment yourself costs only infrastructure but has no support. OSStend sits between them: self-hosted PostHog with an on-call team, for data that cannot leave your environment.
| Option | What it is | Published pricing | Where it fits |
|---|---|---|---|
| OSStend | Self-hosted PostHog on the MIT build, run 24/7 in your cloud account, your data center or OSStend's cloud. | Quoted per design after a workload review. See pricing. | Product data must stay in your environment, at volumes the self-hosted stack carries. |
| PostHog Cloud | PostHog's hosted service. PostHog Cloud EU is a separate instance in AWS eu-central-1, Frankfurt (PostHog, read 19 Nov 2026), and PostHog recommends it for GDPR compliance (GDPR docs, read 19 Nov 2026). | Free for 1M events, 5k recordings and 1,500 survey responses a month, as stated on the self-host page (self-host docs, read 19 Nov 2026). | Most teams, and anything at high event volume. |
| Self-hosting it yourself | The free Docker Compose deployment, officially unsupported, with no customer support from PostHog (self-host docs). | Free software; you pay for the VM and your own time. | Hobby projects and small internal use. |
| Matomo | Analytics offered as Matomo Cloud or as a free self-hosted Community edition (pricing, read 19 Nov 2026). | Cloud listed from 29 per month excluding tax; the page read showed no currency. | Web analytics rather than PostHog's product suite. |
OSStend is our service and is listed first. Other rows state only what each vendor publishes, with the date read.
OSStend
- What it is
- Self-hosted PostHog on the MIT build, run 24/7 in your cloud account, your data center or OSStend's cloud.
- Published pricing
- Quoted per design after a workload review. See pricing.
- Where it fits
- Product data must stay in your environment, at volumes the self-hosted stack carries.
PostHog Cloud
- What it is
- PostHog's hosted service. PostHog Cloud EU is a separate instance in AWS eu-central-1, Frankfurt (PostHog, read 19 Nov 2026), and PostHog recommends it for GDPR compliance (GDPR docs, read 19 Nov 2026).
- Published pricing
- Free for 1M events, 5k recordings and 1,500 survey responses a month, as stated on the self-host page (self-host docs, read 19 Nov 2026).
- Where it fits
- Most teams, and anything at high event volume.
Self-hosting it yourself
- What it is
- The free Docker Compose deployment, officially unsupported, with no customer support from PostHog (self-host docs).
- Published pricing
- Free software; you pay for the VM and your own time.
- Where it fits
- Hobby projects and small internal use.
Matomo
- What it is
- Analytics offered as Matomo Cloud or as a free self-hosted Community edition (pricing, read 19 Nov 2026).
- Published pricing
- Cloud listed from 29 per month excluding tax; the page read showed no currency.
- Where it fits
- Web analytics rather than PostHog's product suite.
What the 24/7 on-call scope covers for self-hosted PostHog
The on-call team watches the path an event takes, from capture to ClickHouse, and the stores underneath. An event that is accepted but never queryable is treated as an incident, not a curiosity.
- ✓Capture service errors and 4xx or 5xx rates from your SDKs.
- ✓Kafka consumer lag on the ingestion topics, so a stalled ingestion service is caught before events age out.
- ✓ClickHouse part counts, merges, disk and replica health.
- ✓PostgreSQL connections, replication and backup completion.
- ✓Object storage errors and growth from session recordings.
- ✓Health of each application container and the reverse proxy, with restarts logged.
From our on-call engineers: the PostHog checks in our runbook
These come from PostHog's own self-hosting and architecture pages, read on 19 Nov 2026, and the checklist we build a new deployment's runbook from. They restate documented behaviour, not a record of PostHog instances we have run, and we quote no customer figure.
- ✓No upgrade starts without fresh backups of PostgreSQL, ClickHouse and object storage, because PostHog's page asks for them and gives no restore procedure of its own.
- ✓Event volume is compared each month with the thresholds on PostHog's decision chart, and the customer hears from us when PostHog Cloud becomes the better choice.
- ✓Image tags are pinned in the design and changed only by a rehearsed upgrade, since the app ships from its main branch.
- ✓Server SDK upgrades wait until the instance is current, so capture v1 clients do not drop events.
- ✓Recording retention is set against object storage size before go-live, not after the bucket fills.
- ✓ee/ features stay off unless the customer's PostHog terms cover them.
Design. Move. Run. for PostHog
For PostHog, an engineer designs the stack and you sign it off, capture moves domain by domain, and named engineers then run it 24/7.
Design
An engineer reviews your event volume, recordings, retention, where the data must live and which PostHog features you use, and writes the design: services, data store sizes, backups and image tags. You sign it off before anything is built.
Move
OSStend builds the stack, points a test project's SDKs at it, then moves capture traffic by reverse-proxy domain. Where you already self-host, data moves with the stores' own backup and restore tools.
Run
Named engineers run it 24/7: ingestion, ClickHouse, Kafka and PostgreSQL, backups, upgrades and incident response, with the commitment written into your contract.
Deployment and service levels
Self-hosted PostHog runs inside your own cloud account, co-managed in your data center, or in OSStend's cloud on the MIT-only build. Cloud placements are fully managed; the data center is co-managed, with OSStend engineers operating PostHog on infrastructure you own.
Dedicated in OSStend's cloud
A single-tenant PostHog on the MIT-only build (posthog-foss) on Google Cloud or AWS. Enterprise features from ee/ only under your PostHog subscription terms.
Fully managedIn your cloud account
PostHog and its data stores inside your AWS, Azure or Google Cloud account, with recordings in your buckets under your keys.
Fully managedIn your data center
PostHog on your hosts, with ClickHouse, Kafka and PostgreSQL beside it, air-gapped sites included where your SDK traffic can reach it.
Co-managed
Fully managed deployments carry an uptime commitment. Co-managed deployments carry a 24/7 response-time commitment, because you own the infrastructure. The service levels page sets out the tiers, and deployment shows each option in detail.
Uptime and response figures are set per plan and written into your contract. We set our support response targets from 15 minutes, by plan.
Proof from our operating record
OSStend has 160+ customers, 10+ years of running open-source infrastructure and engineers on call 24/7.
No past PostHog deployment is claimed here and no customer is named. Self-hosted PostHog is a designed OSStend offering, built on the ClickHouse, Kafka and PostgreSQL operating practice we already run for our other engines.
Pricing for self-hosted PostHog
Self-hosted PostHog is priced from the stack design: data store sizes, retention, the SLA tier and where it runs. An engineer prices it after a workload review, and tells you when PostHog Cloud would cost less.
- Workload
- events and recordings per month, retention and the PostHog products in use.
- Cluster size
- event and recording volume, retention, and the ClickHouse and Kafka sizes they need.
- SLA tier
- fully managed or co-managed, and the uptime or response-time commitment attached.
- Where it runs
- OSStend's cloud, your cloud account or your data center.
PostHog Cloud bills by usage above its free allowance; a self-hosted stack costs much the same each month whatever you capture. Bring your monthly events, recordings and retention, and the engineer prices that design against both.
The pricing page shows the model that applies across every engine.
When to contact OSStend, and when not to
Contact OSStend when PostHog data has to stay in your environment and someone must own the stack. If your data can live in PostHog Cloud, or your volume is high, PostHog Cloud is the better choice.
Contact us if
- ✓Product analytics or session recordings have to stay in your own cloud account, region or data center.
- ✓You self-host PostHog today and nobody owns ClickHouse, Kafka or the upgrades.
- ✓You want PostHog beside ClickHouse, Kafka and PostgreSQL you already run with OSStend.
Not a fit if
- ✕High event volumes: PostHog's own guidance leans to PostHog Cloud above roughly 300k events, and its cloud is usually cheaper at scale.
- ✕Usage inside PostHog Cloud's free allowance, where self-hosting costs more than it saves.
- ✕You need ee/ features in OSStend's cloud without PostHog subscription terms.
Questions about PostHog hosting
These are the questions teams ask before having someone else run self-hosted PostHog.
Is self-hosted PostHog supported by PostHog?
No. PostHog's self-hosting page calls self-hosted deployments officially unsupported and offers no customer support for them. OSStend operates the stack for you, but PostHog still does not support it.
What does OSStend run when it hosts PostHog?
The MIT build of PostHog and everything under it: ClickHouse, Kafka, PostgreSQL, Redis or Valkey, object storage and the ingestion services, with backups, upgrades and 24/7 on-call.
Can PostHog run in my own AWS account?
Yes. PostHog and its data stores run in your AWS account and VPC, with recordings in your S3 buckets. Azure, Google Cloud and your own data center are options too.
Do I get PostHog's enterprise features?
Only under your own PostHog subscription terms. OSStend runs the MIT build, and in OSStend's cloud it is the MIT-only posthog-foss build.
When should I use PostHog Cloud instead?
When your data can leave your environment, and especially at high event volumes. PostHog's own decision chart leans to its cloud above about 300k events, and its cloud has a free allowance of 1M events a month.
Is OSStend affiliated with PostHog?
No. OSStend is not affiliated with or endorsed by PostHog Inc. PostHog's code outside the ee/ directory is MIT-licensed, and OSStend runs that build for customers.
What does self-hosted PostHog from OSStend cost?
The price follows data store sizes, retention, the SLA tier and where it runs. The pricing page sets out the model, and an engineer prices the design after a workload review.
Trademarks and affiliation
PostHog is a trademark of PostHog Inc. OSStend is not affiliated with or endorsed by PostHog Inc., and the name is used only to say which software we run. ClickHouse, Apache Kafka, Apache ZooKeeper, Matomo, SeaweedFS, AWS, Azure and Google Cloud are trademarks of their respective owners.
Related pages
- ClickHouseManaged ClickHouse service, run in your cloudManaged ClickHouse: dedicated clusters with replication, ClickHouse Keeper, backups, storage tiers and LTS upgrades run 24/7 in OSStend's cloud, your cloud account or your data center.
Apache ZooKeeperZooKeeper managed service by OSStend, in your cloudManaged ZooKeeper: Apache ZooKeeper ensembles sized for quorum, with log purging, TLS, monitoring and rolling upgrades, run 24/7 in OSStend's cloud, your cloud account or your data center.
- KafkaManaged Kafka in your cloud or data centerManaged Kafka with the broker count, partition plan, KRaft, Connect and an Apicurio or Karapace schema registry designed for your estate, run 24/7 in your cloud or data center.
- PostgreSQLManaged PostgreSQL service and Postgres hostingManaged PostgreSQL service, compared: how to choose between RDS, Aiven, Crunchy Bridge, Neon and a tailored cluster run 24/7 in your cloud or ours.
- Redis or ValkeyManaged Redis or Valkey, your choice of engineManaged Redis or Valkey: you choose the engine, with persistence, eviction and configuration set for your workload, run 24/7 in your cloud or data center.
- Object storageManaged S3-compatible object storage, MinIO-compatibleS3-compatible object storage run 24/7 on Ceph, SeaweedFS or Garage in OSStend's cloud, your cloud account or your data center, plus MinIO migration and support.
Talk to an engineer about self-hosted PostHog
45 minutes with an engineer: bring your monthly events, recordings, retention and where the data must stay, and the engineer sketches the stack, or tells you PostHog Cloud fits better.
- ✓A design sketch for your workload, not a plan menu
- ✓A zero-downtime cutover path for what you run today
- ✓A price for that design, after the review





