← irust

Documentation

How to install, connect, and get around.

What's new

r46CPU/battery use on MULTIPLE connected networks is now just as low as r45 made it for one -- each network previously ran its own independent statusbar-clock timer (4 networks meant 4 redraws/sec instead of 1), and figuring out your own rank (@/+) on every channel on every redraw was sorting the whole nicklist just to throw it away again. Confirmed live on a real 4-network/14-window session: ~11-14% CPU down to under 1%
r45the statusbar clock no longer forces a full re-render every second — a redraw now reuses the previous frame when nothing actually changed, cutting idle CPU/battery use dramatically on slower hardware on a single network (confirmed via live measurement: roughly 10x lower); irust also checks once at startup whether a newer build is published and mentions it in the status window, instead of only finding out by running /update yourself
r43CTCP VERSION reply now includes OS and architecture by default, same format as real irssi
r42/upgrade now reconnects every network that was actually connected, rejoins its channels and restores its nick automatically; a private NOTICE prefixed [#channel] lands in that channel like real irssi; new commands /die, /sconnect, /restart, /resize, /rmrejoins, plus /load//unload//reload//script; flood detection with autoignore; irssi-style nick tab-completion; WHOIS no longer leaks a safe channel's random ID; away/back now shows in the channel too
r41mIRC's extended colours (16-98) now show correctly instead of being dropped; /big -3d block-letter text; plugins can speak in the window (irust.say)
r40/who and /whois output now looks like real irssi's
r39/upgrade fixed for good — self-update and restart without dropping connections
r35/autoban — automatic antispam kickban, off by default
r32a bouncer re-attaching no longer dumps old private messages into whatever channel happens to be open
r31multi-network: per-network tabs, Ctrl-A to switch, -network override on any command

Installing

Grab the binary for your architecture from the homepage — x86_64 for a normal 64-bit Linux box, the i686-linux-musl build for older 32-bit hardware. Both are static, self-contained builds: no dependencies to install first.

FreeBSD and macOS builds are coming soon — Linux only for now.

chmod +x irust-x86_64-linux
./irust-x86_64-linux

First run creates ~/.config/irust/ with an empty config — see Getting started below for how to add a network to it. From then on, /update keeps the binary current in place; no need to come back here for every release.

Prefer to build it yourself instead? The source package on the homepage builds with a plain cargo build --release.

Getting started

Configuration

Irust reads a single config.toml from its config directory (~/.config/irust/ on Linux). Each server you want available is a [networks.<name>] block:

[networks.chatnet]
host = "irc.chatnet.gg"
port = 6697
tls = true
nick = "abcX"
autojoin = ["#chatnet"]
autoconnect = true

autoconnect = false (the default when omitted) means irust starts without connecting anywhere — useful for a config you only want to reach for manually with /connect.

Add tls_fingerprint = "<sha256>" to pin that network to one exact certificate (plain or colon-separated hex — whatever openssl x509 -fingerprint -sha256 or another client shows you) instead of trusting a CA chain. Stricter than tls_verify = false: it still refuses a different cert, it just doesn't need a trusted chain behind the right one.

For a server with only one plaintext port instead of a separate TLS one, add starttls = true — irust connects plaintext, then upgrades the same socket to TLS in place before registering. Aborts the connection outright if the server doesn't confirm it, rather than falling back to plaintext.

First connection

With no config yet, add a network and connect in one go:

/network add chatnet irc.chatnet.gg:6697 -nick abcX -autojoin #chatnet
/connect chatnet

That's it — irust remembers it in config.toml for next time.

Everyday basics

Joining and talking

/join #channeljoin a channel
text, no slashsent as a message to whatever window is active
/query nickopen a private window with someone
/me does a thingan action, like real irssi
/nick <newnick>

Moving between windows

Same feel as irssi: Alt+1-9 jumps straight to a window, Ctrl-N/Ctrl-P cycles to the next/previous one. All rebindable with /bind. The mouse works too — click a window in the window-list bar to jump to it, or scroll the wheel over the chat pane to scroll its history.

/window #channeljump to a window by name or number
/wcclose the current window

Split panes

Real tiling — as many panes as you want, each scrolling independently (the mouse wheel scrolls whichever pane it's over):

/split #chatnet        # stacked below (default)
/split -v #dev         # side by side instead
/split_focus           # cycle to the next pane
/unsplit                # close the most recent one
/split [-v|-h] <name|index>
/unsplit [name|index]no arg: the most recently opened pane
/unsplit -all
/split_focus [name|index]no arg: cycles forward; -prev: backward

Window items

A different axis from split panes — group several channels/queries under ONE window slot instead of showing them side by side, only one visible at a time:

/window item add #other   # groups #other with the active window
/window item             # cycle to the next item in the group
/window item goto #other  # jump straight to it
/window item remove       # pull the active item back out on its own

A window layout you don't want to rebuild by hand

If you always end up with the same channels open, save that once and irust restores it on every future connect:

/layout save

Per-channel setup

Persistent settings for one channel, independent of a network's own autojoin list — a join key, whether it autojoins, and a command auto-sent to a channel bot once it's seen present:

/channel add #chatnet chatnet -auto secretkey
/channel add #chatnet chatnet -bots K9,ChanServ -botcmd identify hunter2
/channel list
/channel remove #chatnet chatnet

-botcmd always comes last — it takes the rest of the line as its value. A keyless /join of a configured channel picks up its stored key automatically.

Themes

Three built-in presets — classic (irust's original look), vivid, mono:

/set theme vivid

Or define your own in custom_themes.toml (same config directory), overriding as much or as little as you want — colors, wording, or both. Anything left out falls back to classic's own value for it:

[themes.sunset]
statusbar_bg = "203"
leave = "#ff5500"
format_join = "$nick wandered into $channel"
format_quit = "$nick vanished ($reason)"

Colors are ratatui's own syntax — a name ("cyan"), an index ("203"), or "#rrggbb". Format templates cover the 12 core chat-activity lines (join, part, quit, kick, nick change, topic, mode, host change, account login/logout, real-name change, invite) plus DCC transfer status and WHOIS layout, with $placeholders like $nick/$channel/$reason — then /set theme sunset picks it up alongside the 3 built-ins.

Command reference

The same list lives inside irust itself — /cmds for the overview, /cmds <command> for a command's exact syntax and an example. What's below are the highlights.

Messaging

/msg <target> <text>send a message anywhere without switching windows
/notice <target> <text>
/ctcp <target> <cmd>e.g. /ctcp abcX VERSION
/nctcp <target> <cmd> [data]an unsolicited CTCP reply (NOTICE-based), distinct from /ctcp's request
/action <target> <text>like /me but to an explicit target
/wall [#chan] <text>ops-only channel message
/ping [nick]no nick: your own lag to the server

Channels & moderation

/join #chan
/part [#chan]
/cycle [#chan]part then rejoin
/invite <nick> [#channel]default channel: the active one
/kick / /ban / /kickban
/unban [#channel] <nick|mask>
/knockout <nick> [duration] [reason]timed ban+kick, auto-unbans after the duration
/quiet [#channel] <nick|mask> / /unquiet ... [more masks...]
/op / /deop / /voice / /devoicewildcards expand against the channel's nicklist
/mode #chan +m
/topic [#chan] [text]
/channel add|modify|remove|listsee everyday basics
/autoban [-regex] [-reason <text>] <pattern>no arg: list patterns; auto-kickbans a match. Off by default — /set autoban on first
/unautoban <id|pattern>

Info

/who [#chan]
/whois [nick]
/names [#chan]
/list [pattern]
/lastlog <pattern>search the active window's scrollback
/whowas <nick> [count]
/netsplitlists currently-recognized netsplits

Connection

/connect <network>
/disconnect [network]
/network add ...see getting started
/network modify <name> [...]only the fields you give change, the rest stay as they were
/server <network>switch a window to a connected network
/reconnect
/quit [reason]no reason: picks one at random from a built-in pool

With more than one network connected, the window list splits into per-network tabs — a background one lights up when something happens there ([libera +3] = 3 windows waiting, [libera +1!] = someone mentioned you). Ctrl-A jumps to the next network tab (rebindable, and server_prev goes back). Any command can target a network you're not currently in with a -<network> flag instead of switching: /join -libera #x, /msg -cyber nick hi.

Settings

/set [key] [value]no args: list every setting
/alias k9 msg k9 / /unalias <name>
/bindrebind keys
/notify [nick] / /unnotify <nick>get told when someone comes online/offline; no arg: show your watch list
/hilight [-regex|-mask|-channels #a,#b|-color value] word / /dehilight <word>
/ignore [-regex|-except|-replies] mask [level...|all] / /unignore <mask>glob or regex masks; -except carves out a broader ignore, -replies also ignores a reply to an ignored nick
/nickcolors [on|off] / /textcolors [on|off]no arg: toggle
/set theme vividsee everyday basics for custom themes
/set nick <value>global fallback nick when a network doesn't set its own
/set ident <value> / /set realname <value>the USER command's ident and realname/gecos fields
/set show_joinpart on|offhides channel join/part lines entirely
/set flood_interval_ms <n>minimum spacing between outbound lines, default 600
/set dcc_port_range <start>-<end> / /set dcc_own_ip <ip>for DCC behind a firewall/NAT
/set scrollback_lines <n>per-buffer line cap for new buffers, default 1000
/set autolog_ignore_targets <t1,t2,...>exclude specific targets from automatic per-buffer logging
/set paste_grace_ms <n>raw-paste drain gap timeout, default 150
/set show_away_once / /set show_quit_oncededup repeated away notices / collapse a multi-channel quit
/set window_history oneach window gets its own recall history instead of one shared
/toggle <key> [on|off]flip a boolean /set without typing its value
/set cmdchars <chars>command-prefix character set, default / — can hold more than one, e.g. /. makes both /join and .join work
/set recode_out_default_charset <charset>global outgoing-only fallback for /recode, used when no per-target override applies
/set dcc_autoget onauto-accept incoming DCC sends; see dcc_autoaccept_lowports, dcc_autoresume, dcc_autoget_masks, dcc_autoget_max_size
/color <nick> [index]no index: cycle to the next color
/completion [key] [value] / /completion -delete <key>custom Tab-completion shortcuts, e.g. afk → brb, away from keyboard

Windows & view

/window <name|index>
/wc [name|index] / /wc *|allno arg: current window; */all: every buffer
/wc queries (or /wc q)closes every query, channels untouched
/split [-v|-h] <name|index>see everyday basics
/unsplit [name|index|-all] / /split_focus [name|index]
/clear [-all]
/statusbar add/remove/resetcustomize the bottom bar's items and order
/layout save/resetremember which channels/queries were open
/window item add|remove|goto <name> / [prev|next]see everyday basics
/log start|stop [name|index]manual per-window logging control; bare /log reports status
/redrawforces a full terminal repaint
/scrollback home|end|status|goto <n|+n|-n>goto also takes a timestamp; +n/-n is relative to where you are

Other

/away [reason] / /back
/setname <realname>needs the server's setname IRCv3 cap
/quote <raw line>sent to the server exactly as typed
/exec <shell command>
/eval <command(s)>split on ;, expands $-variables like $N (nick), $C (channel), $topic — see below
/format [name] [template]no args: lists all formats with their current value; a name alone shows it; name + template overrides it for the active theme and saves immediately
/format -delete/-reset <name>-reset reverts to the built-in default, -delete sets an explicit blank
/recode add [target] <charset>per-target/network charset override; no target: the active buffer
/recode remove [target] / /recodebare /recode lists current overrides
/rmreconnscancels a pending reconnect backoff
/dcc chat <nick>
/dcc send [-passive] <nick> <path>resumable, queueable; -passive for either side behind a NAT
/dcc get <id>
/dcc list
/dcc close <id>
/uptime
/sethost <newhost>oper — sets your own vhost
/helpalias for /cmds
/wait <ms>delays whatever's queued next, e.g. after /eval
/echo <text>local only, printed into the active buffer
/beeprings the terminal bell right now, regardless of /set bell
/cat <file>dumps a local text file into the active buffer
/cd <directory>changes irust's own working directory
/foreach window|channel|query|server <command>
/rawlog open <path> / /rawlog closedumps every raw line to/from the server
/pluginexec <lua code>runs an ad-hoc snippet inline, not a saved plugin
/pluginresetunloads every currently-loaded plugin at once

Plus the full simple-server-command family, passed straight through to the ircd: /oper, /rehash, /squit, /wallops, /knock, /links, /lusers, /map, /motd, /stats, /trace, /admin, /time, /version, /userhost, /ison, /accept, /silence//unsilence, /squery, /servlist — usage and an example for each are in /cmds <command>.

/eval's $-variables: $N nick, $C channel, $T target, $Q query nick, $tag/$chatnet, $topic, $usermode, $cumode/$cumode_space/$P (your rank in the active channel), $Y realname, $J version, $Z time, $W working directory, $F uptime, $K/$k command char(s), $$ literal $, $[N]name/$[-N]name pads a value to N characters (right/left), $#name/$@name word/character count of another variable's value.

Oper tools

/kline [duration] <user@host> [reason] / /unkline <user@host>
/dline [duration] <ip> [reason] / /undline <ip>
/gline [duration] <user@host> [reason] / /ungline <user@host>network-wide
/xline [duration] <gecos mask> [reason] / /unxline <gecos mask>
/resv [duration] <channel|nick> [reason] / /unresv <channel|nick>
/testline <mask>which K/D/X-line a mask would hit
/testmask <mask>how many users a ban mask would match
/unreject <mask>
/grant <nick> <operclass>
/chghost <nick> <newhost>
/operspytoggles OperSpy mode
/operwall <message>sent to every oper
/snote <+flags|-flags>server notice mask, e.g. /snote +c
/ip <nick>resolve a nick's real IP
/closedrops every still-connecting (unregistered) connection
/etrace [target]
/hashircd hash-table stats, if supported

All oper-only. Exact syntax for any of these: /cmds <command>.

Plugins

Scripts live under ~/.config/irust/plugins/ as .lua files and load automatically on startup. Manage them without restarting:

/pluginload <name>
/pluginunload <name>
/pluginreload [name]no name: reload everything currently loaded

irust.on_message/on_send can replace what gets shown/sent; irust.on_command adds a new /command. Eight more hooks let a script react to things without changing them: on_join, on_part, on_quit, on_nick, on_topic, on_mode, on_connect, on_disconnect.

A script can also just say things itself with irust.say(text) (one line every 500ms) — the bundled /big <text> (examples/bigtext.lua) uses exactly this to print Unicode block-letter banners.

A plugin file can hold real secrets (an API key, for instance) — irust restricts its plugin directory and every script inside it to owner-only permissions on load, so keep them there rather than somewhere more exposed.

Self-updating

Irust can update itself in place, no manual download or reinstall — two ways, depending on whether you want to restart yourself:

/update

Checks the current release, verifies the download against a published checksum, and atomically replaces the binary on disk — never restarts on its own, pick up the new build next time you relaunch irust by hand.

/upgrade

Same check-and-replace, but if a newer build is actually found it also quits every connected network and relaunches straight into it for you. Nothing to do when already on the latest build — reports that instead of restarting.