cd /news/ai-agents/show-hn-whatsapp-bridge-for-those-wi… · home › topics › ai-agents › article
[ARTICLE · art-156986] src=github.com ↗ pub= topic=ai-agents verified=true sentiment=↑ positive

Show HN: WhatsApp Bridge for those with their own VPS

A developer released whatsapp-bridge, a self-hosted Go 1.27+ tool built on whats-meow that links to WhatsApp as an extra device, stores only user-ticked chats in an encrypted database on the user's own VPS, and exposes them read-only to AI assistants via MCP at https://<your server>/mcp. The bridge offers six read-only tools — search_messages, read_chat, get_message_context, list_chats, get_document and get_status — and attaches a wa:// citation to every message, with no ability to send messages, set an online status or read receipts. Deployment is documented for three paths (cloud-init, Docker Compose, and an install script for Ubuntu 24.04 or Debian 12), and the whatsapp-bridge.env file holds the database key that must be backed up or the database cannot be read.

read4 min views2 publishedOct 24, 2026
Show HN: WhatsApp Bridge for those with their own VPS
Image: Michielbdejong (auto-discovered)

A self-hosted bridge & seutp gateaway built on top of whats-meow for storing and accessing your raw whatsapp data

whatsapp-bridge links to your WhatsApp as an extra device, the way WhatsApp Web does. It keeps the chats you choose in an encrypted database on your own VPS, where you can serach the chats or query them using MCP. For now, it is read only.

flowchart LR
    phone["Your phone<br/>(WhatsApp)"] -- "linked device,<br/>like WhatsApp Web" --> bridge["whatsapp-bridge<br/>on your server"]
    bridge --> db[("Encrypted database<br/>messages of ticked chats only")]
    ai["Your AI assistant<br/>Claude · ChatGPT · Codex"] -- "MCP, after you sign in<br/>read-only tools" --> bridge
  1. Link. On your phone, openSettings › Linked devices › Link a device and scan the QR code. The bridge now receives your messages like any other linked device in WhatsApp.
  2. Tick. Choose only which chats it keeps. Every chat starts unticked, and the bridge stores none of its messages until you tick it. Tick within an hour of linking to also keep the history WhatsApp sends at linking.
  3. Ask. Connect your assistant tohttps://<your server>/mcp and sign in. It searches and reads your ticked chats when it needs to, and cites every message it uses.

Go 1.27 or newer. The web UI is built into the binary.

git clone https://github.com/vid-t/whatsapp-bridge.git && cd whatsapp-bridge
CGO_ENABLED=0 go build -o bin/whatsapp-bridge ./cmd/whatsapp-bridge
./bin/whatsapp-bridge keygen > whatsapp-bridge.env && chmod 600 whatsapp-bridge.env
./bin/whatsapp-bridge serve -env-file whatsapp-bridge.env

Open http://127.0.0.1:8080, enter the access code from whatsapp-bridge.env, link WhatsApp and tick your chats. Tick them within the hour to keep their recent history.

Important

whatsapp-bridge.env holds the database key. Without it the database cannot be read, so back it up.

claude.ai and ChatGPT reach the bridge from their own servers, so they need a public HTTPS address. Claude Code and Codex also work over localhost or a private network. deploy/SELF-HOSTING.md has three paths. Each ends at https://<your domain> with automatic HTTPS from Caddy.

Path Best for
A. cloud-init a fresh VPS: paste one file and boot
B. Docker Compose a server that already runs Docker
C. Install script an existing Ubuntu 24.04 or Debian 12 server

You need a domain pointing at the server, with ports 80 and 443 open.

In Claude Code:

claude mcp add --transport http whatsapp-bridge https://<host>/mcp
claude mcp login whatsapp-bridge

In claude.ai, Claude Desktop, ChatGPT or Codex, add https://<host>/mcp as a connector and sign in on the page that opens. docs/MCP-SETUP.md has the steps for each assistant, plus API keys for scripts.

Your assistant gets six read-only tools:

Tool What it does
search_messages full-text search across the ticked chats
read_chat read one chat in time order
get_message_context show the messages around a search hit
list_chats list the ticked chats, most recent first
get_document give the file name and caption of an attachment
get_status show the linked devices and how fresh the data is

Every message comes with a wa:// citation, so you can check the source of an answer.

  • Read-only. The code has no way to send messages, an "online" status or read receipts. The tools cannot change or delete anything.
  • Only ticked chats. Chats start unticked. The bridge never stores the messages of an unticked chat, only its name and last activity for the chat list, so no assistant can see it. For an hour after you link a phone, it holds those messages in memory only, so a chat you tick in that hour keeps its history. Then they are dropped.
  • Encrypted at rest. The database file is encrypted with Adiantum whenBRIDGE_DB_KEY is set (keygen creates it). A running bridge decrypts messages in memory, so run it on a machine you control.
  • Closed by default. It listens on127.0.0.1 and refuses a public address unless an access code and a database key are set.
  • Audited. Every tool call is logged: who called it, which tool, which chats and how many rows. The log never holds message text.
  • Nothing goes to an AI provider on its own. Your assistant gets messages only when it calls a tool, and only that call's results.
  • Your phone stays in charge. Unlink the device in WhatsApp and the bridge is cut off at once. WhatsApp also logs out linked devices when the phone has been offline for 14 days.

Warning

Unofficial client. whatsapp-bridge uses whatsmeow, an unofficial implementation of the WhatsApp Web protocol. It is not affiliated with, endorsed by or connected to WhatsApp or Meta. WhatsApp does not permit unofficial clients, and an account linked to one can be restricted. Staying silent and read-only keeps that risk low but cannot remove it. You accept it when you link an account.

Not built yet: down attachments and reading their text, and limiting what each member sees (today every member sees all ticked chats).

AGPL-3.0-only. If you run a modified whatsapp-bridge as a service, you must offer its source code to the people who use it.

── more in #ai-agents 4 stories · sorted by recency
── more on @whatsapp-bridge 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/show-hn-whatsapp-bri…] indexed:0 read:4min 2026-10-24 · —