RTMP/SRT/HLS Twitch stream key OBS

Twitch Stream Key: How to Find and Use It

Where your Twitch stream key lives, how to paste it into OBS, the settings Twitch recommends, how to reset a leaked key, and fixes when the key won't connect.

Twitch Stream Key: How to Find and Use It
Share

Your Twitch stream key is a long string of letters and numbers that tells Twitch's servers which channel an incoming video feed belongs to. Every program that can broadcast to Twitch, from OBS Studio to a hardware encoder to a cloud multistreaming service, needs it. It is also the single most sensitive thing in your streaming setup, because anyone who has it can go live on your channel as you.

This guide covers finding the key, pasting it into your encoder the two ways Twitch supports, the settings Twitch actually recommends once you are connected, resetting a leaked key, and the short list of reasons a perfectly valid key refuses to connect. If you want the general concept first, our stream key explainer covers how keys work across every platform; this article is the Twitch-specific version.

What the Key Does

Think of Twitch's ingest servers as a building with one door per channel. The server URL is the building's address and the stream key is your door key. Your encoder connects to the address, presents the key, and Twitch routes the video to your channel page. That is the whole mechanism. It also explains the two properties that matter most: the key never changes unless you change it, and it carries no other security. Twitch does not check who is holding it.

Step 1: Find Your Twitch Stream Key

  1. Log in at twitch.tv on a desktop browser.
  2. Click your avatar (top right) and choose Creator Dashboard.
  3. In the left sidebar, open Settings, then Stream.
  4. The first block is Stream Key and Preferences. Your Primary Stream Key sits at the top with Copy and Reset buttons.
  5. Click Copy. Do not click Show while recording or streaming your screen.

Twitch requires two-factor authentication for Affiliates and Partners, and many accounts see a prompt to enable 2FA before the key is revealed. Enable it under Settings, Security and Privacy. A leaked stream key is embarrassing; a leaked stream key on an account without 2FA can become someone else's channel for an evening.

The same page holds a few settings worth knowing about while you are there: Disconnect Protection (keeps your stream up for a short window if your encoder drops), Latency mode (Low Latency versus Normal), Store past broadcasts (VODs), and Mature content. Disconnect Protection in particular is worth turning on before you ever need it.

Step 2: Paste It Into OBS (Two Ways)

OBS Studio supports Twitch two ways, and the difference matters if you plan to multistream later.

Connect Account. Open Settings, Stream, choose Twitch as the service, and click Connect Account. Log in through the popup. OBS fetches the key for you, adds Twitch chat and stream info docks to the window, and unlocks Twitch-specific features such as Enhanced Broadcasting. You never see the key. This is the easiest path if Twitch is your only destination.

Use Stream Key. Same screen, service set to Twitch, but click Use Stream Key instead and paste what you copied in Step 1. The server dropdown defaults to Auto (Recommended), which picks the nearest Twitch ingest. This is the universal method: it works identically in Streamlabs Desktop, vMix, Wirecast, hardware encoders, and any custom RTMP field.

If you are pasting into a program that has no Twitch preset, the standard ingest is:

rtmp://live.twitch.tv/app/

Twitch runs regional ingest servers and publishes the current list at its ingest recommendation page. Auto is right for almost everyone; pick a specific region only if you are troubleshooting packet loss.

Step 3: Settings Twitch Recommends

Once connected, the output settings decide whether the stream looks crisp or smeared. These follow Twitch's published broadcasting guidelines:

SettingRecommendedNotes
Resolution and frame rate1920x1080 at 60 fps, or 1280x720 at 60 fps720p60 is the sweet spot for most home connections
BitrateUp to 6,000 kbpsTwitch's standard ceiling; going higher gets your stream dropped or capped
Rate controlCBRTwitch does not want variable bitrate
Keyframe interval2 secondsTwitch specifies 2; longer intervals cause quality-switching problems for viewers
EncoderNVENC, AMD AMF, Apple VT, or x264Hardware encoders keep the CPU free for the game
AudioAAC, 48 kHz, 160 kbps stereoTwitch's max audio bitrate is 320 kbps

Two footnotes. First, unless you are a Partner or have transcoding on your stream, viewers get only the quality you send; a 6,000 kbps 1080p60 stream on a viewer's slow connection buffers. That is the argument for 720p60 at 4,500 kbps if your audience skews mobile. Second, Enhanced Broadcasting (Settings, Stream, with your account connected) lets OBS send several quality variants itself and unlocks higher resolutions for eligible channels, at the cost of a lot more encoder work on your PC. Our 1080p OBS settings guide and video bitrate guide go deeper on the numbers.

Resetting a Leaked Key

If the key appears on screen, ends up in a screenshot, or you shared it with a tool you no longer trust, reset it. Back on Creator Dashboard, Settings, Stream, click Reset next to the Primary Stream Key. The old key stops working immediately; the new one shows up in the same field. Then update every place the old key was pasted: OBS, any second encoder, and any cloud service with Twitch added as a custom destination. Services connected through Twitch login (rather than a pasted key) keep working, because they fetch the current key from Twitch each time.

Password changes also invalidate the key on many accounts. If Twitch refuses your connection right after you updated your password, that is the cause; copy the new key and you are back.

Using the Key With a Multistreaming Service

Twitch accepts one live connection per channel, so you cannot run OBS to Twitch and a second encoder to Twitch at once. What you can do is send one stream to a cloud service and let it hold the Twitch connection alongside YouTube, Kick, and everything else. Your PC uploads once; the service uploads to each platform.

With Livepush there are two ways to add Twitch as a destination, mirroring the two OBS methods. Login with Twitch links your account and Livepush pulls the key itself, so a reset on Twitch's side does not break anything. Manual connect pastes the stream key you copied in Step 1 into a Twitch destination, which is the route to use if you manage a channel you cannot log into directly. Either way, OBS points at Livepush's ingest instead of Twitch's, and Twitch sits in the destination list with the rest. Our OBS multistreaming guide walks through the whole flow and the bandwidth math behind it.

One thing to check first: Twitch's rules. Since October 2023, Affiliates and Partners have been allowed to simulcast, with conditions laid out in Twitch's simulcasting guidelines: the Twitch stream must match or beat the quality you send elsewhere, you cannot display a merged multi-platform chat on your Twitch broadcast, and you cannot direct your Twitch viewers to another service during the stream. Streamers who signed an exclusivity contract are the exception. If you are in a paid program, skim your agreement before you add destinations.

Troubleshooting: Valid Key, No Connection

SymptomLikely causeFix
"Failed to connect to server" instantlyExtra space or missing character in the pasted keyRe-copy with the Copy button, paste into an empty field
Connected, then dropped seconds laterPassword changed, or key was reset elsewhereCopy the current key from the dashboard
Connects but Twitch shows offlineA second encoder or service is already live with the keyStop the other connection; Twitch allows one
Key field greyed out or missing2FA not enabled on the accountEnable 2FA under Security and Privacy, reload
Frequent disconnects with a good keyISP or Wi-Fi instability, not the keyWired ethernet, lower bitrate, try a specific ingest region
Stream rejected at 8,000 kbpsOver Twitch's bitrate ceilingDrop to 6,000 kbps CBR
Blocky or stuttering videoBitrate too low for the motion, or dropped framesRaise bitrate within the ceiling; read our dropped frames fix

If none of those match, the fastest diagnostic is a two-minute test stream: start OBS, watch the connection status in the Twitch dashboard's Stream Manager, and check the Stats dock in OBS for dropped frames. A key problem shows up as a refused connection; a network problem shows up as a connection that works and then degrades.

Keeping the Key Safe

Never type it into a chat, a Discord, or a support ticket, including Twitch's. Never show the Stream settings screen on a live stream or a recorded tutorial. If you use a scene that shows your desktop, add OBS itself to the exclusion or keep Settings closed. When a tool asks for your key and offers account login instead, take the login; the fewer places the raw string lives, the fewer places it can leak from. And if you ever do see your channel go live when you are not streaming, reset the key first and investigate second.

That is everything the key does and everything it needs. Copy it once, paste it carefully, protect it like a password, and then forget about it until you change your password or move to a new PC.

Stream to multiple platforms without extra bandwidth

Send one stream to Livepush — we fan it to 40+ destinations.

Start Multistreaming →

Frequently Asked Questions

Where is my Twitch stream key?
Log in at twitch.tv, open your avatar menu and choose Creator Dashboard. In the left sidebar go to Settings, then Stream. The first section, Stream Key and Preferences, shows your Primary Stream Key with Copy and Reset buttons. Twitch hides the characters by default; use Copy rather than Show so it never appears on a recording.
Do I need two-factor authentication to get a Twitch stream key?
Twitch requires two-factor authentication for Affiliates and Partners, and many accounts are prompted to enable it before the dashboard will reveal the key. Turn it on regardless: your stream key is the one credential that lets anyone broadcast as you, and 2FA is the cheapest protection you have. It takes two minutes under Settings, Security and Privacy.
Does my Twitch stream key expire?
Not on a timer. It stays valid until you reset it or until something invalidates it, most commonly a password change. If OBS suddenly cannot connect after you changed your password, go back to the dashboard, copy the new key, and paste it fresh. If you suspect the key leaked, hit Reset and update every encoder and service that uses it.
Can I use my Twitch stream key in more than one program at the same time?
No. Twitch accepts one live connection per channel. If a second encoder connects with the same key, the first stream is knocked offline or the second one is rejected. To be live on Twitch from one source while also streaming elsewhere, send a single stream to a multistreaming service and let it hold the Twitch connection alongside your other destinations.
Is it against Twitch's rules to stream to other platforms with the same key?
Using the key with a multistreaming service is fine. Since October 2023 Twitch has allowed Affiliates and Partners to simulcast to other services, with conditions: the Twitch stream must be at least the quality of the others, you may not show a merged chat from other platforms on your Twitch stream, and you may not send Twitch viewers to a competing service during the broadcast. Streamers who signed an exclusivity agreement are the exception.

Start streaming free — 20 hours/month

Multistream to YouTube, Facebook, Twitch, and 40+ platforms. No credit card required.