Connect OBS to Twitch in three steps
Open OBS Studio, go to Settings > Stream, select Twitch as your service, and paste your stream key from your Twitch Creator Dashboard. OBS will then connect to Twitch's servers when you click Start Streaming. The whole process takes about five minutes the first time, and after that OBS remembers your connection.
Your stream key is a unique code that tells Twitch which channel the broadcast belongs to. You generate it once in your Twitch account settings, paste it into OBS, and OBS uses it to send your video and audio directly to Twitch's servers. Anyone who has your stream key can broadcast to your channel, so treat it like a password — do not share it publicly or post it in screenshots.
Key Takeaways
- Your stream key lives in Twitch Creator Dashboard under Settings > Stream, and you paste it into OBS Settings > Stream to connect the two programs.
- OBS sends your camera, microphone, and screen to Twitch only when you click Start Streaming — nothing broadcasts until you press that button.
- If OBS says "Connection failed", check that your internet connection is stable, your stream key is correct, and you are not already streaming from another device.
- You can test your setup by starting a stream, checking that video and audio appear in your Twitch channel, and stopping immediately without going live to your followers.
Finding your stream key in Twitch Creator Dashboard
Log into Twitch on a web browser, click your profile icon in the top right, and select Creator Dashboard. On the left sidebar, click Settings, then Stream. You will see a section labeled "Primary Stream Key" with a hidden code underneath. Click Show to reveal it, then copy the entire string of characters.
Twitch generates this key automatically when you create your account. You can reset it anytime by clicking Reset Key, which will invalidate the old one — useful if you think someone else saw it. After you reset, you will need to paste the new key into OBS and any other software you use to stream.
Entering your stream key into OBS
Open OBS Studio. At the top of the window, click File, then Settings. In the left panel, click Stream. Under "Service", click the dropdown and select Twitch. A field labeled "Stream Key" will appear below it.
Paste your stream key into that field. Do not type it manually — copy and paste to avoid typos. Leave the Server field set to Automatic unless OBS tells you otherwise. Click Apply, then OK. OBS will now remember your stream key and use it whenever you start streaming.
Testing your connection before you go live
Before you stream to your followers, run a test broadcast to make sure video and audio are actually reaching Twitch. Click Start Streaming in OBS. Wait 10 seconds, then open your Twitch channel in a web browser (go to twitch.tv/yourname). You should see your camera feed and hear your audio.
If you see nothing, check three things: first, that your camera and microphone are turned on and selected in OBS (look at the Sources panel on the left). Second, that your internet connection is stable — a weak connection can prevent OBS from sending data to Twitch. Third, that you are not already streaming from another device, which Twitch will not allow. Once you confirm everything works, click Stop Streaming in OBS. Your test broadcast will not appear in your channel history or notify your followers.
What to do if OBS will not connect to Twitch
The most common reason OBS fails to connect is an incorrect or expired stream key. Go back to Twitch Creator Dashboard, copy your stream key again, and paste it into OBS Settings > Stream, replacing what was there before. Then try Start Streaming again.
If that does not work, restart OBS completely — close it and open it again. Sometimes OBS needs to refresh its connection to Twitch's servers. If you still see an error message, check your internet connection by opening a web browser and visiting any website. If the web browser works but OBS does not, your firewall or antivirus software may be blocking OBS. Look for a notification from your security software asking whether to allow OBS, and click Allow.
One more possibility: Twitch may be experiencing an outage. Check the Twitch Status page (status.twitch.tv) to see whether other users are reporting problems. If the status page shows everything is normal but you still cannot connect, wait a few minutes and try again — temporary connection issues usually resolve on their own.
Keeping your stream key private and secure
Your stream key is the only credential OBS needs to broadcast to your channel. Anyone with that key can start streaming to your audience without your permission. Never paste it into chat, post it in a screenshot, or share it with someone you do not trust completely.
If you suspect someone else has seen your stream key, reset it immediately in Twitch Creator Dashboard by clicking Reset Key. The old key will stop working, and you will need to paste the new one into OBS. This takes less than a minute and completely cuts off anyone who had the old key.
Frequently Asked Questions
Can I use the same stream key on multiple computers?
Yes, you can paste your stream key into OBS on as many computers as you want. However, Twitch will only allow one active stream at a time — if you try to start streaming from two computers simultaneously, the second one will fail. Use the same key on multiple computers only if you plan to stream from one at a time.
What happens if I reset my stream key by accident?
Your old stream key stops working immediately, and OBS will show a connection error the next time you try to stream. Go back to Twitch Creator Dashboard, copy the new key, paste it into OBS Settings > Stream, and you are back online. The whole fix takes about two minutes.
Do I need to enter my Twitch password into OBS?
No. OBS only needs your stream key, not your password. If any software asks for your Twitch password, do not give it — use the stream key instead. Your password should stay in Twitch only.
Can I stream to Twitch without OBS?
Yes. Twitch has a built-in browser camera feature called Twitch Studio, and many games have their own streaming tools. OBS is free and works with any game or application, which is why most streamers use it, but it is not required.
Why does OBS say my internet is too slow to stream?
OBS shows this warning when your upload speed is below what you set as your bitrate. Lower your bitrate in OBS Settings > Output (try 2500 to 3500 kbps instead of 6000), or move closer to your router to improve your connection. A wired ethernet cable is faster and more stable than WiFi.