AI assistants (ChatGPT, Claude, Gemini) through WhatsApp. A self-hosted relay that forwards selected contacts' messages to the assistant's web app through BrowserOS Neo and sends the replies back.
Built for one owner, with a terminal dashboard and an optional owner-only web dashboard. It uses the unofficial Baileys WhatsApp library, not the WhatsApp Business API or OpenAI API.
I built warelay for my wife. Her workplace's website allowlist blocks ChatGPT while WhatsApp remains available. I wanted her to ask questions through WhatsApp without another app, my password or API-key setup. Reusing my existing ChatGPT subscription was part of the goal.
Browser automation is not a policy exception. OpenAI's terms restrict making an account available to others and automatically extracting output. warelay does not claim approved subscription sharing, policy compliance, or free or unlimited ChatGPT. Read Motivation and approach before using it.
Requires Node.js 24+ and either BrowserOS Neo or an installed, running Docker engine. Repository access is required while this repo is private.
git clone https://github.com/71zone/warelay.git
cd warelay
npm install
npm link
warelayThe first run guides you through choosing native or managed Docker BrowserOS, signing into ChatGPT yourself, linking WhatsApp by QR, and optionally configuring a contact's project and chat lifetime. Automatic replies require an explicit opt-in. No environment variables or Compose commands are needed for this path.
Setup resumes after interruption. Existing configured installations open the terminal dashboard directly. To run setup again:
warelay setupRerunning setup pauses forwarding. Recipients use WhatsApp; the owner handles installation, browser login and configuration.
If ChatGPT's usage limit is a problem, press O in the dashboard to add Claude (claude.ai, signed in inside the same BrowserOS) as a fallback: the next assistant takes over until the first one's limit resets, then the primary is used again. See fallback assistants.
The detailed docs form an Open Knowledge Format v0.2 bundle.
- Getting started and managed Docker browser
- Projects, memory and conversation lifetimes
- Terminal controls and configuration
- Headless server, Docker Compose and native browser override
- HTTP interface, maintenance and troubleshooting
- Architecture and extension contracts and contributing
Only enable contacts whose messages you are authorized to share. Browser UI changes, expired logins, account restrictions and verification challenges can interrupt delivery. WhatsApp may restrict accounts using unofficial clients. See delivery behavior, saved data and security.
A dedicated project per contact is recommended. Set project-only memory in ChatGPT yourself; warelay cannot verify that setting. Chat lifetimes do not promise token, latency or cost savings.
Original code is MIT-licensed. Dependencies keep their own licenses, including GPL/AGPL components. Redistribution of combined builds has not been legally reviewed; see third-party notices. Nothing is published to npm or a container registry.
warelay was called wabgpt (repository 71zone/wabgpt) while it only supported ChatGPT. The command is now warelay (no wabgpt alias), and the environment variables were renamed without fallback: WABGPT_SUPERVISED → WARELAY_SUPERVISED, WABGPT_SESSION_START → WARELAY_SESSION_START, WABGPT_RESTARTED → WARELAY_RESTARTED. The default data directory is ~/.warelay; an existing ~/.wa-chatgpt is still used when ~/.warelay does not exist (see Local data). The Docker image, container, volume and session cookie names changed too. The quick-start GIF may still show the old name.

