# keycloak vs tg-spam

> Two self-hosted projects, compared on the numbers selfhost.directory tracks live: score, popularity, release cadence and setup effort.

| | keycloak | tg-spam |
|---|---|---|
| Score | 86/100 ✓ | 52/100 |
| Rank in category | #1 of 40 in Authentication | #3 of 4 in Anti-Spam |
| GitHub stars | 37 583 ✓ | 453 |
| Stars, last 30 days | +602 ✓ | +0 |
| Stable releases, 12 months | 14 | 15 ✓ |
| Latest release | 26.8.1 · 13 Oct 2026 | v1.29.1 · 27 Oct 2026 ✓ |
| Setup | Moderate | Easy ✓ |
| Official Docker image | Yes | Yes |
| License | Apache-2.0 | MIT |
| Main language | Java | Go |

## Which one should you pick?

keycloak scores 86/100 against 52/100 for tg-spam, so it is the safer default.

tg-spam ships more often: 15 stable releases in the past year, against 14 for keycloak.

If you want the quickest setup, tg-spam is easier to run; keycloak needs more configuration.

keycloak is growing faster right now (+602 stars in 30 days).

## Details

- [keycloak](https://selfhost.directory/project/keycloak) (markdown: https://selfhost.directory/project/keycloak.md)
- [tg-spam](https://selfhost.directory/project/tg-spam) (markdown: https://selfhost.directory/project/tg-spam.md)

---
Source: https://selfhost.directory/compare/keycloak-vs-tg-spam