matrix-rat icon

matrix-rat

A Matrix chat client for the terminal and the browser, as happy with a mouse as with a keyboard.

Rooms on the left, the conversation in the middle, your message at the bottom. Encrypted chats, real pictures, threads, voice messages and themes, in a terminal window, in your browser, or on your phone.

matrix-rat with the room list, a chat with an inline picture, and the composer

Version 1.4 · Apache-2.0 · free, no account with us, no tracking

Three ways to use it

In the terminal.

The full client: kitty-graphics pictures, desktop notifications, drag and drop files, every key rebindable. Linux, prebuilt for x86-64 and ARM, or from the Nix User Repository.

In the browser and on your phone.

The same app compiled to WebAssembly. It talks straight to your homeserver: no server of ours in between, no analytics, nothing loaded from anywhere else. Add it to your home screen and it behaves like an app.

For agents and scripts.

matrix-rat serve keeps a bot account online; send, read and listen work from scripts, and matrix-rat mcp lets a coding agent ask you a question in a chat and wait for your answer. Only verified, encrypted messages from you count as your answer.

What it does

Private by default

End-to-end encryption, emoji verification, your recovery key, clear warnings on messages that can’t be fully trusted.

Everything a chat needs

Replies, edits, reactions, threads, polls, stickers, custom emoji, voice messages, mentions and read markers.

Find things fast

Ctrl-K for rooms, Ctrl-F in a room, Ctrl-G across all rooms (encrypted ones too), Ctrl-P for every command.

The command palette listing commands as you type

Fits any window

Below 60 columns one pane fills the window, so it works on a phone and in a narrow split.

A narrow window showing the room list
The same window after opening a room

Yours to shape

Thirteen themes, dark and light pairs, live theme files from your desktop, every key your own.

matrix-rat in another theme

Pick up where you left off

A line above the first unread message, Alt-U to jump back, mark rooms unread, save messages for later.

Install

In the browser

Open matrix-rat in the browser. On iPhone and iPad: Safari → Share → Add to Home Screen (recommended there: Safari clears sites not visited for 7 days, a home-screen app is exempt). On Android: Chrome → menu → Install app.

On Linux

Download the archive for your machine from Releases (x86-64 or ARM64), unpack, run matrix-rat.

With Nix

nur.repos.tylerstyle.matrix-rat from the Nix User Repository, prebuilt in a binary cache.

From source

cargo build --release with Rust 1.99 or newer; see the README.