marcoscarraro/whatsapp-session-extractor — explained in plain English
Analysis updated 2026-05-18
Extract your own WhatsApp Web session to connect a Baileys-based bot without scanning a QR code.
Generate a Ticketz-compatible session file and token to link a WhatsApp connection.
Feed an existing WhatsApp Web login into whatsapp-web.js or Evolution API without re-pairing.
Troubleshoot unstable QR or pairing-code authentication in unofficial WhatsApp libraries.
| marcoscarraro/whatsapp-session-extractor | able-rip/cc-visionrouter | aisatan/poe2dire | |
|---|---|---|---|
| Stars | 29 | 29 | 29 |
| Language | JavaScript | JavaScript | JavaScript |
| Setup difficulty | moderate | easy | easy |
| Complexity | 3/5 | 2/5 | 1/5 |
| Audience | developer | developer | general |
Figures from each repo's GitHub metadata at analysis time.
Load as an unpacked extension via developer mode, then must be used only on a WhatsApp account you personally control.
This is a Chrome and Edge browser extension, built on Manifest V3, that pulls your already logged in WhatsApp Web session out of the browser and saves it as a wa-session.json file. The goal is to let that saved session be reused by unofficial WhatsApp automation libraries such as Baileys, Evolution API, Ticketz, and whatsapp-web.js, which normally require scanning a QR code or entering a pairing code, a step that has become unreliable for many users. Instead, you log into the official WhatsApp Web site once as normal, then use the extension to extract the session that was created. Under the hood, WhatsApp Web stores the cryptographic material for a session in the browser's localStorage and IndexedDB. The extension reads those stored keys, decrypts the relevant key pairs, and assembles a JSON file in the credential format that Baileys expects, then triggers a download. For Ticketz specifically, it can generate a matching JSON plus a short alphanumeric token to paste into that tool's connection settings. Everything happens locally inside the browser, and the README states plainly that no data is sent to any external server. The README is direct about the risk involved: the exported file contains the complete credentials for your WhatsApp account, and anyone who obtains it could act as you. It instructs users to treat the file like a password, store it securely, never share it, and delete it once it has been imported elsewhere. It also states this is an unofficial tool with no connection to WhatsApp or Meta, that using unofficial libraries can violate WhatsApp's terms of service and lead to a ban, and that it should only be used on accounts you personally control. Installation is done by downloading or cloning the repository, then loading it as an unpacked extension through developer mode in the browser's extensions page. Once installed, a popup on the WhatsApp Web page detects the session and offers a button to extract it, along with troubleshooting notes for common failures like an undetected page or a failed extraction.
A browser extension that exports your logged-in WhatsApp Web session so unofficial bot libraries like Baileys can reuse it without scanning a QR code.
Mainly JavaScript. The stack also includes JavaScript, Chrome Extension, Manifest V3.
Setup difficulty is rated moderate, with roughly 30min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
double-check against the repo, no cap.