Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
How to connect to Twitch with an IRC client (As of Oct 2015)


Connect to chat with an IRC client

  1. Visit this website and get an OAuth Token for your Twitch account.
  2. Add a server to your IRC client with this configuration, using your OAuth Token as the server password. Make sure it is not using SSL.
  address = "";
  chatnet = "Twitch";
  port = "6667";
  password = "<YOUR OAUTH TOKEN>";
  use_ssl = "no";
  ssl_verify = "no";
  autoconnect = "yes";
  1. A recent update to Twitch's IRC implementation requires using the IRCv3 "membership" capability in order to subscribe to channel updates. If you don't configure your client to use this capability, you will not see channel members or incoming messages. In order to use the membership capability, your client needs to send this raw command to the IRC server automatically after connecting:

In irssi, you can use the autosendcmd configuration on the chatnet with the /quote command.

Twitch = {
  type = "IRC";
  nick = "your_twitch_username";
  autosendcmd = "/quote CAP REQ";
  1. Connect to the server and you can now join stream chat rooms. The rooms are titled # followed by the streamer's username in lowercase. So if your name was StreamLord you would want to join #streamlord. You may have issues receiving channel updates if you use capitalized variants.
Copy link

hasteur commented Oct 25, 2017

Just a FYI: Per you can use SSL to conenct to twitch over SSL (probably a good thing since you're transmitting an oauth key). It works and I'm liking it better.

Copy link

image28 commented Jul 24, 2021


Copy link

koutoftimer commented Jul 25, 2021

@hasteur broken link

Error 502 Ray ID: 6746b522182b432d • 2021-07-25 16:19:02 UTC
Bad gateway

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment