Skip to content
Projekte

Über uns

WhatsApp, Telegram, Slack, Instagram and Messenger in one terminal app — local bridges,

Entwicklerwerkzeuge

So werden diese Zahlen gemessen

Gemessener Sternzuwachs

in 24h
+31
in 7 days
+52
in 15 days
+94
in 1 month
Verlauf wird gesammelt

Nettoänderungen in überlappenden Zeiträumen, keine Tagessummen. Fehlende Messwerte bleiben leer. Sterne zeigen Interesse, nicht Qualität.

README.md

Original

tuimessenger icon

tuimessenger

All your networks in one terminal app: WhatsApp, Telegram, Slack, Instagram, Messenger and Signal.

https://github.com/user-attachments/assets/f8ef302e-0fbf-47e7-8332-0c94909adfa5

  • Every network in one app, with your chats, sessions and media kept on your machine.
  • Keyboard first: Ctrl+k jumps to any chat, Ctrl+p has every command; reply, react and open photos without the mouse.
  • AI help when you want it: let your coding agent read your chats and draft replies (tuimessenger integration install claude, codex or opencode).
  • Light: about 100–200 MB of RAM with all your networks connected, where desktop messengers often take 1.5–2 GB.
  • Local only: no server of ours in between; see Security and privacy for what is and isn't encrypted.

⚠️ Bridges carry a risk of the network flagging or banning your account. Proceed with caution.

Install

Script (macOS and Linux, no sudo; installs to ~/.local/bin, run it again to update):

curl -fsSL https://raw.githubusercontent.com/whyyor/tuimessenger/main/install.sh | sh

Homebrew (macOS and Linux):

brew install whyyor/tap/tuimessenger

Arch Linux (AUR, community-maintained by @Dominiquini, thank you!):

yay -S tuimessenger-bin    # or paru, or any AUR helper

Download: grab the archive for your system from Releases, unpack it and put tuimessenger somewhere on your PATH (e.g. ~/.local/bin). The binaries aren't signed by Apple, so on macOS a browser download is blocked the first time; clear that once with xattr -d com.apple.quarantine ./tuimessenger (Homebrew installs don't need this).

Nix:

nix run github:whyyor/tuimessenger -- tui          # try it
nix profile install github:whyyor/tuimessenger    # install it

From source: see Building.

Linux binaries need glibc 2.35 or newer (Ubuntu 22.04, Debian 12, Raspberry Pi OS and later). A Nerd Font in your terminal makes the icons show up; yazi is used as the file picker when it's installed.

Quick start

  1. Start it: tuimessenger tui, choose Complete setup (backend and client on this machine) and pick a password. The password protects the local server; other clients on this machine log in with it.
  2. Connect your networks: Ctrl+p → Networks → pick one and follow the steps: a QR code or pairing code for WhatsApp, a QR code for Signal (Signal → Settings → Linked devices), phone number and code for Telegram, a browser login for Slack, Instagram and Messenger (Messenger can also log in with username and password, as its Android app). Messenger and Signal start off: pick one and press Enter to turn it on. The browser login opens Chrome, Chromium, Brave, Edge or Helium (TUIMESSENGER_BROWSER picks another) and closes it when you're done; without one, you paste the cookies instead. For Telegram, first create your keys: log in at my.telegram.org → API development tools → create an app (any name) → paste api_id and api_hash into the Networks panel.
  3. Chat: Ctrl+k jumps to any chat, Enter sends, Ctrl+p shows every command and key.

Keep the backend running

By default the backend (the bridges to your networks) runs inside the app and stops when you quit it. If you want your networks connected all the time, run it as a background service:

tuimessenger service install    # a launchd agent on macOS, a systemd user unit on Linux; starts with your login
tuimessenger service status     # is it running, and does it answer
tuimessenger service uninstall  # back to running inside the app

Messages keep arriving while the app is closed, and if a bridge ever crashes only the service restarts: the app stays open and reconnects. After upgrading tuimessenger, run tuimessenger service install again to restart it.

Configure

Theme, colours, preferences and keys all live in one file, ~/.config/tuimessenger/tuimessenger.yaml. tuimessenger writes a commented template there the first time it starts, and only ever reads it, so it's at home in your dotfiles. All of opencode's themes are built in (Ctrl+p → Theme previews them live), and your own opencode-format themes work too. tuimessenger config checks the file for mistakes, and editors with the YAML language server complete and check it as you type.

Every setting: docs/config.md.

Keys

Key What it does
F1 Every key and command, searchable (also Ctrl+p → Keys and commands; ? in Ctrl+p lists only keys)
Ctrl+p Command palette: every command, chat and key (> commands, @ chats, ? keys)
Ctrl+k Jump to a chat (then Ctrl+p to peek without sending "seen")
↑ ↓, 1–8 Browse chats / open an unread chat (home screen)
Ctrl+; or Alt+v Select messages (visual mode): j/k move, 1–6 quick react, + reactions, Space opens media, i message info
Ctrl+e Emoji picker
Alt+u Mark a chat unread
Shift+Enter New line
Ctrl+c Clear the input (Ctrl+z brings it back)

Every key can be changed in tuimessenger.yaml.

Where things are

macOS Linux
Data (chats, sessions, media, config.yaml) ~/Library/Application Support/tuimessenger ~/.local/share/tuimessenger
Logs ~/Library/Logs/tuimessenger ~/.local/state/tuimessenger
  • Your settings: ~/.config/tuimessenger/tuimessenger.yaml and your themes in ~/.config/tuimessenger/themes/ (see Configure). What you change in the app (Ctrl+p) is saved in tui/config/terminal.yaml in the data folder; tuimessenger.yaml wins over it.
  • tui/client.db is the client's copy of your chats; tui/config/drafts.json keeps what you left typed in each chat (✎ in the chat list), so it's still there when you come back, even after a restart.
  • Logs: tuimessenger.log (backend), terminal.log and client.log (client), and crash.log, which keeps the stack trace if the app ever crashes. Please attach it to bug reports.
  • macOS notifications come from small apps tuimessenger sets up in ~/.local/opt/tuimessenger/notifiers: one per network (WhatsApp, Telegram, Slack, Instagram, Messenger, Signal), so each shows its own icon and can be muted on its own in System Settings → Notifications, and tuimessenger.app for the rest. The first notification from each asks for permission; closing that prompt with × counts as "Don't Allow". To turn them back on: System Settings → Notifications → the network's entry (e.g. WhatsApp) → Allow notifications.

Security and privacy

  • No third-party server in between. The bridges run inside tuimessenger on your machine and connect straight to each network: WhatsApp with its end-to-end encryption (messages are decrypted on your machine, like on any linked device), Signal end-to-end encrypted the same way, Telegram over MTProto, Slack and Instagram over HTTPS, and Messenger over HTTPS, with its encrypted chats end-to-end encrypted like WhatsApp's.
  • Not encrypted at rest. Chats, media and network sessions (keys and cookies, never passwords) sit unencrypted in the data folder, readable only by your user. Use full-disk encryption (FileVault, LUKS).
  • Logs are detailed and can include message details. They're readable only by your user, but read through them before attaching them to a bug report.
  • The backend only listens on this computer (127.0.0.1:8008) and needs the password you chose (only a bcrypt hash of it is stored). AI agents use a token of their own (agent-token), and read only when you ask your agent. The API has no TLS, so the backend refuses a -listen address other machines can reach. To use a backend on another machine, reach it through an SSH tunnel or Tailscale (on a Tailscale address, -allow-remote lets it listen there).
  • What it can't protect against: a program running as your user can read the data folder, as with any desktop messenger. If you think a session leaked, log out in the Networks panel, or remove the session in the official app (WhatsApp → Linked devices, Telegram → Active sessions); that makes the copied keys useless.

Building

Go 1.26+ and a C compiler (cgo, for SQLite). Always build with the goolm and sqlite_fts5 tags (the Makefile does this):

make build   # or: go build -tags goolm,sqlite_fts5 ./cmd/tuimessenger
make test
make vet

Without goolm, the build looks for the libolm C library (olm/olm.h not found).

Releases: a vX.Y.Z tag on main builds the binaries for macOS and Linux, publishes the GitHub release and updates the Homebrew formula (.github/workflows/release.yml).

What's next

  • Line
  • Running the backend on another machine, like a Raspberry Pi, with the terminal app connecting to it.
  • More Linux testing: it builds and runs on x86_64 and arm64, but most use so far is on macOS. Reports welcome.

Credits

tuimessenger is built on the work of others:

  • The terminal client (internal/tui, internal/rpc, internal/hicli, internal/rainbow) comes from gomuks by Tulir Asokan and contributors, via the fork whyyor/gomuks, and was imported with its git history.
  • The network bridges are the mautrix bridges (WhatsApp, Telegram, Meta, Slack) and the mautrix-go bridge library.
  • Notifications on macOS are shown by terminal-notifier by Eloy Durán and Julien Blanchard (MIT), bundled with tuimessenger's name and icon; see THIRD_PARTY_NOTICES.md.

License

tuimessenger is licensed under the GNU Affero General Public License, version 3 or (at your option) any later version (see LICENSE). Imported files keep their original license headers: parts of the client are under the Mozilla Public License 2.0 (internal/hicli/LICENSE).

Ähnliche Projekte entdecken

Wird geladen…