waha
AGENTS.md7.5k starsChanged 21 months agoApache-2.0View on GitHub
This guide summarizes how to explore, modify, and validate the WhatsApp HTTP API (WAHA) codebase when assisting as an automation or coding agent. - WAHA ships in Core and Plus editions - Core lives under src/core and supports the default session with minimal media features - Plus extends core via src/plus to add multi-session orchestration, richer media handling, and external storage integrations - Core code must remain free from Plus-only references (pre-commit hook rejects "plus" in core files) - Commit…
- Reads credentials
Trending
Quiet since September.about the whole repository
Who's talking about devlikeapro/waha
- evolution-foundation/evolution-go“Error 463 (NackCallerReachoutTimelocked) — tctoken/cstoken not persisted after receiving messages”GitHub · Apr 30, 2026 · 9 reactions
- @gitoss.org“🔓 WAHA – WhatsApp HTTP API 📦 Self hosted whatsapp api with OpenAPI support 🌐 waha.devlike.pro 📁 GitHub: …”Bluesky · Aug 6, 2025 · 4 likes
- openclaw/openclaw“[Feature]: Native WAHA channel adapter (alongside Baileys) for stabler WhatsApp”GitHub · Apr 27, 2026 · 1 reactions
- @github-trending.bsky.social“🚀 Skyrocketing! 🚀 (200+ new stars) 📦 devlikeapro / waha ⭐ 4,470 (+330) 🗒 TypeScript WAHA - WhatsApp …”Bluesky · Oct 15, 2025 · 1 likes
- @github-trending-js.bsky.social“🚀 Skyrocketing! 🚀 (200+ new stars) 📦 devlikeapro / waha ⭐ 4,470 (+330) 🗒 TypeScript WAHA - WhatsApp …”Bluesky · Oct 15, 2025 · 1 likes
The biggest 5 of 20 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 20
Talked about on GitHub and Bluesky (20 times).
On GitHub · 17
- Apr 30, 2026Error 463 (NackCallerReachoutTimelocked) — tctoken/cstoken not persisted after receiving messages — evolution-foundation/evolution-go9 reactions · 3 comments
- Apr 27, 2026[Feature]: Native WAHA channel adapter (alongside Baileys) for stabler WhatsApp — openclaw/openclaw1 reaction · 1 comment
- Sep 28, 2026feat(channels): WhatsApp with a personal number through a bridge the owner runs — KeepOak/test0 reactions · 2 comments
- Sep 16, 2026Add WAHA 2026.8.2 API version and expose hidden mentions field — devlikeapro/n8n-nodes-waha0 reactions
- Jul 29, 2026Document POST /api/sendSticker (GOWS) — devlikeapro/waha-docs0 reactions · 1 comment
12 more on GitHub
- Jul 29, 2026Add STICKER media type for sending WebP stickers — devlikeapro/gows-plus0 reactions · 1 comment
- Jul 18, 2026[Research] @claude: Deep-audit WAHA fit; plan HaberChat replacement only if it passes — wasselre/wassell-claude-code0 reactions
- Jul 10, 2026Add notify waha support — acmesh-official/acme.sh0 reactions · 5 comments
- Jun 22, 2026feat(container): update image docker.io/devlikeapro/waha ( gows-2026.5.1 → gows-2026.6.1 ) — qnimbus/home-lab0 reactions · 1 comment
- May 31, 2026Migrate AgentForge WhatsApp provider from WAHA to OpenWA — goldytech/whatsapp-ai-travel-agent0 reactions
- Apr 2, 2026WAHA Authenticated SSRF Vulnerability in Media URL Fetch — wing3e/public_exp0 reactions
- Feb 9, 2026Add missing WAHA API endpoints from official documentation — Waha-net/waha-net0 reactions · 1 comment
- Jan 23, 2026[Add App] waha — beclab/apps0 reactions
- Jan 7, 2026WhatsApp inbound messages blocked due to LID mapping issue — openclaw/openclaw0 reactions · 5 comments
- Oct 16, 2025Posted: devlikeapro / waha — nanameru/x-post-automation0 reactions
- Jul 31, 2025feat: add waha for whatsapp api platform — abdullahainun/selfh-k8s0 reactions
- Jul 27, 2025Add waha manifest — abdullahainun/selfh-k8s0 reactions
On Bluesky · 3
- Aug 6, 2025🔓 WAHA – WhatsApp HTTP API 📦 Self hosted whatsapp api with OpenAPI support 🌐 waha.devlike.pro 📁 GitHub: github.com/devlikeapro/waha… — @gitoss.org4 likes and reposts
- Oct 15, 2025🚀 Skyrocketing! 🚀 (200+ new stars) 📦 devlikeapro / waha ⭐ 4,470 (+330) 🗒 TypeScript WAHA - WhatsApp HTTP API (REST API) that you can… — @github-trending.bsky.social1 likes and repost
- Oct 15, 2025🚀 Skyrocketing! 🚀 (200+ new stars) 📦 devlikeapro / waha ⭐ 4,470 (+330) 🗒 TypeScript WAHA - WhatsApp HTTP API (REST API) that you can… — @github-trending-js.bsky.social1 likes and repost
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repositoryOne other file it gives its agents.
- CLAUDE.mdCLAUDE.md
The file
We split this AGENTS.md into the rules it gives an agent
12 rules. About 0 are common, 2 are distinctive, and 10 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
10
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 15
Commit subjects: changes that touch src/plus require [PLUS] … prefix.
- Very specific: line 52
Prefer named function declarations over const arrow functions
- Distinctive: line 53
Avoid naming unused variables with a leading underscore
- Very specific: line 54
Always use explicit property names in object literals — never shorthand: write { key: value }, not { value } (even when the variable name …
- Very specific: line 57
Do not write verbose ternaries.
- Very specific: line 59
Do not place await or other async calls inside ternary expressions (?:) or nullish-coalescing expressions (??).
- Very specific: line 64
Do not use decorative comment blocks (lines of dashes/underscores with a label) such as // ─────────── NAME ───────────.
- Very specific: line 88
Add @Activity() (from src/core/abc/activity.ts) to every engine method that makes a network call to WhatsApp servers
- Very specific: line 103
Check the corresponding *.tools.ts file and update the tool's inputSchema, description, or behavior if the API signature changed.
- Distinctive: line 108
Ask the user whether an MCP tool is needed for the new endpoint before creating one.
- Very specific: line 110
If yes, add the tool to the matching *.tools.ts file (or create a new file for a new domain).
- Very specific: line 112
Every @Tool decorator must include an annotations block with all three fields:
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
WAHA Agent Playbook
This guide summarizes how to explore, modify, and validate the WhatsApp HTTP API (WAHA) codebase when assisting as an automation or coding agent.
Product & Variants
- WAHA ships in Core and Plus editions
- Core lives under
src/coreand supports the default session with minimal media features - Plus extends core via
src/plusto add multi-session orchestration, richer media handling, and external storage integrations - Core code must remain free from Plus-only references (pre-commit hook rejects "plus" in core files)
- Commit subjects: changes that touch
src/plusrequire[PLUS] …prefix; everything else uses[core] …
Tech Stack
- Runtime: Node.js 22.x, Yarn 3.6 (Berry)
- Framework: NestJS v11 with dependency injection and modular controllers in
src/api - Engines: WhatsApp engines are abstracted (
WEBJS,GOWS,NOWEB,WPP). Core usesSessionManagerCore; Plus swaps toSessionManagerPluswith extra storage backends (Mongo/Postgres/SQLite) - ESM Bridge: ESM-only dependencies (Baileys) load through
src/vendor/esm.ts - Utilities: RxJS streams drive webhook event fan-out. Prefer existing
helpers in
src/utilsandsrc/core/utils
Key Paths
src/main.ts: runtime entry point; dynamically loads AppModule (Core vs Plus)src/api/**: REST controllers and WebSocket gatewaysrc/core/**: shared abstractions (config services, engine bootstrap, storage, session management)src/plus/**: multi-session orchestration, advanced media services, and external persistence layerssrc/structures/**andsrc/utils/**: DTOs, enums (event names followdomain.action), helper utilities
Coding Expectations
- Favor composability and long-lived solutions
- Reuse existing helpers (
parseBool,DefaultMap, media factories) instead of reinventing logic - Stick to NestJS patterns: inject dependencies through constructors, expose provider tokens from modules
- Logging goes through injected
PinoLoggeror helpers insrc/utils/logging.ts - Respect path aliases (
@waha/...) defined intsconfig.json - Prefer named function declarations over
constarrow functions - Avoid naming unused variables with a leading underscore
- Always use explicit property names in object literals — never shorthand: write
{ key: value }, not{ value }(even when the variable name matches the key) - Do not write verbose ternaries; use idiomatic helpers like
??(nullish coalescing) - Do not place
awaitor other async calls inside ternary expressions (?:) or nullish-coalescing expressions (??); use explicitif/elseblocks or assign the awaited value to a variable first - For configs, prefer runtime configurability over constants (environment keys
follow
WAHA_*andWAHA_SESSION_CONFIG_*) - Do not use decorative comment blocks (lines of dashes/underscores with a
label) such as
// ─────────── NAME ───────────; use plain inline comments or no comment at all
How to Run API
export DEBUG=1
export WAHA_API_KEY=666
export WAHA_DASHBOARD_PASSWORD=666
export WAHA_DASHBOARD_USERNAME=admin
export WWHATSAPP_SWAGGER_USERNAME=admin
export WHATSAPP_SWAGGER_PASSWORD=666
export WHATSAPP_DEFAULT_ENGINE={WEBJS|WPP|NOWEB|GOWS}
export WAHA_DEBUG_MODE=True
export WAHA_HTTP_STRICT_MODE=1
export WAHA_MEDIA_STORAGE=LOCAL
export WHATSAPP_FILES_FOLDER=./.media
npm run startCode Guidelines
- Add
@Activity()(fromsrc/core/abc/activity.ts) to every engine method that makes a network call to WhatsApp servers - It triggers
maintainPresenceOnline()before the method runs, keeping the session ONLINE during API activity and scheduling an OFFLINE transition after an idle period - Skip it on methods that only throw
NotImplementedByEngineError/AvailableInPlusVersion
MCP Tools
MCP tools live in src/apps/mcp/tools/ and expose the HTTP API to AI clients.
Each tool file mirrors an API domain (e.g. chats.tools.ts → chats endpoints).
When you change an existing API endpoint:
- Check the corresponding
*.tools.tsfile and update the tool'sinputSchema, description, or behavior if the API signature changed.
When you add a new API endpoint:
- Ask the user whether an MCP tool is needed for the new endpoint before creating one.
- If yes, add the tool to the matching
*.tools.tsfile (or create a new file for a new domain). - Every
@Tooldecorator must include anannotationsblock with all three fields:annotations: { readOnlyHint: true | false, // true = no side effects (GET-style) destructiveHint: true | false, // true = irreversible deletion/logout idempotentHint: true | false, // true = safe to repeat with same args } - Input schemas live in the matching
*.zod.tsfile. - Tools call the API via
this.textRequest({ method, url, ... })inherited fromMcpController.
Related Sources
- WEBJS:
../whatsapp-web.js - NOWEB:
../WhiskeySockets-Baileysand../whatsapp-rust-bridge - GOWS:
../gowsand../whatsmeow - WPP:
../wa-js,../wppconnect,../wppconnect-server - ChatWoot:
../chatwoot
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

