Watch your favorite gaming streams on Kodi with HEVC/H.265 support, low latency mode, and ad-free viewing (with Turbo/Subscriber benefits).
You need two tokens for full functionality:
| Token | Purpose | Required? |
|---|---|---|
| OAuth Token | Helix API (browse streams, channels, games, followers) | Yes |
| Website Token | HEVC streams, ad-free viewing, private API | Optional but recommended |
You need to create a Twitch Developer Application:
- Go to Twitch Developer Console
- Click Register Your Application
- Fill in:
- Name: Any name (e.g., "Kodi Twitch")
- OAuth Redirect URLs:
http://localhost - Category: Application Integration
- Click Create
- Copy your Client ID and generate a Client Secret
Then run the token generator script:
python3 get_oauth_token.pyEnter your Client ID and Secret, then follow the on-screen instructions to authorize.
- Open twitch.tv in your browser and log in
- Open Developer Tools (F12)
- Go to Application → Cookies →
https://www.twitch.tv - Find the cookie named
auth-token - Copy its value
In Kodi, go to Add-ons → Video Add-ons → Twitch → Settings:
Login Tab:
- Client ID: Your Twitch Developer App Client ID
(or leave default for Website Token only) - OAuth Token: The token from
get_oauth_token.py - Website Token (HEVC): The
auth-tokencookie value
Go to Settings → Playback:
- Video Quality: Set to Adaptive (recommended)
- Low Latency Mode: Enable for reduced stream delay
- Automatically uses HEVC codec when available (requires Website Token)
- Better quality at lower bitrates
- Reduced bandwidth usage
- Reduces stream delay to ~2-5 seconds
- Enable in Settings → Playback → Low Latency Mode
- Uses InputStream Adaptive for best quality
- Automatically selects highest quality your connection supports
- Smooth quality transitions
- With Twitch Turbo or channel subscriptions
- Requires Website Token configured
This appears when:
-
IRC Chat is enabled but no OAuth Token is configured
- Solution: Either enter an OAuth Token or disable IRC Chat in Settings → IRC Chat
-
No OAuth Token for Helix API
- Solution: Run
get_oauth_token.pyto generate a token
- Solution: Run
- Make sure InputStream Adaptive add-on is installed
- Set Video Quality to Adaptive (not Source)
- Try disabling Low Latency Mode if issues persist
- Your OAuth Token has expired
- Run
get_oauth_token.pyagain to generate a new one - Website Tokens expire when you log out of Twitch in your browser
- Ensure Website Token is configured
- Check your device supports HEVC decoding
- Verify the streamer is broadcasting in HEVC (not all do)
OAuth Tokens expire after some time. The get_oauth_token.py script provides a refresh token that can be used to get a new access token without re-authorizing.
Website Tokens (auth-token cookie) are tied to your browser session and expire when you log out of Twitch.
Q: I can't find the Twitch add-on in Kodi's add-on manager!
Make sure you are using at least Kodi 20 (Nexus).
Q: Do I need both tokens?
For basic functionality, only the OAuth Token is required. The Website Token adds HEVC support and ad-free viewing.
Q: Can I use just the Website Token?
No, the Website Token doesn't work with Twitch's official Helix API. You need an OAuth Token from a registered Twitch App for browsing functionality.
Q: Why are there two different tokens?
Twitch has two APIs:
- Helix API (official): Requires OAuth Token from a registered app
- GQL/Private API (unofficial): Uses Website Token from browser session
Thanks to all the people who contributed to this add-on. For a complete list, visit CONTRIBUTORS