selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

OpenWA logo

Self-host OpenWA

v0.29.1

Open-source WhatsApp gateway with a swappable backend

BetaOpen SourceMIT
docker run -d --stop-timeout 75 --name openwa-api -p 2785:2785 -v "$(pwd)/data:/app/data" rmyndharis/openwa:latest
Updatedyesterday
LanguageTypescript
Setup difficultyEasy
Stars
16 612
CPU
2 cores
RAM
2 GB
Storage
20 GB
Port
2785 (REST API, bundled web dashboard, Swagger at /api/docs and Socket.IO, all on one port)
Docker
rmyndharis/openwa

What is OpenWA?

OpenWA alternatives

All self-hosted alternatives to hosted WhatsApp API gateways →

Should you self-host OpenWA?

OpenWA scores 76/100 on selfhost.directory (how scoring works) and ranks #3 of 19 in API Management. It has 16 612 GitHub stars, +606 in the last 30 days.

It shipped 8 stable releases in the past year. The latest, v0.29.1, came out on 7 November 2026. New versions land roughly every 3 days.

Setup is easy: most people get it running in one sitting. An official Docker image is available. It is MIT-licensed and written mostly in Typescript.

Its closest alternative on selfhost.directory is Kong (81/100, 44 365 stars). It scores higher overall, so compare the two before you pick. See OpenWA vs Kong side by side.

Features

  • Bulk messaging
  • Dual WhatsApp engine
  • Group Management
  • MCP server for AI agents
  • Media messaging
  • Multi-session support
  • Per-session proxy support
  • Pluggable storage backends
  • Plugin System
  • Prometheus MetricsOff by default (404) until METRICS_TOKEN is configured
  • REST API
  • Scoped API keys
  • Web Dashboard
  • Webhooks
  • WhatsApp Channels

OpenWA README

How to install OpenWA

Install OpenWA with Docker

Environment variables
PORT, API_PORT, DATABASE_TYPE, REDIS_ENABLED, STORAGE_TYPE, ENGINE_TYPE
mkdir -p data
docker run -d --stop-timeout 75 --name openwa-api -p 2785:2785 -v "$(pwd)/data:/app/data" rmyndharis/openwa:latest

Zero-config defaults: SQLite database, local media storage.

How to configure OpenWA

  • NODE_ENVproductionCORE SETTINGS
  • PORTPort the app binds to when run directly (bare metal / `npm run start:prod`). In the bundled Docker Compose the container always listens on 2785; the API_PORT below is only the HOST-published port. To run the image itself on another port, pass `-e PORT=...`: the image healthcheck never reads .env or data/.env.generated.
  • API_PORT2785Docker Compose only: the host-side port mapped to the container's 2785 (no effect on a bare-metal run).
  • SERVE_DASHBOARDServe the bundled dashboard from the API process. Set false for an API-only deployment.
  • LOG_LEVELinfo

OpenWA releases & version history

@ Every self-hosted release, weekly

One Monday email with the week's stable releases across the directory.

FAQ

Can I use a WhatsApp Business account?

Yes, both personal and WhatsApp Business app accounts work; Meta's official WhatsApp Business API is a different product that OpenWA does not use.

How many sessions can I run on one instance?

It depends on RAM and engine: roughly 3-5 whatsapp-web.js sessions on 2 GB, 8-10 on 4 GB and 15-20 on 8 GB, with baileys fitting many more.

Is OpenWA affiliated with Meta or WhatsApp?

No, it is an independent community-driven open-source project with no authorization or endorsement from Meta or WhatsApp.

Does using OpenWA risk account bans?

Any unofficial automation carries some risk; OpenWA mitigates it with simulated typing, randomized delivery intervals, per-session proxies and rate limiting.

Can I change the database or storage backend?

Yes, database (SQLite/PostgreSQL), media storage (Local/S3/MinIO) and cache (Memory/Redis) are swapped purely through configuration.

Which WhatsApp engines does OpenWA support?

whatsapp-web.js (headless Puppeteer browser) is the default, and ENGINE_TYPE switches to the browser-free baileys engine.

Can I self-host OpenWA?

Yes, it is built for self-hosting with a single Docker command; the API and dashboard are bundled together on port 2785.

Is OpenWA really free?

Yes — the whole project is MIT-licensed with no paid tier, no feature locks and no licensing fees for personal or commercial use.

More in API Management

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…