Configuring SASL for WeeChat

Here’s a simple guide for password-based authentication, based on the WeeChat quick-start guide.

If you are using WeeChat 4.0 or later, replace ‘ssl’ with ‘tls’ in the following instructions.

If you haven’t already set up your connection to Libera.Chat, use this command:

/server add libera -ssl

If you have already set up a connection to Libera.Chat, or if that command fails with a message like irc: server "libera" already exists, can't add it!, then use these commands to ensure that SSL/TLS is enabled for your connection:

/set irc.server.libera.addresses ""
/set irc.server.libera.ssl on

Now, configure SASL:

/set irc.server.libera.sasl_mechanism plain
/set irc.server.libera.sasl_username <nickname>
/set irc.server.libera.sasl_password <password>

It is recommended to store the password as secured data (skip setting passphrase if already set):

/secure passphrase <passphrase>
/secure set libera_password <password>
/set irc.server.libera.sasl_password "${}"

For more complete instructions, including non-password-based mechanisms, see the official WeeChat documentation.

Based on content © 2016-2021 freenode/web7.0’s contributors under Creative Commons BY-NC-SA