AnyCable

AnyCable is an open-source realtime server for reliable two-way communication over WebSockets and Server-Sent Events.

  • Communication
  • Development
AnyCable is an open-source realtime server for reliable two-way communication over WebSockets and Server-Sent Events. It provides built-in delivery guarantees, message ordering, and presence tracking, and keeps connections alive through deploys by replaying missed messages when clients reconnect. It integrates with Rails, Laravel, Node.js, Python/FastAPI, or any backend via HTTP API, and suits teams building realtime features who want a self-hosted alternative to managed services like Pusher or Ably.

Platform availability

Available on 2 of 10 platforms

  • Unraid (not listed)
  • TrueNAS (not listed)
  • Umbrel (not listed)
  • ZimaOS (not listed)
  • Proxmox (not listed)
  • Helm (not listed)
  • Mac (not listed)
  • Windows
  • Linux (not listed)
  • Any server

Other devices

Health score?A 0-100 score computed nightly from four factors: maintained (40%: recent commits and steady activity), popular (25%: GitHub stars, log scale), easy to install (20%: platforms, install notes, setup guides, Docker image) and light to run (15%: minimum RAM, ARM support). When the source code has been checked, a fifth factor, security check (20%: automated scan for committed secrets, unsafe desktop-app settings, known-vulnerable dependencies and project hygiene; any serious finding caps it at 20), is added. Factors without data are left out and the rest are rescaled.

77/100 Good

Maintained
100last commit 0 days ago
Popular
682,395 GitHub stars
Easy to install
453 install platforms, install notes
Light to run
No data
Security check
76no serious findings, CI, tests, OpenSSF Scorecard 4.1/10

Based on 4 of 5 factors.

Availability: platform listings confirmed today

GitHub stars
2,395
Open issues
6
Last commit
2026-12-04
Latest release
v1.6.22
License
MIT
Activity
rising

Checked today - source: GitHub (anycable/anycable)

Resources & Compatibility

Requirements not published yet.

Checked today - source: Docker Hub image tags and published docs

First-install notes

  • Run the Rails setup wizard first Add the anycable-rails gem and run 'bin/rails g anycable:setup' — it's an interactive wizard that fills in the configuration for you. Skipping it means AnyCable won't be wired into your Rails app correctly. source
  • Pass cookie and origin headers to anycable-go Start the server with 'anycable-go --headers=cookie,origin --port=8080' — forwarding those headers is required for Rails' forgery protection to work. Without them, WebSocket connections will be rejected. source
  • Point anycable-go at your RPC and Redis When starting the server, set options like --rpc_host, --redis_url, and --port (e.g. 'anycable-go --rpc_host=localhost:50051 --redis_url=redis://localhost:6379/5 --host=localhost --port=8080'). If these don't match where your Rails app and Redis actually run, the server and app can't talk to each other and live updates fail. source

Fetched today - each note links to its source

Alternatives (5)

Checked today - source: AlternativeTo

Common questions

How do I wire AnyCable into my Rails app?

Add the anycable-rails gem and run 'bin/rails g anycable:setup' — it's an interactive wizard that fills in the configuration for you. Skipping it means AnyCable won't be wired into your Rails app correctly.

Why are my WebSocket connections rejected when using Rails?

Start anycable-go with --headers=cookie,origin (e.g. 'anycable-go --headers=cookie,origin --port=8080'). Forwarding those headers is required for Rails' forgery protection to work; without them, connections are rejected.

How do I point anycable-go at my app backend and Redis?

Set options like --rpc_host, --redis_url, and --port when starting the server, e.g. 'anycable-go --rpc_host=localhost:50051 --redis_url=redis://localhost:6379/5 --host=localhost --port=8080'. If these don't match where your app and Redis actually run, live updates will fail. The same settings can also be set via environment variables like ANYCABLE_RPC_HOST or stored in a .toml file.

Are there connection or message caps when self-hosting?

No — there are no caps on connections or messages when you self-host, and messages never leave your infrastructure, which is why healthcare teams run it for HIPAA-covered data.

Is AnyCable a drop-in replacement for Action Cable in Rails?

Yes, AnyCable is a drop-in replacement for Action Cable, and users commonly switch when they need to scale beyond roughly 3k simultaneous connections, since built-in Action Cable holds up fine until about that point.

How long does AnyCable keep message history for reconnecting clients?

Each stream keeps its recent history — 100 messages for 5 minutes by default, configurable — so a reconnecting client gets what it missed, in order.

Answers sourced from anycable.io, github.com, github.com, github.com, www.reddit.com

Community

Collected today - public community threads