Back to all articles

How to Self-Host Helion Analytics Platform

Learn how to self-host Helion web analytics platform. Step-by-step guide to install and configure your own analytics server for better privacy and cost savings.

Helion Team

Helion Team

2/28/2025

Updated on 2/7/2026

TLDR

Run the script below. You can also watch the video at the bottom of the page, where we show the entire process.

git clone https://github.com/Shrotriya-lalit/helionlabs.git
cd helion/self-hosting
./setup
./start

Why self-host your own analytics platform?

Looking for a Mixpanel alternative? Self-hosting your own web analytics and product analytics platform has a few benefits. Here are the pros and cons of running your own analytics server.

For a comparison of all open source analytics platforms, see our guide to open source web analytics tools.

Cost benefits

Self-hosting is usually cheaper than cloud-based alternatives, especially as your traffic grows. This is one of the main reasons teams choose to self-host.

Data privacy and control

When you self-host Helion, you keep full control over your website statistics and visitor data. This makes it easier to:

  • Ensure GDPR and privacy compliance
  • Keep sensitive analytics data within your infrastructure
  • Maintain full ownership of your website traffic data
  • Customize data retention policies

Self-hosting is a good fit if you

  • Are comfortable managing a server
  • Need customizable web traffic monitoring
  • Want direct database access to your analytics data
  • Prefer open-source analytics solutions

Considering cloud

Helion offers a hosted cloud version that you don't need to self-host. This might be the better option if you don't want to manage your own server.

Depending on your traffic and server provider, it can be cheaper too.

Prerequisites

Before installing your self-hosted analytics platform, you'll need:

  • A server to host Helion. We recommend using Hetzner (use our referral link to support our work) as they offer reliable and cost-effective hosting solutions.
  • A domain name pointed to your server's IP address. If you're using Cloudflare as your DNS provider, make sure to disable the proxy mode (gray cloud) and use DNS only mode (orange cloud) for the domain or subdomain you'll use for Helion.
  • Basic command line experience

How to self-host Helion

Now that you have a server and a domain name, you can start the installation process.

Step 1: SSH into your server

SSH into your new (or existing) server. If it's fresh from the provider, secure it first. We have a guide on how to secure your server you can follow.

ssh root@your-server-ip

Step 2: Pull source code

Pull Helion's source code, which is open source and available on GitHub.

git clone https://github.com/Shrotriya-lalit/helionlabs.git

Step 3: installation

After pulling the source code, you'll have a folder named helion on your server. Jump into it and then into the self-hosting folder.

cd helion/self-hosting

You run all installation commands from this folder, whether you need to restart something or check for updates.

Now start the wizard, which guides you through the installation. It first checks that you have docker and node installed, and installs them for you if not.

After that it runs npm install and npm run quiz, which asks you some questions about your installation.

The questions are below and should be self-explanatory.

  • Ask for your domain name (must start with http:// or https://)
    • The domain name were you can access your Helion instance.
  • Configure which dependencies to install (Clickhouse, Redis, PostgreSQL)
    • You can choose to install all of them or just the ones you need (if you already have some of them running on your server you could re-use them)
  • Set up proxy settings (Caddy with SSL or bring your own)
    • This will set up the proxy settings for your Helion instance. We recommend using Caddy with SSL option.
  • Configure worker count for processing
    • This will configure the number of workers for your Helion instance. Typically this should be fine with 1-2 (you can change this later in docker-compose.yml file)
  • Set up resend api token (optional)
    • If you leave this blank some features will be disabled (email sending)
  • Create basic auth credentials for the worker dashboard
    • This will create basic auth credentials for the worker dashboard (Bullboard).
./setup

Step 4: Start Helion

Once you've answered the questions, start Helion with the following command.

We usually follow up with ./logs to check that everything is running.

./start

# Check if everything is running fine
./logs

Step 5: Access Helion

With Helion running, access it at the domain name you chose in the quiz.

Available commands

Helion comes with several utility scripts to manage your installation:

Basic operations

./start                   # Start all Helion services
./stop                    # Stop all Helion services
./logs                    # View real-time logs from all services
./update                  # Pull latest changes and restart services
./rebuild <service>       # Rebuild and restart a specific service
                          # Example: ./rebuild op-dashboard
./danger_wipe_everything  # ⚠️ Removes all containers, volumes, and data

Environment variables

If you change the .env file, you need to restart the services for the changes to take effect.

You can customize your Helion installation by editing the .env file in the self-hosting directory.

Typically these are the only two you need to change:

# Disable new user registration (will always allow the first user to register)
ALLOW_REGISTRATION="false" 

# Allow registrations through invites even tho registration is disabled
ALLOW_INVITATION="true"

Troubleshooting common issues

Connection issues

If you can't access your analytics dashboard after installation:

  • Verify your domain DNS settings
  • Check that all Docker containers are running with docker compose ps
  • Make sure your firewall allows traffic to the necessary ports

Performance optimization

For high-traffic websites:

  • Adjust worker count in docker-compose.yml
  • Monitor database performance

Updates and maintenance

To keep your analytics platform running smoothly:

  • Check for updates regularly using ./update
  • Monitor disk usage
  • Back up your data periodically
What we believe

Principles behind Helion

"

In the AI era, your event data is training signal — not just a dashboard metric.

"

The companies that win the next decade are building data flywheels, not just models.

"

You cannot prompt your way out of bad data.

"

Analytics without ownership is surveillance you are paying for.

"

Open-source is not a business model. It is a trust model.

"

Your analytics stack is your nervous system. Do not outsource it.

Ship faster.Own your data.Feed your agents.

Open-source, AI-native product analytics. Self-hosted in minutes. AGPL-3.0.