README
¶
__ __ __ __ ______ __ __ │ ╲ _ │ ╲│ ╲ │ ╲ ╱ ╲ │ ╲│ ╲ │ $$ ╱ ╲ │ $$│ $$____ ______ _│ $$_ _______ │ $$$$$$╲│ $$ ╲$$ │ $$╱ $╲│ $$│ $$ ╲ │ ╲│ $$ ╲ ╱ ╲│ $$ ╲$$│ $$│ ╲ │ $$ $$$╲ $$│ $$$$$$$╲ ╲$$$$$$╲╲$$$$$$ │ $$$$$$$│ $$ │ $$│ $$ │ $$ $$╲$$╲$$│ $$ │ $$ ╱ $$ │ $$ __ ╲$$ ╲ │ $$ __ │ $$│ $$ │ $$$$ ╲$$$$│ $$ │ $$│ $$$$$$$ │ $$│ ╲ _╲$$$$$$╲│ $$__╱ ╲│ $$│ $$ │ $$$ ╲$$$│ $$ │ $$ ╲$$ $$ ╲$$ $$│ $$ ╲$$ $$│ $$│ $$ ╲$$ ╲$$ ╲$$ ╲$$ ╲$$$$$$$ ╲$$$$ ╲$$$$$$$ ╲$$$$$$ ╲$$ ╲$$
A command-line WhatsApp client written in Go and highly riceable with Lua scripts
Screenshots Mural
A visual mural of all screenshots in the screenshots folder.
default UI |
default UI with custom colors |
old school UI with custom colors |
Discord like UI |
old school UI with default colors |
weird tower UI |
Features
- Sending messages (Text, Audio, Images, Video, etc)
- Opening Media (uses the default application)
- Forwarding, Deleting, Replying messages
- Custom keybinding for native functionality
- Custom keybinding with custom functionality
- Custom rendering of messages for personalised UI
- Custom hooks run on message received
Installation Guide
Prerequisites
Released binaries have no external service dependency. Building from source requires Go 1.25 or newer; Go will select the required toolchain automatically.
Download the Latest Binary
Go to the Releases page and download the binary for your OS:
- Linux:
whats-cli-linux-*** - macOS:
whats-cli-darwin-*** - Windows:
whats-cli-windows-***.exe
Link WhatsApp
whats-cli embeds whatsmeow and connects directly to WhatsApp. No HTTP backend, Docker container, webhook, Node.js process, or browser is required.
On the first run:
- Start
whats-cli. - Open WhatsApp on your phone.
- Go to Settings > Linked devices > Link a device.
- Scan the QR code shown in the terminal.
The linked-device session and synchronized chat history are restored automatically on later runs. Data is stored in the operating system's user configuration directory:
- Linux:
$XDG_CONFIG_HOME/whats-cli, or~/.config/whats-cli - macOS:
~/Library/Application Support/whats-cli - Windows:
%AppData%\\whats-cli
session.db contains the linked-device credentials. history.db contains the chats and messages received through WhatsApp history sync and live events. Keep both private. Delete session.db only when you intentionally want to link the application again.
If the device was linked before local chat-history persistence was available, run whats-cli --relink once. This explicitly clears the old linked session and local history, shows a new QR code, and imports the recent conversation list from WhatsApp's initial history sync.
Running whats-cli
-
Rename the binary (optional):
mv whats-cli-linux-amd64 whats-cli -
Make the binary executable (Linux/macOS):
chmod +x whats-cli -
Run whats-cli:
./whats-cli
Configuration
Configuration is loaded from ./lua/init.lua and ./lua/colors.lua when a lua directory exists in the current working directory. This makes the repository's lua directory work with go run .. Otherwise, whats-cli uses the lua directory beside the executable and creates default scripts there when needed. Information on configuration is available in the docs.
The repository's default Lua configuration follows BitchX's non-HUMBLE defaults from include/color.h: blue incoming and magenta outgoing public-message brackets, private-message labels, the standard 16-color ANSI palette, white-on-blue STATUS_FORMAT/STATUS_FORMAT2 lines, the [$C] input prompt, and the exact /WINDOW LIST column layout adapted to WhatsApp chats.
Tips
Insert media:
To anex media to your message type either media:"/path/to/media" or media:clipboard (to paste clipboard)
Default message interaction binds:
m-> Opens selected message's mediar-> Quotes the selected messagef-> Fowards the selected messaged-> Deletes the selected message
Documentation
¶
There is no documentation for this package.