iSekur documentation

Everything about the iSekur IRC client: getting it running, a tutorial, how each part works, and a reference of every command and setting.

In iSekur itself, /help lists the commands, /help command explains one, /guide opens the tutorial and /set opens the settings window. The guide, command and settings sections below come straight from those, so they match the app.

StartInstall

macOS (Homebrew)

brew install gcanosa/isekur/isekur
isekur              # start it
brew upgrade isekur # later: update to the latest release

Prebuilt packages

The links always point at the newest release: macOS (Apple silicon), Linux x86_64, Linux arm64 (both Linux packages need libssl3) and Windows x86_64.

curl -L https://github.com/gcanosa/iSekur/releases/latest/download/isekur-linux-x86_64.tar.gz | tar xz
sudo isekur-linux-x86_64/install.sh     # installs to /usr/local

On Windows, unzip the package anywhere and run isekur.cmd in Windows Terminal. It is a Cygwin build with the DLLs it needs inside, so there is nothing to install and Cygwin isn't needed. It is newer and less tried than the others, and Cygwin can't pass a terminal over a unix socket, so it has no detach and attach. Your settings go to %USERPROFILE%\.config\isekur, so replacing the folder with a newer one keeps them. For all of iSekur on Windows, use WSL with the Linux package.

From source

Needs a C++17 compiler, GNU make, and OpenSSL 1.1+ or LibreSSL with its headers. On Debian and Ubuntu (WSL too): sudo apt install build-essential libssl-dev. On Fedora: sudo dnf install gcc-c++ make openssl-devel. termbox2 and Lua are included. Every push is built and tested on macOS, Linux (glibc and Alpine's musl), FreeBSD, OpenBSD, NetBSD and Cygwin. On the BSDs, install GNU make first: pkg install gmake on FreeBSD, pkg_add gmake on NetBSD, pkg_add gmake libiconv on OpenBSD.

git clone https://github.com/gcanosa/iSekur && cd iSekur
make                # gmake on *BSD; make notwitch leaves Twitch support out
make test           # optional: checks the build on your system
sudo make install   # /usr/local; PREFIX=... must match the build
man isekur

First start

The first time it runs, iSekur writes ~/.config/isekur/isekur.conf with every setting at its default. An empty value means "the default". You can edit the file by hand or change settings from inside the client:

/set theme neon                        # changes apply right away
/set server.sekurnet.autojoin #a,#b
/save                                  # writes them to the file (comments are kept)

Server settings take effect on the next /connect, and [web] after /web stop and /web start. /reload re-reads the file after you edit it by hand.

The first start also opens the first steps guide in a *guide tab. Its "Don't show this at startup" box sets show_guide = off, and /guide opens it again.

A network you add with /server is temporary: it stays out of /servers and the config, /save leaves it out, and it is gone at the next start. -save keeps it (written at once), as do /server name -save for one already open, /autojoin snap and /login.

The iSekur welcome tab with the banner
The cmd tab after starting: the banner in the theme's colors, the /guide hint and where the webchat listens
The quickest way in: /server irc.sekurnet.org 6697 -tls -name sekurnet, then /join #iSekur. That's iSekur's own channel, for help and feedback. To keep the network: /server sekurnet -save.

First steps guide

The same pages /guide shows in the app. Turn them with the buttons or the ← → keys. git These are the git version's pages; 0.6 shows an earlier, shorter set.

*guide

Using iSekurThe screen

From top to bottom:

The iSekur screen in the Rosé Pine theme
Top to bottom: topic bar, tabs, chat with the "new" marker and the nicklist, status bar, input line (Rosé Pine theme)

Tabs and nicklist on the side you like

The tab bar can leave the top and become a tree down the left or right side, like the webchat's tab list: each network with its channels and private chats under it, the tab numbers and the activity colors. It's all in /set → Look, and changes as you set it:

iSekur with the tabs as a tree down the left side
/set tab_bar_position left: the networks and their channels down the side (Tokyo Night theme)
The channel list table
/list opens a sortable table: double click a channel to join. The status bar shows CPU, memory and load (/statusbar)
A whois reply
/whois answers in a box, in the tab you asked from

Keys

KeyAction
F1, Alt+K, /keysAll the keys in a window, drawn as keycaps by group, your own [keys] included (terminal and webchat)
Alt+1…9, Alt+0Go to tab 1–10
Alt+↑ Alt+↓, Ctrl+P Ctrl+NPrevious / next tab
Alt+← Alt+→, Alt+B Alt+FPrevious / next server tab, or a tab of no network (cmd)
Ctrl+A, Alt+ANext tab with activity
Ctrl+R, Alt+R, Cmd+RMark every tab read
Alt+D, Ctrl+ZDetach: iSekur keeps running in the background
Ctrl+X, Alt+XNext server
Ctrl+G, Alt+JFind a tab: type part of a channel, nick or network name, then Enter
Ctrl+W, Alt+WClose the tab (parts the channel)
PgUp PgDnScroll
F6, Alt+OSwitch to the other /split pane
Alt+SLock the screen now (lock)
Alt+QQuit iSekur (asks first)
Ctrl+L, Alt+L, F2Show / hide the nicklist
Ctrl+T, Alt+TShow / hide the topic bar
F3Mouse on/off (Shift+drag always uses the terminal's own selection)
TabComplete a command, a /help topic, a /set key or a nick
Home End, Ctrl+E, Ctrl+U Ctrl+KStart / end of line, delete to start / end
Alt+BackspaceDelete the previous word
Alt+C, or drag over the input lineCopy the input line, or the part dragged over (held at an end, the drag scrolls the line)
Ctrl+B C O V ] _mIRC formatting: bold, color, reset, reverse, italic, underline
Live command suggestions above the input line
Typing a command lists what fits, with its arguments: ↑ ↓ pick, Tab completes
The tab finder
Ctrl+G finds a tab by part of its name, Enter goes there

The Alt keys are the same in the terminal and the webchat. On a Mac, Option is Alt once the terminal sends it as one: if Option+A types å, see Alt / Option keys don't work.

Changing keys

Open /keys (F1), pick an action (↑ ↓ and Enter, or a click) and press the new key. The box says what that key is taken from, and offers Replace, Add (the old keys stay too), Default or Cancel. The choice is written to the config at once, in the terminal and the webchat.

Two keys in a row work too, like tmux: press Ctrl+B then D. The status bar shows the first one waiting and Esc cancels. A first key that formats or edits text (Ctrl+B, Ctrl+U) still does that when pressed twice; inside tmux, press Ctrl+B twice for each one. The webchat ignores two-key combos for actions that only the terminal has. Only keys that reach iSekur can be learned: browsers keep Ctrl+W, Ctrl+T and Ctrl+N.

The same by hand:

/keys set detach C-b>d       # Ctrl+B, then D
/keys add find_tab F5        # F5 too, keeping the old keys
/keys default detach         # back to the built-in keys

These are the [keys] section of the config: M- is Alt, C- Ctrl, D- Cmd. A line there replaces that action's default keys; write the word default in the list to keep them. See [keys].

Mouse

The nick right-click menu
Right click a nick: query, whois, CTCPs, ignore, plus op tools when your rank allows

Windows

Some jobs open a window instead of printing text, in the terminal and in the webchat: /servers, /logs, /keys and /bans, besides the settings and theme windows. The line at the bottom of each lists its keys, and Esc closes it.

Servers: /servers

In the terminal, /servers opens the settings window at that network, with its keys in groups such as Connection, Login and On connect. c connects, l picks how it logs you in, r renames it, x deletes it (it asks first) and n adds a network. The webchat has a Servers window for this (the server-rack button) with the same Login section.

The terminal /servers window
/servers: the network's keys, and what c l r x n do along the bottom
The login picker
l asks how the network logs you in: an account (SASL), a NickServ password, a certificate or a server password. It then asks for what that needs, typed hidden and kept encrypted. /login sasl and the others skip the picker

Chat logs: /logs

With log = on, /logs opens the log browser at this tab's logs: networks and channels on the left, each with its days (newest first), and the picked day on the right. Typing in the find line filters that day as you type. Enter searches every day of the channel or network picked in the tree; the find line takes words, "a phrase" and nick:alice. c opens a calendar of the month, e shows or hides joins and parts, [ and ] go to the day before or after. log_keep deletes old days.

The log browser
/logs: a tree of networks, channels and days, and the picked day's lines
A search through every day of a channel
A search over every day of #isekur, grouped by day; Enter on a line opens its day

Keys and ban lists: /keys, /bans

/keys (or F1, Alt+K) draws every key by group as keycaps, your own [keys] included, and picking one changes it. /bans lists the channel's bans with who set each and how long ago; Tab moves between bans, exceptions and invites, and with halfop or more you add or lift one from the window.

The keys window
/keys: every key by group, as keycaps
The ban list window
/bans: the channel's bans, sortable and filterable

Detach and attach

iSekur runs like a tmux session. The IRC side lives in a background process, and your terminal is only attached to it.

isekur              # start (or attach, if it's already running)
Alt+D / /detach     # back to the shell: still connected, still in the channels, still logging
isekur --attach     # back again, from this or any other terminal or SSH login
isekur --daemon     # start in the background without attaching
isekur --list       # the ones running, and the command that attaches each
isekur --stop       # quit the running one (asks the lock password, if there is one)
ssh -t host isekur --attach   # another machine's iSekur, in your terminal

Closing the terminal or losing the SSH connection detaches too; only /quit really ends it. One terminal is attached at a time.

Several sessions

Run one per config file: isekur -c ~/.config/isekur/work.conf, then Alt+D and isekur -c ~/.config/isekur/fun.conf. isekur -c work.conf --attach picks one. Each one uses a socket next to its config, named after it (work.sock), and keeps its run log in work.log.

Another machine

ssh -t host isekur --attach shows the iSekur running on another machine in your terminal; Alt+D there detaches it, leaves it running and ends the ssh session. If ssh doesn't find isekur there (Homebrew on a Mac, for one), go through a login shell: ssh -t host '$SHELL -lc "isekur --attach"'. With several there, isekur -c config --attach picks one and ssh host isekur --list shows which run.

On Linux servers where systemd kills your processes at logout (KillUserProcesses=yes), run loginctl enable-linger $USER once, or iSekur stops when you log out. Detaching isn't available on Cygwin.

As a service

git --daemon forks into the background, which init systems and containers don't want. --foreground (-f) is the same headless iSekur that stays in the process it was started from and logs to stdout and stderr (the webchat needs [web] user and password_hash, as with --daemon). A SIGTERM quits every network cleanly. --bnc --foreground runs just the bouncer.

[Unit]
Description=iSekur
After=network-online.target

[Service]
User=irc
ExecStart=/usr/local/bin/isekur --foreground
Restart=on-failure

[Install]
WantedBy=multi-user.target

isekur --stop quits whichever one runs for that config, from a script too (it asks for the /lock password when there is one, or reads it from a pipe).

While nothing is attached, the autoaway plugin marks you away (/plugin install autoaway). On a server with draft/pre-away, /set pre_away on marks you away from the first moment of a reconnect that happens while you're detached, and clears it when you attach. When iSekur joins a channel it catches up on what you missed through IRCv3 chathistory, if the server supports it. A private chat you close stays closed, after a restart too, until they write again; git restored lines from earlier days say which day they're from. git With draft/event-playback the joins, parts, quits, kicks, nick, mode and topic changes you missed show too; they count in history_fetch.

Backup, move and restart

/backup puts your config (servers, saved passwords, aliases, on-connect commands, plugin settings), the key that opens those passwords, your plugins and their data, your themes and the BNC certificate in one .isebak file in ~/.config/isekur/backups/, locked with a passphrase of 8 characters or more. Nobody can recover that passphrase. Logs, history and webchat sessions aren't in it, and neither are unsaved changes: /save first.

/backup before-upgrade       # or /backup alone: named by date and time
/restore before-upgrade      # or /restore alone: lists the backups and asks

To move to another computer, install iSekur there, start it once, copy the file into its backups folder (make it if it isn't there) and /restore it. The settings window has Backup and Restore too.

/restore replaces your whole configuration. It first saves what you have as before-restore-….isebak, with the same passphrase; restore that file to undo it.

/restart quits every network and starts iSekur again with the same options, so an upgrade (brew upgrade, make install) takes effect. Attached terminals follow it and the webchat reconnects by itself. Tabs start empty (logs keep what was said) and unsaved settings are lost, so it asks first.

The webchat

The webchat is your live session in a browser: the same tabs, menus, input line, suggestions, status bar and theme. It's not a separate client, so everything you do there happens in the running iSekur, the way a bouncer works.

Turning it on

isekur --hash-password            # type a password, copy the line it prints

[web]
autostart     = on                # or: isekur --web, or /web start while running
bind          = 127.0.0.1
port          = 8443
user          = me
password_hash = pbkdf2$sha256$...

Then open http://127.0.0.1:8443/ and log in. /web status shows the address and /web stop turns it off. --daemon always starts it.

https://webchat.sekurnet.org
The webchat login window
The login window
https://webchat.sekurnet.org
The webchat Servers window
The Servers window adds, edits and connects servers

Behind a reverse proxy

Keep bind = 127.0.0.1 and let the proxy do TLS. With Caddy:

chat.example.org {
    reverse_proxy 127.0.0.1:8443     # plain http to iSekur, not https
}
https://webchat.sekurnet.org
The webchat in the Rosé Pine theme
The same session as the terminal: tabs, nicklist, status bar and input line

As an app, with notifications

With a trusted certificate (or on localhost), the webchat installs as an app (PWA) on the home screen or dock. The bell button turns on notifications for highlights and private messages, on Android and on an iPhone once the webchat is installed.

What it adds

https://webchat.sekurnet.org
The webchat settings dialog in the mIRC theme
⚙ edits every setting in place. With the mIRC theme, the dialogs look like Windows 95

Send a file: drop, paste or /upload

With the dropzone plugin (/plugin install dropzone), a file you give iSekur goes to a file host and a box asks what to do with the link: send it to this tab, copy it, or send it to another channel, with an optional message before it. Drag a file onto the webchat (a frame shows what letting go will do), paste a screenshot, tap the paperclip on a phone, drop a file on the terminal, or type /upload file (alone, in the webchat, it opens the file picker).

The link is public: whoever has it can open the file. The host is a third party, named in the box, and a file is not end-to-end encrypted even from an encrypted tab. Nothing leaves your machine before you answer.

BNC (bouncer)

iSekur can be the bouncer for your other IRC clients: irssi, weechat, hexchat, mIRC, a phone app, or another iSekur. They connect to it instead of to the network and share its session: the same networks and channels, the recent lines, then everything live. What they send goes out through iSekur, so your terminal, the webchat and the other clients see it too. One user for now.

Host it

On the iSekur that stays connected (a server, a home machine), pick a login and a password, choose where it listens, and start it:

/set bnc.user me
/bnc password            # asks in a box, saves the hash
/set bnc.bind 0.0.0.0    # for other machines; the default 127.0.0.1 is this one only
/set bnc.port 6698
/set bnc.tls on          # off: plain IRC, keep that to 127.0.0.1 or an SSH tunnel
/save
/bnc start               # or /set bnc.autostart on, or isekur --bnc from the shell

The same settings are under BNC in the /set window, and in [bnc] in the config:

[bnc]
autostart     = on
bind          = 0.0.0.0
port          = 6698
tls           = on
user          = me
password_hash = pbkdf2$sha256$...   # /bnc password, or isekur --hash-password
cert          =                     # empty: a self-signed bnc.crt next to the config
key           =
backlog       = 50                  # lines of each tab a client gets on connect

isekur --bnc runs it in the background as the bouncer only, with no terminal and no webchat (--web adds it; --attach still works). git --bnc --foreground keeps it in the foreground for systemd or Docker, and --no-bnc starts iSekur without the BNC whatever [bnc] autostart says. /bnc shows where it listens and who's connected, and the console tab logs every client that comes, goes or gets the password wrong.

With TLS and no cert/key, clients have to skip the certificate check. Point cert/key at a real certificate (Let's Encrypt, tailscale cert) and they can verify it.

Connect a client

Each connection is one network, picked by the server password user/network:password: me/sekurnet:secret for [server.sekurnet]. With only one network, me:secret is enough.

ClientHow
irssi/connect -tls home.example 6698 me/sekurnet:secret
weechat/server add home home.example/6698 -tls -tls_verify=off -password=me/sekurnet:secret, then /connect home
hexchatNetwork List, Add: server home.example/6698, Use SSL, Accept invalid SSL certificates, Login method Server password, Password me/sekurnet:secret
mIRC/server -m home.example +6698 me/sekurnet:secret (+ is TLS; accept the certificate when it asks)

The client gets the channels iSekur is in with their topics and nicks, the last backlog lines of each tab, then everything live. /quit there only disconnects that client; iSekur stays on the network. When the network drops, the client's channels close with a note and open again on the rejoin.

A client can log in with a certificate instead of the password (SASL EXTERNAL, over TLS). Put the certificate's SHA-256 in /set bnc.certfp, comma-separated for several; get it with openssl x509 -noout -fingerprint -sha256 -in client.pem. Clients without a matching certificate still use the password.

Another iSekur as the client

A laptop's iSekur can use the one at home as its server, without ssh:

/server home.example 6698 -tls -noverify -name home -save
/set server.home.password me/sekurnet:secret
/save
/connect home

It gets the IRCv3 the BNC offers: draft/chathistory served from the home iSekur's tabs (history on join and when scrolling up, even on networks without it), message-tags (replies, reactions, typing), echo-message, labeled-response, server-time, batch, away-notify, account-notify, account-tag, chghost, setname, extended-join, multi-prefix, userhost-in-names and invite-notify. Other IRCv3 clients ask for what they know the same way.

The BNC and attaching over ssh aren't the same thing. ssh -t host isekur --attach shows the remote iSekur itself, with everything. The BNC lets any IRC client in with its own look, but only what IRC carries: no /set, plugins or log browser.

soju, ZNC and other bouncers

The section above is iSekur as a bouncer. It is also a client for one you already run. There is no bouncer type to pick: add it like any network, and iSekur goes by what the server says it can do.

soju

Log in with SASL, with just your user name:

[server.soju]
host      = bnc.example.org
tls       = on
sasl_user = alice
sasl_pass = secret

Every network you have in soju appears as a network of its own, and stays in step: add or delete one in soju (/msg BouncerServ help, in the soju network) and iSekur follows while it runs. Each is saved as [server.name] with bouncer = soju and its bouncer_netid; the address and login stay in [server.soju], and other settings of yours go in the network's own section. /disconnect takes iSekur off one network while soju stays on it. /server del soju removes it and its networks.

LoginWhat you get
alice with SASLall your networks
alice/liberathat network only
/set server.soju.bouncer_networks offno networks are added

Listing networks needs SASL: soju only accepts it after that, so with a server password iSekur connects and says so. Chat history comes from soju too, private chats you had no tab open for included. File uploads, search and web push, soju's other extensions, aren't used.

ZNC

Set the server password to user/network:password (/login password). iSekur asks ZNC's playback module for what came after the last line it has, shows what you sent from other clients, and /msg *status help works in a tab of its own.

[server.libera]
host     = znc.example.org
tls      = on
password = alice/libera:secret

psyBNC, sBNC and others

Give the bouncer's password as the server password (/login password). A bouncer with draft/chathistory, another iSekur included, also sends the history you missed.

Security

Passwords in the config

sasl_pass, password and nickserv_pass are saved encrypted (enc:…), with the key in secret.key next to the config. Type one in plain text and iSekur encrypts it on the next start or /reload. The config file is created private (mode 0600). Passwords never show in /set or the settings window.

Lock: /lock

/lock on sets a master password. From then on, iSekur shows only a password box at startup, on every --attach and after /lock or Alt+S, before any tab, log or message. lock_idle locks after that many minutes without typing. Three wrong tries wait a minute. /lock off asks for it before turning it off, and /lock on again changes it. It is also asked before changing what would let a hijacked webchat session reach further: exec_web, dcc_web, dcc_dir, the [web] and [bnc] settings and /bnc password.

It locks the screen, not the files: the config and logs aren't encrypted. Forgot the password? Stop iSekur (pkill isekur), set lock = off in the config and start it again.
The iSekur lock screen
/lock: nothing of the session shows until the password is typed

Face ID in the webchat

Face ID (Touch ID on a Mac, a fingerprint on Android) can unlock the webchat: turn it on from the Security part of the webchat's settings window, which asks for the password once and makes a passkey on that device. It needs https and a host name, not an IP address. It only unlocks: /lock off and a new password still take the password. /lock devices lists the devices, /lock devices del name removes one (a lost phone), and lock_biometric = off turns them all off.

Encrypted private chats: /e2e nick

/e2e nick (alias /sq) asks for a password, typed hidden, and invites the other person. They accept with /e2e yournick and the same password. A matching password turns on AES-256-GCM for that query, with the key derived by scrypt, and both sides see 🔒. A wrong one is reported to both and nothing is encrypted. Keys stay in memory only, and /e2e off ends it on both sides: the line it sends is sealed with the key, so a line anyone else could send (the server included) can't end a chat that is on, fail it or replace its key. A new invitation from the same nick waits for your /e2e nick.

Encrypted channels: /e2e #chan

/e2e #chan (or "Turn on E2E" in the tab menu) encrypts what you say there. Everyone who typed the same password reads it, marked 🔒 on each line and on the tab. Everyone else sees +iSE2 noise. There's no handshake, so a wrong password only shows when the others' lines don't open. To drop someone, change the password. For autojoin channels the key (not the password) is saved in e2e_keys, so a restart doesn't ask again.

An E2E encrypted channel in the terminal
An encrypted channel in the terminal: 🔒 on the tab and every line. cypher has the wrong password
https://webchat.sekurnet.org
An E2E encrypted channel in the webchat
The same channel in the webchat

Shell commands: /exec

/exec ls -la (alias /sh) streams the output into the cmd tab. It runs in bash or zsh: your login shell when it is one of them. /exec -o uptime says it in the current channel. Commands are killed after exec_timeout seconds, and the webchat can't run them unless exec_web = on.

FIFO: scripts and shells

With /set fifo on, iSekur creates a named pipe and reads it. Every line written to it runs as if you had typed it, so a script, a cron job or a shell can send messages, run commands and join channels.

/set fifo on                                         # creates the pipe
printf '%s\n' '/msg bob hi' > ~/.config/isekur/fifo    # bob gets "hi"

Each running iSekur has its own pipe. isekur.conf uses ~/.config/isekur/fifo, and -c work.conf uses work.fifo beside it. Write to the path of the instance you want. fifo_path moves it.

Name the network exactly

A network in a target is its server name, the first column of /servers: the part after server. in its [server.name] section, or what you gave to -name in /server. Case doesn't matter (SekurNet/#chan finds sekurnet). The host (irc.sekurnet.org, unless that is the name), a nickname for the network and a name from another iSekur don't match: each instance only knows its own servers.

/servers                                    # the first column is the server name
[server.sekurnet]                           # the same name, in isekur.conf
printf '%s\n' 'sekurnet/#chan|hello' > ~/.config/isekur/fifo
A wrong name is refused, and nothing is sent. The status tab then says FIFO: no open tab sekurnet (see /servers for network names). Check the name with /servers on the iSekur that reads the pipe, and check the pipe path: iSekur prints FIFO: <path> in the status tab when it starts.

Where a line goes

Without a target, a line runs in the active tab. A target before a | sends it elsewhere: sekurnet/#chan|hello (a channel on a network), sekurnet|/msg bob hi (that network's status tab), #chan|hello (on the active network) or 3|hello (tab 3, as in /win 3). A prefix with no space must be a target. If no server or open tab matches, the line is refused with a message in the status tab and nothing is sent: lol|ok is refused. A prefix with a space is plain text: Build passed|ok is sent as typed.

Escapes and formatting

Each line is decoded: \n ends a line, \xHH is any byte (\x03 color), \e the escape, \\ a backslash. Formatting: \b bold, \i italics, \u underline, \s strikethrough, \m monospace, \v reverse, \o reset.

printf '%s\n' 'sekurnet/#chan|\u\bBuild\o passed' > ~/.config/isekur/fifo
POSIX only (Linux, macOS, BSDs, Cygwin): native Windows has no named pipes. The pipe is owner-only, ignored while iSekur is locked, and removed at exit.

Themes

iSekur comes with 46 themes, 24-bit color ones and nocolor, with a 256-color fallback for terminals that need it (colors = 256). /theme alone opens a picker that previews each one live; /theme name switches directly. Themes are saved without /save.

Dark: default, neon, dracula, tokyonight, catppuccin-mocha, gruvbox, nord, onedark, rose-pine, kanagawa, solarized, github-dark, everforest, ayu, nightfox, night-owl, material, contrast-dark. Light: tokyonight-day, catppuccin-latte, gruvbox-light, rose-pine-dawn, solarized-light, github-light, one-light, kanagawa-lotus, nord-light, everforest-light, ayu-light, dayfox, light-owl, material-lighter, contrast-light. Soft, low glare: dusk, ember, midnight and moss (dark), dawn, fog, paper and sage (light). No colors at all: mono, mono-light. Classic: mirc, mirc-dark. See them on the home page.

With NO_COLOR set (and not empty), the terminal draws the default theme without colors: it is the nocolor theme, which keeps your terminal's own foreground and background and uses bold, underline and reverse. A theme you chose and the webchat keep their colors.

The theme picker
/theme: ↑↓ previews each theme live over your chat
The mIRC theme
mirc: inline <nicks> and brackets, set by the theme's [layout]

Writing your own

Copy a theme to ~/.config/isekur/themes/mytheme.theme, edit it, and pick it with /theme mytheme. Each [colors] entry is fg [bg] [bold|italic|underline|reverse|dim]. A color is #rrggbb, a 0–255 xterm number, a name (red, cyan, orange…) or default.

# from themes/default.theme; the file comments every element
[colors]
default        = default default
topic          = #e6e6fa #3b2a6b
tab_active     = #1c1d2b #c792ea bold
hilight        = #ffffff #c2185b bold
msg_self       = #82aaff default bold
join           = #9ece6a

[nicks]
palette = #ff6b6b #ffa94d #ffd43b #a9e34b #69db7c #38d9a9 #3bc9db #4dabf7 #748ffc #9775fa #da77f2 #f783ac

[layout]
nicklist       = on
nicklist_width = 18          # /set nicklist_width beats it
tab_bar_width  = 20          # the tab list's, with /set tab_bar_position left or right
nick_width     = 12          # mirc: 0, with nick_brackets = <> for inline <nicks>
separator      = │
timestamp      = %H:%M
# mirc also sets: font = Fixedsys, ... (the webchat's font) and window = win95 (its dialogs: mac | win95)

More themes: the catalog

More themes are made by people who use iSekur, in their own repository: github.com/gcanosa/isekur-themes. git The /theme picker, in the terminal and the webchat, lists them under Available. Moving over one previews it and shows its description, author, GitHub user, contact and the date it was added. The webchat also shows a screenshot of the theme you're on, built-in ones included (your browser loads it from GitHub): beside the list on a desktop, under it on a phone. Enter installs it into ~/.config/isekur/themes/, checked by sha256 and by the repository's own rules, and switches to it. A file you already have is never overwritten. The catalog is fetched when you open the picker, and again when your copy is over 5 minutes old, so a theme added today shows without a restart; if it can't be reached, the list you had stays and your installed themes work as before.

git A ◆ marks a theme that didn't come with iSekur, downloaded or your own (+ without a UTF-8 locale). Alt+U or Delete uninstalls it, after asking and naming the file; the webchat has an Uninstall button too. Uninstalling the theme in use switches to default. On macOS, Alt+U needs Option as Alt in your terminal (Ghostty: macos-option-as-alt; Terminal: Use Option as Meta key).

With release 0.6, copy a theme's file into ~/.config/isekur/themes/, then pick it with /theme name. The repository's README has the format, what's valid, and how to send one by pull request; python3 check.py there checks a theme the way iSekur reads it.

Plugins and scripting

iSekur runs plugins written in Lua 5.4. The Lua interpreter is built into iSekur, so there's nothing else to install. Plugins are optional: none is installed until you ask for one. Features that only some people want, like auto-away, live in plugins instead of in iSekur itself.

Installing and turning them on

The easiest way is the plugin window: /plugin alone in the terminal, or the puzzle button at the bottom of the webchat's tab list. It has two tabs, Installed and Available (the catalog). From there you can turn a plugin on or off, install, update or remove one, and open Configure to set its options for everywhere, one network or one channel. In the terminal, Tab switches tabs, Space turns the selected plugin on or off, c configures it (←→ picks the scope, Enter edits a value), i installs and d removes. The same things work as commands:

# the catalog: github.com/gcanosa/isekur-plugins, checked by sha256 before they're installed
/plugin available
/plugin install autoaway
/plugin                                   # or /plugins: what's installed, on or off, its commands
/plugin update                            # every installed plugin with a newer version in the catalog
/plugin update autoaway                   # that one, also putting back a file you edited
/plugin refresh                           # fetch the catalog now (it's kept for 12 hours)
/plugin remove autoaway                   # the file, its settings and its saved data

An installed plugin is on everywhere. You can also limit it to one network or one channel, with name@network and name@network/#channel:

/plugin disable autoaway                  # off everywhere...
/plugin enable autoaway@sekurnet          # ...but on in sekurnet
/plugin enable seen@sekurnet/#isekur      # only in that channel
/plugin set autoaway message Gone fishing
/plugin set autoaway@sekurnet idle 15     # 15 minutes idle, on sekurnet only
/plugin set autoaway message              # empty: back to the default

Each change is written to the config right away, one section per scope. You can also edit these sections by hand and run /reload:

[plugin.autoaway]                 # everywhere
enabled = on
message = Gone fishing
[plugin.autoaway@sekurnet]        # one network (its [server.sekurnet] name)
idle    = 15
[plugin.autoaway@sekurnet/#isekur]   # one channel, lowercase
announce_back = on

A value is looked up in the channel's section first, then the network's, then the global one, and finally the plugin's own default.

In the catalog

/plugin available lists the whole catalog.

Auto-away is a plugin now

Up to 0.5, auto-away was built in. It is now the autoaway plugin: /plugin install autoaway moves the old auto_away, auto_away_idle, away_message and away_announce settings from [general] and each [server.name] into [plugin.autoaway] and [plugin.autoaway@name], then deletes them from the config. Until you install it, nobody sets you away, and iSekur reminds you at startup. Its options are idle (minutes without typing; 0, the default, means only when nothing is attached, after 30 seconds), message, and announce_away and announce_back (/me is away: <message> and /me is back in your channels; both off by default, each set everywhere, per network or per channel). The old away_announce did both, so installing turns both on where it was on. Like any plugin, it can be on in some networks and off in others:

/plugin disable autoaway@work                         # never away by itself on the "work" network
/plugin set autoaway announce_back on                # "/me is back" everywhere...
/plugin set autoaway@sekurnet/#isekur announce_back off   # ...but not in #isekur

Writing a plugin

A plugin is a single file, ~/.config/isekur/plugins/<name>.lua. The name can use letters, digits, _ and -. The file runs once when the plugin loads, and that first run is where it declares its settings, its commands and the events it handles. The full guide is WRITING.md. Here is a complete one:

-- version: 1.0
-- ~/.config/isekur/plugins/hello.lua
isekur.setting("greeting", "Hello", "c", "what /hello says first")  -- default "Hello", per channel

-- /hello [nick]
isekur.command("hello", "[nick]", function(args, srv, target)
  if not srv then return "Use /hello in a channel" end   -- a returned string shows as an error
  local who = args ~= "" and args or "everyone"
  isekur.say(srv, target, isekur.opt("greeting", srv, target) .. ", " .. who .. "!")
end)

-- wave back at whoever says "hi isekur"
isekur.on("message", function(e)
  if not e.self and e.text:lower():find("hi isekur", 1, true) then
    isekur.exec(e.srv, e.target, "/me waves at " .. e.nick)
  end
end)

The -- version: line is how iSekur tells a newer version in the catalog (an update) from a file you changed yourself (same version, different contents, shown as edited). To try it, run /plugin enable hello, then type /hello bob in a channel. After you edit the file, run /plugin reload hello. print(...) writes to the main window, which is handy while you're debugging. Every line a plugin prints starts with a badge with its name, in the theme's plugin colors, and /plugin's own messages have a plugin one, so with many plugins you can always tell what said what.

Another example: a plugin that keeps lines matching a word out of view and counts them, keeping the count in the plugin's own store across restarts.

-- hush.lua: hide lines with a word in them; /hushed says how many
isekur.setting("word", "", "c")
isekur.on("message", function(e)
  local w = isekur.opt("word", e.srv, e.target)
  if w ~= "" and e.text:lower():find(w:lower(), 1, true) then
    isekur.store_set("hidden", (tonumber(isekur.store_get("hidden")) or 0) + 1)
    return true                                   -- true: the line isn't shown
  end
end)
isekur.command("hushed", "", function()
  print((isekur.store_get("hidden") or 0) .. " lines hidden so far")
end)

Events

Register a handler with isekur.on(event, function(e) ... end). The handler gets a single table. e.srv is the network's name and e.target is the channel or query, when the event has them. Handlers only fire in the networks and channels where the plugin is on.

EventFieldsWhen
messagenick text self hilight notice action id openeda message or notice arrives (id is for isekur.embed; opened: it opened a new query tab). Return true to hide it. Your own lines only arrive when the server has echo-message
joinnick host selfsomeone (or you) joins e.target
partnick reason self kick bysomeone leaves e.target or is kicked from it (kick true, by is the kicker)
quitnick host reasonsomeone quits the network (no target)
nicknick new selfsomeone changes nick: nick is the old one (no target)
awayawaythe server says you're away (306) or back (305)
commandname argsyou type a /command (not one a plugin runs). Return true to take it over
shownick, text, self, git hilight, action, noticea message about to be shown in a tab. Return a string to show that instead, on the screens only: the network got the original and the log keeps it. It runs again over every tab's scrollback when a plugin is enabled, disabled, reloaded or has a setting changed
nickmenunickyou right-clicked a nick in the nicklist, or a query tab. Return {{"Label", "/command ..."}, ...} (up to 8) to add them to its menu, after a separator: /commands only, one line each
tick(none)every second. There's no network, so check isekur.opt("enabled", srv) for the ones you act on
rawcmd argsa numeric reply arrives. Return true to hide it and what iSekur does with it: only for replies to what your plugin sent
pastetextlines are pasted into a channel or query. Return true to take them: nothing is sent
connect(none)iSekur is about to connect to a network: the moment for isekur.proxy
lock(none)iSekur was just locked
windowaction index button value texta click, Enter or Esc in your isekur.window
dropid name size kind type e2ethe user gave iSekur a file in a tab where your plugin is on: send it with isekur.upload
choiceid index textthe answer to your isekur.choose (index 0: cancelled)
attach, detach(none)a terminal or a browser comes back, or nothing is attached any more

The isekur API

CallWhat it does
isekur.command(name, usage, fn)adds /name. fn(args, srv, target) gets the rest of the line, the tab's network (nil in the main window) and the tab's name. A returned string is shown as an error. iSekur's own commands can't be replaced
isekur.setting(key, default, scope, help)declares an option. help is a short line the plugin windows show next to it: what it is and its unit, such as "minutes without typing; 0: never". scope is "g" (global only), "n" (up to the network) or "c" (up to the channel, the default). opt returns the default's type: a boolean (on/true/yes/1), a number or a string. git A setting with pass or token in its key is hidden on screen: *s as it's typed, ******** in /set and the plugin windows
isekur.opt(key, srv, target)an option's value in that network or channel. enabled is always there: whether the plugin is on there
isekur.set(key, value, srv)writes one of the plugin's own settings to the config, like /plugin set: for that network, or everywhere without srv. nil or "" clears it. Never enabled
isekur.say(srv, target, text)says each line of text in a channel or to a nick
isekur.send(srv, line)sends one raw IRC line
isekur.print(srv, target, text, note)shows text in that tab only (if there's no such tab, the network's tab, else the main window). note true puts the INFO badge first
isekur.exec(srv, target, "/cmd ...")runs a command as if it were typed in that tab (except /plugin, /exec, /sh, /backup, /restore, /alias, /perform and /upload, and no /set of a security setting)
isekur.store_get(key)
isekur.store_set(key, value)
the plugin's own saved strings, kept in <name>.data next to it. nil removes a key. They're written to disk within 5 seconds, and when the plugin is unloaded or iSekur exits
isekur.store_keys()every key in the store
isekur.active()the tab you're on: its network (nil for the main window) and its name
isekur.date(t, fmt)t (default: now) as local time, with strftime's fmt (default: your timestamp format)
isekur.is_chan(srv, name)whether a name is a channel, by that network's own prefixes
isekur.servers()
isekur.channels(srv)
the connected networks; the channels you're in on one
isekur.me(srv)
isekur.rank(srv, chan, nick)
your nick there (nil when not connected); a nick's prefix in a channel ("@", "+", "", or nil if it isn't there)
isekur.away(srv)
isekur.attached()
whether you're away there; whether a terminal or a browser is attached
isekur.idle()
isekur.detached_for()
isekur.time()
seconds since you last typed; seconds since anything was attached (0 while attached); Unix time
isekur.sort_tabs()each network's tabs together, status tab first, then by name. true if the order changed. A tab the user /moved (or dragged) keeps its place until iSekur restarts
isekur.platform()
isekur.which(name)
the system's name in lowercase ("darwin", "linux"...); a program's full path on PATH, or nil
isekur.run(argv, text)starts a speech engine (say, spd-say, espeak-ng, espeak, flite, or festival --tts; nothing else, never through a shell) with text on its stdin. false while the last one still runs
isekur.speak_web(text, lang)the webchat says text aloud in the browser, in language lang
isekur.theme()the loaded theme's colors as 0xRRGGBB: name, fg, bg (nil: the terminal's own), hilight, timestamp and the list nicks
isekur.nick(srv)the nick the config asks for there
isekur.inactive()seconds since the last key, click or mouse move
isekur.http(url, fn, body, opts)fetches (or POSTs body to) an http or https URL in the background; fn gets status, type and body. Private and local addresses are refused
isekur.json_decode(text)the Lua value of a JSON text
isekur.embed(srv, target, id, t)shows a link card, picture, audio or video under a message
isekur.proxy(srv, url)in a connect handler: connect through a SOCKS, HTTP or SSH proxy
isekur.upload(id, opts, fn)sends the file of a drop event to an https URL
isekur.choose{...}asks the user to pick a row, with an optional text field; answered by the choice event
isekur.copy(text)puts text in the clipboard
isekur.window{...}opens or updates your window (list, buttons, tabs, search, slider) in the terminal and the webchat
isekur.panel{...}status lines and buttons at the top of your plugin's configure page
isekur.view{...}the focus view: only the chat, in a column in the middle
isekur.screen(fn, fps)
isekur.put(x, y, text, color)
a screensaver, drawn frame by frame
isekur.lock()locks iSekur, when a lock password is set
isekur.fold(on)folds runs of joins, parts and quits into one row
isekur.tint{...}tints every color of the terminal and the webchat, fading in and out
isekur.nick_color(srv, nick)
isekur.nicklist_colors(on)
the color the chat gives a nick; the user list in those colors
isekur.radio(url, opts)
isekur.radio_volume(percent)
isekur.radio_mute(on)
plays an audio stream, and sets its volume or mutes it
isekur.name
isekur.api
the plugin's name; the API version

The arguments and limits of each call are in WRITING.md. A newer call needs a newer iSekur: check isekur.api.

The sandbox

Each plugin runs in its own Lua state with only string, table, math, utf8 and the base library, minus load, loadfile and dofile. There is no io, os, require or debug, so a plugin can't read your files, run programs (only the speech engines of isekur.run, and the players behind isekur.radio) or open sockets of its own: the network is reached only through calls such as isekur.http and isekur.upload. A plugin gets 32 MB of memory. A call that runs too long (about 10 million Lua instructions, such as an endless loop) is stopped with an error. Errors show as [name] error: ..., and after 5 in a row the plugin is unloaded until /plugin reload.

A plugin sees what you type (the command event) and every message, so only install plugins you trust. The catalog's plugins are reviewed in the isekur-plugins repository, and their sha256 is checked before they're installed.

Sharing one in the catalog

The catalog is its own repository, isekur-plugins, so nothing of it comes with iSekur: each plugin is <name>/<name>.lua there, with an entry for it in index.json:

{"name": "hello", "version": "1.0", "api": 1,
 "description": "Says hello",
 "sha256": "output of: shasum -a 256 hello/hello.lua"}

version must match the file's own -- version: line. Raise both, and the sha256, with every change, or nobody is offered the update. Its check.py (CI runs it on every push and pull request) checks both, and compiles every plugin. Open a pull request there with both files. api is the isekur.api version the plugin needs; older iSekurs hide plugins that need a newer one. To test a catalog before it's published, start iSekur with ISEKUR_PLUGIN_URL=file:///path/to/isekur-plugins/. A new version takes up to 12 hours to reach users: iSekur keeps the index in .catalog.json in their plugins folder and fetches it again after that, or on /plugin refresh.

Twitch

Twitch chat is IRC. /twitch opens its tab and asks for your login and an OAuth token if they're missing. Then /join streamer joins the chat of twitch.tv/streamer. Display names, name colors, mod/VIP badges (@/+), subs, raids, timeouts and room modes all show.

To get a token (/twitch token shows these steps too):

  1. At dev.twitch.tv/console, register an application with OAuth Redirect URL http://localhost (exactly), Category Chat Bot and Client Type Public. Copy its Client ID.
  2. Open https://id.twitch.tv/oauth2/authorize?response_type=token&client_id=YOUR_CLIENT_ID&redirect_uri=http://localhost&scope=chat:read+chat:edit, with your Client ID in place of YOUR_CLIENT_ID.
  3. Approve. The browser lands on a localhost page that doesn't load, which is fine. Copy what follows access_token= in the address, up to the next &, and paste it when /twitch asks.

Files (DCC)

Files sent to you are only offered: nothing downloads until you /dcc get it. Downloads run in the background into dcc_dir (default ~/Downloads on the machine iSekur runs on), and a broken download resumes where it stopped (iSekur leaves a hidden .name.part beside the file until it's whole, and only a file with that mark is resumed: one that merely has the name is never touched). /dcc send nick file offers one; behind a router, set dcc_ip and forward dcc_ports. /dcc lists the transfers, and /dcc close n refuses or cancels one. Progress shows in the status bar and the webchat. Passive DCC isn't supported yet.

Channel ops and IRC operators

Op shortcuts: /massop, /massdeop, /massvoice, /massdevoice, /masskick (asks first), /lockdown (+mntsi) and /unlock, /kickban nick (bans *!*@host), /tempban nick minutes (iSekur lifts it when the time is up), /chanstats and /topicrotate minutes topic | topic ….

IRC operators: /oper user asks for the password, hidden. While you're +o or +s, server notices and WALLOPS go to a *snotices tab. /kill, /gline, /kline, /zline, /shun and friends take the reason as plain words; iSekur adds the :.

Command line

OptionWhat it does
-c file, --config fileUse file instead of ~/.config/isekur/isekur.conf (git --config, also as --config=file)
-d, --daemonStart in the background without a terminal. Attach with --attach or the webchat, which this mode always starts. Its run log goes to isekur.log next to the config: git a timestamped line for start and stop (and why), servers connecting and dropping, attaches, the webchat and BNC, console errors and crashes.
-f, --foregroundgit Like --daemon but without forking: iSekur stays in the process it was started from and logs to stdout and stderr. For systemd, Docker and launchd, which want the service to stay in the foreground.
-a, --attachBring a detached iSekur back to this terminal. With none running for that config, a new one starts.
-l, --listList the running iSekurs, each with the command that attaches it
--stopgit Quit the iSekur running for that config and wait until it's gone. With a /lock password it asks for it first.
-s address, -j #channels, --tlsgit Connect to a server for this run only, and join channels on it: isekur -s irc.sekurnet.org:6697 --tls -j '#iSekur'. The same as a URL: isekur ircs://irc.sekurnet.org/#iSekur (ircs:// is TLS). Like /server without -save: nothing is written to the config. A server of your config with that address is used instead of a second connection. Refused while an iSekur is running for that config.
--web, --no-webStart the webchat, or don't, whatever [web] autostart says
--no-bncgit Don't start the BNC, whatever [bnc] autostart says
--safegit Start clean when something goes wrong: the nocolor theme and no plugins, for this run only. The config isn't changed, so /plugin disable or /theme can fix it from inside. /restart drops it; with an iSekur already running for that config it refuses to start.
--noautoconnectgit Start without connecting to any network, whatever autoconnect says (/connect connects one). Alone or with --safe, and like it dropped by /restart and refused while one is running.
--bncRun in the background as a bouncer only: no terminal, no webchat (--web adds it). Needs [bnc] user and password_hash
--hash-passwordRead a password and print a password_hash line ([web] or [bnc])
--checkList the config's problems (unknown keys, values a key can't take) and exit, with status 1 if there are any. /checkconf does the same inside iSekur
--print-configgit Print a fresh config file, every setting with its comment, and exit: isekur --print-config > ~/.config/isekur/isekur.conf
-h, --helpgit The options, and exit 0 (a wrong option prints them to stderr and exits 2)
-v, --versionPrint the version. git On a color terminal it comes with the banner, the links and what iSekur runs on; piped, with NO_COLOR set or on a dumb terminal it is plain text whose first line is just the version.

man isekur has all of this offline.

Troubleshooting

Alt / Option keys don't work

On a Mac, set the terminal to send Option as Alt (Ghostty: macos-option-as-alt = left; Terminal: Profiles → Keyboard → Use Option as Meta key; iTerm2: Profiles → Keys → Left Option key: Esc+). Right Option then still types symbols like å and ß. iSekur tells you once when Option+letter types a symbol instead. Some terminals bind Alt combinations themselves: in Ghostty, a keybind = alt+… in its config eats that key before iSekur sees it. Every action also has a Ctrl key or a command (/detach, /win 3), and you can change the keys.

Colors look off

colors = auto uses true color when $COLORTERM says so. Over SSH or in tmux that variable is often lost: set colors = truecolor if your terminal supports it, or colors = 256 if it doesn't. In tmux, add set -ga terminal-overrides ",*:RGB".

iSekur stops when I log out of a server

systemd is killing your processes at logout: run loginctl enable-linger $USER once.

The webchat doesn't load

Bound to 127.0.0.1 without a cert, it speaks plain HTTP, so open http://, not https://. Behind a proxy, point the proxy at http://127.0.0.1:port. Other binds need HTTPS. A self-signed certificate works, but the browser warns and won't install it as an app.

A network on a legacy charset

A network that isn't on UTF-8 yet: /set server.sekurnet.encoding iso-8859-9, any name iconv knows, then reconnect. Inside iSekur everything stays UTF-8; a character the charset can't write goes out as ?. /servers sekurnet, or Edit network... in a server tab's menu, opens the settings at that network.

IRC over WebSocket

For a network that only listens that way, or sits behind an HTTPS proxy, give /server a URL: /server wss://irc.sekurnet.org/ws. The scheme says whether it is TLS, and the URL gives the port (443 or 80 without one) and the path. If the server wants one kind of frame, -wsproto text or binary (server.name.ws_protocol) picks it; a network with a legacy charset wants binary.

A self-signed IRC server

/server host 6697 -tls -noverify skips the certificate check. Only use it for a server you trust.

Still stuck?

Ask in #iSekur on irc.sekurnet.org (/server irc.sekurnet.org 6697 -tls -name sekurnet), or open a GitHub issue.

ReferenceCommands

Every command, as /help command shows it. Words in grey are arguments, [ ] marks optional ones and | separates choices. Any command iSekur doesn't know goes to the server unchanged.

The /help server output
/help server in the app: the same text and examples as below

Loading…

Settings

Every key in the config file, with its default. Set one with /set key value (server keys: /set server.name.key value), then /save. /set alone opens the settings window. Keys shown with no default are optional: add them when you need them.

The settings window
/set alone opens the settings window: categories on the left, / searches, e edits, Space toggles

Loading…