Some bots, like King-AI , offer the option to connect via an 8-digit pairing code instead of a QR code. This is a more convenient alternative, especially when working from your phone's terminal. The bot will print a code to the terminal, and you enter it in WhatsApp -> Linked Devices -> Link with Phone Number.
Upon starting the bot for the first time, Termux will generate a large QR code directly in the terminal interface (or display a pairing code). Open WhatsApp on your secondary phone. Tap the three dots (Menu) or Settings icon. Select > Link a Device . Scan the QR code displayed in your Termux terminal.
This public link is valid for 7 days and shares a thread, including any personal information you added. This link or copies made by others cannot be deleted. If you share with third parties, their policies apply. Can’t copy the link right now. Try again later.
The following repositories are frequently updated and designed for easy installation on Termux: bot whatsapp termux github link
Most bots require Node.js, Git, and FFMPEG (for media processing): pkg install git nodejs ffmpeg -y Use code with caution.
Run this multi-command block to install git, Node.js, and build tools:
Download the latest version from F-Droid or GitHub. Do not use the Google Play Store version, as it is outdated and no longer supported. Some bots, like King-AI , offer the option
Required to download packages and link the WhatsApp session. Step 1: Prepare the Termux Environment
Launch the bot script. The execution command is typically found in the repository's README file, usually looking like this: node . Use code with caution. npm start Use code with caution. Once executed, the terminal will display a . Open WhatsApp on your primary phone (or target bot phone). Go to Settings > Linked Devices .
If you choose to proceed, start with a lightweight Baileys bot, use a secondary phone number, and never violate WhatsApp’s terms of service. When used ethically, a Termux‑based WhatsApp bot can be a powerful tool for personal automation, learning how messaging protocols work, or even building a privacy‑friendly customer support agent. When misused, it can cost you your WhatsApp account and compromise your privacy. The choice—and the code—is in your hands. Upon starting the bot for the first time,
Pull down your Android notification panel while Termux is open and tap "Acquire Wake Lock", or run termux-wake-lock in the terminal.
There are hundreds of open-source WhatsApp bots available on GitHub. Some of the most stable, feature-rich options include: