What Is a YouTube Stream Key? How to Find, Use, and Protect It
Everything you need to know about YouTube stream keys — what they do, where to find them, when to use them, and what to do if yours gets compromised.
Your stream key is like a password to your YouTube channel’s live broadcast system. Anyone with your stream key can go live on your channel without your permission. Never share it publicly, never paste it in screenshots, and reset it immediately if it’s ever exposed.
What Is a Stream Key?
A stream key is a unique alphanumeric code that authenticates your streaming software (like OBS) with your YouTube channel. When you configure OBS with your stream key and click “Start Streaming,” OBS sends video data to YouTube’s servers — and YouTube knows which channel to broadcast it on because of the key.
Think of it as a doorman’s pass: it proves to YouTube that this incoming video stream should go to your channel specifically, not someone else’s.
Where to Find Your YouTube Stream Key
- Go to YouTube Studio (studio.youtube.com)
- Click the camera icon at the top right → “Go Live”
- Select “Stream” from the left sidebar (not “Webcam” or “Manage”)
- Under “Stream Settings,” click “Reveal” to show the stream key
- Copy the key and paste it into OBS: Settings → Stream → Stream Key field
Persistent vs. Per-Stream Keys
| Key Type | How It Works | Best For |
|---|---|---|
| Persistent Stream Key | Same key works for all streams; never expires | Regular streamers; simpler setup |
| Per-Stream Key | New key generated per scheduled stream; tied to specific broadcast | Scheduled streams with specific metadata |
Most creators use the persistent key for simplicity. Per-stream keys are generated automatically when you schedule a stream and can be used with OBS for that specific broadcast.
What to Do If Your Stream Key Is Compromised
- Go to YouTube Studio → Go Live → Stream immediately
- Click “Reset Key” — this instantly invalidates the old key
- Update the new key in OBS and any streaming services you use
- Review your YouTube Studio for any unauthorized streams and remove them
- Change your Google account password if you suspect broader account compromise
When You Don’t Need a Stream Key
Several alternatives to manual stream key management exist:
- OBS “Connect Account” method — authenticates via Google OAuth without exposing the key
- YouTube Studio webcam — browser-based streaming requires no stream key
- Mobile YouTube app — no stream key needed; uses OAuth directly
- Streaming services — tools that handle automated YouTube live streaming manage stream keys via OAuth, so you never handle the key directly
Use OBS’s “Connect Account” option instead of manually pasting your stream key. This authenticates via OAuth (same as “Sign in with Google”) — your key is never stored in plain text in OBS settings, and you never risk accidentally sharing it in a settings screenshot.
Stream Without Stream Key Management
YTStreamer connects to your YouTube channel via secure OAuth — no stream key required. Upload, schedule, and go live automatically.