---
title: "Install HitKeep Self-Hosted Web Analytics | HitKeep"
description: "Choose the fastest supported way to install HitKeep with Homebrew, a Linux binary, Docker Compose, or Kubernetes and Helm."
canonical: "https://hitkeep.com/guides/installation/"
---

[Switching from Simple Analytics?**Explore HitKeep →**](https://hitkeep.com/vs/simple-analytics/)

# Install HitKeep Self-Hosted Web Analytics

HitKeep is self-hosted web analytics in one Go binary with embedded DuckDB and NSQ. Choose an installation path below based on the machine you already operate. No separate PostgreSQL, Redis, ClickHouse, Kafka, or queue service is required.

If you want the same product without operating upgrades and backups, compare [HitKeep Cloud](https://hitkeep.com/pricing/) instead.

## Choose an installation method

[Homebrew](https://hitkeep.com/guides/installation/homebrew/)The shortest install and upgrade path on Apple Silicon macOS or x86_64 Linux using the official tap.

[Linux binary](https://hitkeep.com/guides/installation/binary/)Run one process on a VPS, VM, bare-metal server, Raspberry Pi, or restricted network.

[Docker Compose](https://hitkeep.com/guides/installation/docker-compose/)Use a reproducible container deployment with persistent data, archive, and backup volumes.

[Kubernetes and Helm](https://hitkeep.com/guides/installation/kubernetes/)Install the official OCI Helm chart into a cluster you already operate.

| Your environment | Start here | What you operate |
| --- | --- | --- |
| Apple Silicon macOS or x86_64 Linux | Homebrew | One local binary and its data directory |
| Linux VPS, VM, bare metal, ARM64, or restricted network | Linux binary | One systemd service and its data directory |
| Docker-first host | Docker Compose | One container and three persistent volumes |
| Existing Kubernetes platform | Kubernetes and Helm | A StatefulSet, PVC, Service, and optional Ingress |

Using a reverse proxy?

Configure [trusted proxies](https://hitkeep.com/guides/installation/trusted-proxies/) before sending production traffic through Caddy, nginx, Traefik, an ingress controller, or a load balancer. This keeps client IPs, geo metadata, exclusions, and rate limits correct.

## What every production install needs

1. Set the browser-visible `HITKEEP_PUBLIC_URL`.
2. Generate and persist a strong `HITKEEP_JWT_SECRET`.
3. Keep the database, tenant data, archives, and backups on persistent storage.
4. Put HTTPS in front of HitKeep and configure [trusted proxies](https://hitkeep.com/guides/installation/trusted-proxies/).
5. Verify `/healthz` and `/readyz`, then complete the setup wizard.
6. Test a backup and restore before relying on the deployment.

The [Configuration Reference](https://hitkeep.com/reference/configuration/) contains the current flags, environment variables, defaults, and sensitive-value guidance. [Backups and Restore](https://hitkeep.com/guides/data/backups-and-restore/) explains the complete data set and restore flow.

## After installation

Open your configured public URL. The setup wizard creates the first owner and guides you through adding a site and installing the tracking snippet.

Next:

- [Understand and verify tracking](https://hitkeep.com/guides/tracking/tracker-architecture/)
- [Configure trusted proxies](https://hitkeep.com/guides/installation/trusted-proxies/)
- [Plan backups and restore](https://hitkeep.com/guides/data/backups-and-restore/)
- [Tune performance and memory](https://hitkeep.com/guides/installation/performance/)

[Previous AI development with HitKeep](https://hitkeep.com/guides/integrations/ai-development/)[Next Homebrew](https://hitkeep.com/guides/installation/homebrew/)
