wa-automate-nodejs
π¬ π€ The most reliable tool for chatbots with advanced features. Be sure to π this repository for updates!
Install / Use
claude mcp add open-wa -- npx -y github:open-wa/wa-automate-nodejsIf the server publishes to npm under a different name, use that package instead β check the repo README.
MCP Server
Model Context Protocol server
Quality Score
Category
AutomationSupported Platforms
Tags
Our assessment of wa-automate-nodejs
wa-automate-nodejs scores 92/100 on our quality scale, 737th of 2,730 Automation skills we index (top 27%).
Its MCP Server is 22 KB long, well organised into 34 sections with 24 code examples: a thorough specification that gives an agent plenty to work with.
With 3,684 GitHub stars, it is one of the more widely adopted skills in the catalogue.
Maintenance, license and trust
- The repository was last updated today, so wa-automate-nodejs is actively maintained.
- No license is declared. By default that means all rights are reserved: you can read it, but reusing or redistributing it is not clearly permitted. Ask the author before building on it commercially.
- Its trust signals score 88/100, with 1 caution from licensing, adoption, age or documentation. These come from repository metadata, not a code audit β read the skill file before letting an agent act on it.
Safety scan
No issues foundOur scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands.
Automated pattern scan on 2026-11-27. It catches known dangerous patterns, not every risk β read a skill before letting an agent act on it.
wa-automate-nodejs compared with similar skills
All 4 of these similar skills score higher than wa-automate-nodejs; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| wa-automate-nodejs (this skill)by open-wa | 92 | 3.7k | today | MCP Server |
| Agent-Reachby Panniantong | 100 | 115.4k | 3d ago | CLAUDE.md |
| hyperframesby heygen-com | 100 | 91.5k | today | CLAUDE.md |
| rufloby ruvnet | 100 | 82.6k | today | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 81.0k | today | CLAUDE.md |
Frequently asked questions
- How do I install wa-automate-nodejs?
- Run
claude mcp add open-wa -- npx -y github:open-wa/wa-automate-nodejs. The install tabs above show the steps for each supported agent. - Which AI agents does wa-automate-nodejs work with?
- It is written for Claude Code and Claude Desktop, as a MCP Server file. Other agents that read the same format can often use it too.
- Is wa-automate-nodejs safe to use?
- Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. It declares no license and scores 88/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is wa-automate-nodejs still maintained?
- The repository was last updated today, so wa-automate-nodejs is actively maintained.
Skill content
View source on GitHub[!WARNING] When you use this project, you explicitly agree to the Terms of Service.
This project is unofficial and is not affiliated with WhatsApp or Meta. Use it at your own risk.
<div align="center"> <img src="https://raw.githubusercontent.com/open-wa/wa-automate-nodejs/master/resources/hotfix-logo.png" width="128" height="128"/>[!NOTE] Version 5 is the current release line. Existing v4 applications should use an explicit v4 version while they migrate; unqualified installs use v5.
open-wa / wa-automate
Turn a WhatsApp account into an API, bot runtime, webhook bridge, and AI tool surface.
Project site Β· npm package Β· GitHub repository
<a href="https://discord.gg/dnpp72a"><img src="https://img.shields.io/discord/661438166758195211?color=blueviolet&label=discord&style=flat" /></a>
What this is
@open-wa/wa-automate is a Node.js toolkit for WhatsApp Web automation. You can make a local API, bot backend, webhook source, plugin host, or MCP server.
This repository is the v5 monorepo. Its packages are released together under one version number and use separate modules for the runtime, drivers, API, and integrations.
Starting from nothing? Run npm init @open-wa@latest my-bot and the project generator sets everything up. Need a WhatsApp API running quickly? Start with Easy API. Want the browser/runtime inside your own app? Use the embedded runtime. Building integrations, proxying sessions, or exposing WhatsApp to an AI agent? Those surfaces are in this repo too.
What can you build?
- customer support inboxes that sync WhatsApp into your own tools
- order, booking, and delivery notifications from internal systems
- bots that react to messages, group activity, and runtime events
- webhook bridges for CRMs, helpdesks, automations, and low-code tools
- multi-session automations with named accounts and isolated consumers
- voice and chat assistants that answer voice notes, audio calls, and ordinary chats
- AI-agent workflows through the built-in Model Context Protocol server, including ChatGPT watching and answering your chats
Capabilities at a glance
| Surface | What it gives you | Start here |
| --- | --- | --- |
| Project generator | Create an Easy API or SDK project, with the plugins you pick, from one command | Start a project |
| Easy API | Run WhatsApp as a local HTTP API with docs and generated schemas | Quick start |
| SocketClient | Connect another Node.js app to a running Easy API instance | Simple automation |
| Embedded runtime | Own the runtime lifecycle directly through createClient | Deep integration |
| Browser drivers | Choose Puppeteer, Playwright, or Lightpanda-backed runtime packages | Embedded runtime |
| Plugins | Load reusable integrations with plugins and pluginConfig | Plugins and integrations |
| Webhooks | Push WhatsApp events into your own service | Plugins and integrations |
| Chatwoot | Bridge WhatsApp into Chatwoot conversations | Plugins and integrations |
| Cloudflare proxy | Get remote access to a local session without direct exposure of local ports | Cloudflare Session Proxy |
| MCP | Let AI agents discover and call Easy API methods as tools, and watch chats with MCP Events | AI-agent integration |
| Assistants | Add Voxtral for voice notes and audio calls, and Jev for text chats with buttons, lists, forms and booking cards | Plugins and integrations |
| Stickers | Send images as stickers, including stickers that play a sound | Media guide |
Pick your path
| If you want to... | Start here | | --- | --- | | create a new project with one command | Start a project | | get a WhatsApp-backed API running in minutes | Quick start: Easy API | | build a bot without owning the browser runtime | Simple automation: SocketClient | | own the runtime inside your own Node.js app | Deep integration: embedded runtime | | move an existing v4 application to v5 | Migrating from v4 to v5 | | publish or share reusable automation pieces | Plugins and integrations |
The short version
You can use this project in a few practical ways:
- generate a project that is ready to start
- run a ready-made API with the CLI
- connect another app to that runtime
- embed the runtime directly in your own Node.js code
- add integrations and plugins
Start a project
The project generator asks whether you want the Easy API or the Node.js SDK, JavaScript or TypeScript, and which plugins to add. Then it writes the project and installs it:
npm init @open-wa@latest my-bot
cd my-bot
npm start
Scan the QR code from WhatsApp β Linked devices β Link a device. Later starts from the same folder reuse the saved login. To add the assistants at the same time, pass the plugins on the command line:
npm init @open-wa@latest my-assistant -- --plugins jev,voxtral
The quick start continues from here to your first message, and the project builder makes the same choices in the browser.
Quick start: Easy API
Want to convert a WhatsApp account into an API with the least ceremony? Run the CLI:
npx @open-wa/wa-automate@latest --port 8080
That starts an Easy API instance, launches the first-run authentication flow, and exposes interactive docs for the live session.
Use an explicit version in deployments that need repeatable installs.
For first login, the runtime will ask you to authenticate. Depending on your setup, either:
- scan the QR code the runtime prints, or
- use link-code login if that fits your setup better
Once the session is connected, open:
http://localhost:8080/api-docs/
That page is your first proof of life: the session is up, the API is reachable, and the method surface is discoverable.
Other useful generated artifacts:
http://localhost:8080/meta/swagger.json
http://localhost:8080/meta/postman.json
Useful first commands:
# choose a port
npx @open-wa/wa-automate@latest --port 8080
# provide your own API key
npx @open-wa/wa-automate@latest --port 8080 --api-key "your-secure-key"
# run a named session
npx @open-wa/wa-automate@latest --session-id sales --port 8081
Good defaults for a first real session:
- set a
sessionIdearly if you might run more than one account - protect the API with an
--api-keybefore exposing it outside your machine - keep business logic in your own app and let open-wa own the WhatsApp runtime
If your goal is simply "connect WhatsApp to another service", configure @open-wa/integration-webhook in wa.config.*. The v5 CLI parses --webhook but currently warns that CLI webhook registration parity is not restored, so that flag does not enable source-backed delivery. See Receive webhooks for the working configuration.
If you prefer Docker:
docker run -p 127.0.0.1:8080:8080 --init openwa/wa-automate
Docker notes:
- this command is for local testing or a disposable first run, because the login is lost when the container is removed
- to keep the login, mount a folder and set
WA_SESSION_DATA_PATH, as the Docker guide shows - use
--initso the init process removes zombie processes - you can pin the library version with
W_A_V, for example-e W_A_V=5.13.0
Simple automation: SocketClient
Building a bot, worker, or app integration? Keep the WhatsApp runtime in Easy API and let your Node.js app act as a clean remote consumer.
Start the runtime:
npx @open-wa/wa-automate@latest --port 8080 --api-key "your-secure-key"
Install the remote consumer in your app:
npm install @open-wa/socket-client
Keep the Easy API process running. Your app is a remote consumer, not the runtime host.
Then connect from your app:
import { SocketClient } from '@open-wa/socket-client';
async function start() {
const client = await SocketClient.connect('http://localhost:8080', 'your-secure-key');
client.onMessage(async (message) => {
if (message.body === 'Hi') {
await client.sendText(message.from, 'π Hello!');
}
});
}
start().catch(console.error);
Why this path is good for most builders:
- open-wa owns the browser automation runtime
- your app stays small and focused on automation logic
- the current v5 runtime uses HTTP RPC for commands and Server-Sent Events for runtime events behind the compatibility client
Use this choice to deploy automation quickly. The Easy API process owns browser setup, session lifecycle, and API hosting.
Deep integration: embedded runtime
If Easy API is the hosted engine, embedded runtime is the cockpit. Use it when your app needs to own browser selection, lifecycle, and runtime behavior directly.
The v5 public contract exposes createClient from @open-wa/core through @open-wa/wa-automate.
This path is lower-level than Easy API + SocketClient. Use it when runtime ownership matters more than the quickest working bot.
npm install @open-wa/wa-automate @open-wa/driver-puppeteer
import { createClient } from '@open-wa/wa-automate';
import { PuppeteerDriver } from '@open-wa/driver-puppeteer';
async function start() {
const client = await createClient({
sessionId: 'sales',
driver: new PuppeteerDriver(),
headless: true,
});
client.onMessage(async (message) => {
if (message.body === 'Hi') {
await client.sendText(message.from, 'π Hello!');
}
});
}
start().catch(console.error);
Important v5 reality:
- the repoβs current public contract centers on
createClient - maintainers are still reorganizing some older v4 docs
- pluggable browser drivers are part of the architecture
Available runtime driver packages in this repo:
@open-wa/driver-puppeteer@open-wa/driver-playwright@open-wa/driver-lightpanda
Use the embedded path when you need deeper control over browser selection, runtime lifecycle, or infrastructure behavior.
Configuration and CLI
Common config fields documented in the repoβs current config schema and docs include:
sessionIdheadlessuseChrome/executablePathqrTimeout/authTimeoutlicenseKeylinkCodepluginspluginConfig
Common high-value CLI flags include:
--port 8080
--api-key "your-secure-key"
--session-id sales
--config ./wa.config.mjs
--pm2
--license-key "YOUR-LICENSE-KEY"
Some older docs and examples still mention additional legacy or transitional flags. For v5 onboarding, prefer the smaller set above unless you have verified the exact flag against the
Truncated for display β read the full file on GitHub.
Related Skills
Agent-Reach
115.4kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu β one CLI, zero API fees.
hyperframes
91.5kOpen-source AI video editor: edit your own footage, or create and remake any video with Claude Code, Codex or the free Studio app. Write HTML, render MP4. By HeyGen.
ruflo
82.6kπ The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated
headroom
81.0kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit β see the Safety scan above for what the skill file itself contains.
