A terminal IRC client written in Rust. One connection per configured
server, one config file, an optional flag for read-only monitoring,
and a one-shot send subcommand for scripts.
- Rust 1.88 or newer
- A terminal with Unicode support; on Windows use Windows Terminal
-
Create
~/.config/termirc/config.toml(Windows:C:\Users\<you>\.config\termirc\config.toml):[servers.osu_irc] username = "YourName" nickname = "YourName" password = "your-password-or-token" server = "irc.ppy.sh" use_tls = false port = 6667 channels = ["#osu"] queries = ["alice", "bob"]
Or just run TermIRC with no config file: the built-in setup wizard opens on first launch and writes the file for you (
/configreopens it anytime). -
Run:
cargo run --release
Pass
--config <PATH>(short-c) to start with a different configuration file; logs always stay under~/.config/termirc/logs/. -
Pick a channel in the sidebar (
j/k,Enter) and type.Entersends.
Tabcycles focus between the sidebar, the messages, and the composer; the focused pane receives your keys.j/kmove the sidebar cursor or message selection,PgUp/PgDnscroll,Escquits.- The mouse works too: wheel scrolls, a click focuses a pane or opens a
channel. Hold
Shiftfor the terminal's own text selection. - The bottom bar shows where your focus is.
| Command | Behavior |
|---|---|
/join #channel |
Join or focus a channel on the current server. |
/part [#channel] [reason] |
Leave a channel; its buffer and history are kept. |
/query <nickname> |
Open a private conversation. |
/close |
Hide the current private conversation. |
/msg <target> <text> |
Send a message without switching conversation. |
/me <action> |
Send a CTCP ACTION. |
/nick <nickname> |
Request a nickname change. |
/topic /names /mode /whois |
Channel/user queries; replies appear in the buffer that issued the command. |
/away [reason] / /back |
Set or clear away status. |
/connect [server] / /reconnect [server] |
Connect or restart a server's connection. |
/disconnect [reason] / /quit [reason] |
Disconnect (Esc or Ctrl+C exits TermIRC). |
Invalid or unavailable commands keep the original input for editing.
Run headless with --listen (combine with -c <PATH> for another
config file):
termirc --listenTermIRC connects to every configured server, joins the configured
channels, and prints incoming chat to stdout — one line per event,
timestamps always UTC HH:MM:SS:
[14:32:05][libera/#termirc][alice] hello
[14:32:41][libera/#termirc][bob] * waves
[14:33:02][libera][connected]
- Read-only: nothing is ever sent — no messages, no replies. The configured JOINs still happen (that is what makes channel traffic visible); no terminal setup, no stdin.
- Nothing is written to the history database, even with
[history] persist = true. - Chat, actions (
* text), query messages, and connection status lines are printed; console chatter (MOTD, numerics) is not. - Ctrl+C terminates.
--listenwith no configured servers is an error (there is no setup wizard to fall back on headlessly).
Run a one-shot send headlessly: connect to one server, deliver a single message, and exit — handy from scripts and CI:
termirc send libera/#termirc "deploy done"
termirc send libera/alice "hi"
echo "build 42 passed" | termirc send libera/#ci -
termirc -c ~/.config/termirc/ci.toml send libera/#ci "done"SERVER/TARGETis the[servers.<name>]key (case-insensitive), a/, then a#channelor a nickname.--config/-cworks before or aftersend.- A message of
-reads the text from stdin (one trailing newline is stripped). - Only the named server is connected, and only the target channel is joined.
- Text is sent verbatim — no slash-command parsing, no line splitting. Empty text, control characters, or more than 512 bytes are rejected before connecting.
- Exactly one PRIVMSG is sent per run, and nothing is written to the history database.
- Success is silent with exit code 0. Exit code 2 means the message was
locally rejected (bad arguments, unknown server, invalid text); exit
code 3 means it was not sent (connecting or the
JOINfailed or timed out, or the message was dropped). Note thatJOINmust be spelledJOIN. - "Sent" means handed to the connection, not confirmed by the server.
- A channel target shows up as a JOIN followed by a QUIT on the network.
--listenandsendcannot be combined.- A nickname already connected from a running TermIRC is refused by
the server (433) — add a second
[servers.<name>]entry with another nickname for scripts.
- All
[servers.<name>]keys are documented inconfig.example.toml; the config is read once at startup — restart to pick up changes. - Optional SOCKS5 proxy per server via
[servers.<name>.proxy](Tor-ready: DNS also resolves through the proxy). - Optional persistent history via
[history] persist = true(SQLite,retention_days,exclude). - UI language via
[ui] language(built-in English + zh-CN).
- CJK characters render as boxes — use Windows Terminal (or run
chcp 65001) with a CJK font. - A server won't connect — check the config and the log, then use
/connector/reconnect. - Where do the logs live?
~/.config/termirc/logs/, daily files, 7 days kept.