# Centrifugo

Centrifugo is an open-source, self-hosted real-time messaging server.

Canonical page: https://ourlocalhost.com/app/8349/centrifugo

## Description

Centrifugo is an open-source, self-hosted real-time messaging server. It delivers messages instantly to online users over WebSocket, HTTP-streaming, Server-Sent Events, GRPC, and WebTransport, using channel subscriptions as a user-facing publish/subscribe server. Language-agnostic, it integrates with any backend stack and scales to thousands of concurrent connections, serving as a self-hosted alternative to hosted services like Pusher, PubNub, and Ably. It's ideal for developers and homelabbers who want real-time features (notifications, chat, live updates) without depending on a third-party cloud.

## Platform availability

Available on 4 of 10 platforms: Mac, Windows, Linux, Any server.

## Desktop and other devices

Mac, Windows, Linux, Other (freebsd).

## Health score

86/100 (Excellent), based on 3 of 4 factors.
- Maintained: 100 (last commit 1 day ago)
- Popular: 81 (11,066 GitHub stars)
- Easy to install: 65 (5 install platforms, install notes)

## Links

- desktop: https://github.com/centrifugal/centrifugo/releases/latest
- GitHub: https://github.com/centrifugal/centrifugo
- Documentation: https://centrifugal.dev/docs/faq
- Official website: https://centrifugal.dev/

## Common questions

### Why does my client disconnect immediately with error code 3501 'bad request'?

This usually means the client did not provide authentication credentials. Centrifugo requires authentication via JWT, a connect proxy, or an auth header proxy; you can also allow anonymous connections, or enable client.insecure for local development only, but never in production.

### Can I use the --client.insecure and --admin.insecure flags in production?

No. These insecure flags remove authentication and disable most security checks and are only meant for a frictionless local trial.

### Do I need to create a config file before starting Centrifugo?

Yes. Run `centrifugo genconfig` to generate a config.json before first launch, then start the server with `centrifugo -c config.json`. Without it the server has no settings to run with.

### How many concurrent connections can a single Centrifugo node handle?

It depends on transport, hardware, message rate and size, and features enabled, so there is no fixed answer. As a general guideline, don't put more than 50-100k clients on one node, and measure and monitor your own setup.

### How does my backend publish messages to clients?

Your backend never talks WebSockets directly; it makes a simple HTTP or GRPC API call (e.g., an HTTP POST) to publish into channels, and Centrifugo handles sockets, reconnection, and delivery to subscribed clients.

## Alternatives

- Pushbullet: Send links, files, photos, lists, and notes instantly between devices, mirror phone notifications to desktop, and access clipboard syncing…
- Pushover: Pushover is a simple push notification service that integrates easily into web apps, network monitoring systems, shell scripts, and anythin…
- ntfy: Ntfy is a simple HTTP-based publish-subscribe notification service that lets you send push notifications to your phone or desktop from any…

---
Source: Our Local Host (https://ourlocalhost.com/app/8349/centrifugo), the self-hosted and open-source app directory.
