If your YouTube stream key seems not to save in OBS Studio, first check which OBS Profile is active and which OBS copy you opened. Profiles can hold different stream settings, and Windows Portable Mode reads configuration from the application folder, so a different profile or launch location can make settings appear to have changed.
Only replace the key after confirming you are looking at the intended configuration. Then check both the YouTube server URL and the key: credentials can be present and saved even when the connection itself is failing.
Confirm the active OBS Profile
In OBS, open the Profile menu and note the selected profile before changing anything. Profiles save stream configuration alongside video and output settings. If you have a profile for a devotional channel and another for a study stream, for example, each can contain a different YouTube destination or key. Selecting the other profile can make it look as if OBS forgot a setting, even though that setting may still be in the profile where you entered it.
Choose the profile you intended to use and open Settings > Stream. Check what service or connection method is selected, and whether the server and key fields contain the values expected for this channel. Avoid pasting a new key into whichever profile happens to be open simply because its fields look empty. First decide which profile is meant to hold the YouTube configuration; otherwise you can update one profile and later launch OBS with another.
Profiles and Scene Collections are separate. A Profile stores items such as stream, video and output settings; it does not store the scenes themselves. If you change the profile while troubleshooting, do not assume that your scene layout has moved with it. The OBS guide to Profiles explains what they contain and how they can be exported. For a broader view of a computer-based setup, see our guide to running OBS for 24/7 YouTube streaming on a low-spec laptop.
Write down the profile name and the visible stream configuration before proceeding. That small check gives you a baseline: you can distinguish “the key is absent in this profile” from “this is not the profile I used previously”. If there are several similarly named profiles, make a note of the one that is correct rather than renaming or deleting profiles in a hurry.
Check the Profile’s saved stream settings
With the intended profile selected, open Settings > Stream and inspect the destination details. OBS may be configured to connect through a YouTube account integration or through a stream key, depending on the setup. Follow the method already in use unless you have a reason to change it. If the key field is blank, confirm that the intended profile is active and that you have opened the same OBS configuration you normally use before concluding that a saved value disappeared.
YouTube supplies two distinct pieces of information for an encoder setup: a server URL and a stream key. YouTube Help describes stream keys as “like your YouTube stream’s password and address”; in practice, the URL tells OBS where to send the feed, while the key identifies the stream. The two are not interchangeable. YouTube’s guide to creating a live stream with an encoder describes the encoder details to retrieve in YouTube Studio. Check both fields in OBS rather than treating any connection error as proof that the key was not saved.
If the key is present in the correct profile after restarting OBS, do not keep pasting it just to test persistence. Instead, compare the destination with the current details in YouTube Studio. If the key is missing, identify whether you are looking at a different profile or configuration location first. Only after those checks should you decide whether to re-enter or reset a credential.
Keep the channel and destination in mind as you inspect the fields. An always-on channel may use a saved configuration prepared for a specific stream in Live Control Room; another profile could be for a one-off event. The visible key can be valid for one intended destination and not the other. Do not expose the key in screenshots, notes shared with a helper, or a public support post: treat it as a credential.
Look for a different profile after reopening
If settings look different after closing and reopening OBS, compare the active profile before and after the restart. OBS does not necessarily reopen with the profile you were using when you last checked the key: you may have selected another profile later, or a shortcut or workflow may have led you to a different OBS configuration. The useful question is not “why did OBS erase the key?” but “which profile and copy of OBS am I looking at now?”
Make a short, controlled check. Note the selected Profile, close OBS normally, reopen it in the usual way, and check the selected Profile and Settings > Stream again. If the profile name differs, switch back to the intended profile and verify its stream settings. If the profile name is the same but the OBS launch location might differ, investigate Portable Mode before changing credentials. Avoid deleting profiles or resetting the key during this comparison; those steps can remove useful evidence about which configuration you actually used.
This distinction matters when the rest of OBS also looks unfamiliar. A different profile can alter video and output settings as well as the stream destination. Conversely, if the scenes are different but stream settings are as expected, you may be dealing with a Scene Collection change rather than a missing key. Keep the profile and scene collection checks separate so a scene change does not send you down the wrong troubleshooting path.
For a 24/7 broadcast, the difference between a saved setting and an active encoder is important. A key being present in a profile does not mean that a stream is currently connected, and a dropped encoder does not by itself establish that OBS failed to save the profile. If OBS closes unexpectedly, the operational problem is different from a profile mismatch; our article on what happens when the encoder stops covers that separate failure mode.
Check whether OBS is running in Portable Mode
Portable Mode is a way to run OBS with its configuration associated with the application folder on Windows. It can be useful when you deliberately keep a portable copy separate from a standard installation. It also means that opening another OBS copy, or launching a portable folder from another location, can present a different configuration. That is a plausible explanation for different settings after reopening, not proof that Portable Mode itself failed to save them.
Check how OBS is launched. Is the shortcut pointing to the same installation or portable folder you used when the stream details were entered? Do you have a standard installed copy and a separate portable copy? If you use a desktop shortcut, inspect its target rather than assuming that an OBS icon always opens the same copy. Where multiple copies exist, open the intended one directly and verify its profile and stream settings.
Do not infer a permissions problem merely because the key looks different. First confirm the selected profile and the application path. If you have just moved, unzipped or replaced an OBS folder, compare the current folder with the one you used before. The OBS Portable Mode instructions explain how Portable Mode uses the application directory and advise placing a Windows ZIP copy in a user folder rather than Program Files.
If you do not remember choosing Portable Mode, do not assume it is enabled simply because settings differ. Establish what copy is running and whether its configuration is portable before deciding what to change. That prevents the common mistake of entering a fresh key into one copy, then reopening another copy and believing the same failure has happened again.
Understand where Portable Mode stores configuration
In Windows Portable Mode, OBS reads configuration from a directory associated with the application folder. This is different from the normal configuration location used by an installed OBS copy. As a result, two copies can be distinct working environments: they can have different profiles and different stream details even when their windows look alike. The saved information belongs to the configuration that was open when you changed it.
If you use a portable copy, keep its folder in a location you can identify and open consistently. OBS recommends extracting the Windows ZIP into a user folder and explicitly advises against Program Files for this arrangement. Do not move a portable folder casually and then expect a shortcut or another OBS copy to find the same configuration. If a move is necessary, check the actual launch target and inspect the profile in the copy you intend to keep using.
A simple record can help: note whether you use the installed version or a portable folder, the path from which OBS launches, and the profile name that contains the YouTube setup. There is no need to publish the full path or key; keep the note for your own troubleshooting. If you share the computer with another operator, agree on which shortcut and profile they should use, rather than having each person launch whichever OBS icon is easiest to find.
A computer-based setup also depends on that computer and OBS staying available. If the difficulty you are solving is that an operator’s laptop must remain on for an ongoing channel, that is separate from where a stream key is saved. StreamNeo addresses that specific always-on burden by letting you upload a video, add your YouTube key and run the broadcast without keeping your own computer on; it is YouTube-only. It does not remove the need to check that the intended channel and stream details are correct.
Back up or export the intended profile
Once you have found the profile that holds the intended stream configuration, consider exporting it before making more changes. OBS Profiles can be exported to JSON for backup or transfer. Use the Profile menu’s export function for the intended profile and store the file somewhere you can find later, such as a private folder associated with your channel’s configuration records. Exporting is a precaution, not a guarantee that every part of an OBS setup can be recovered or that the stream will connect when imported.
Treat an exported profile as sensitive if it contains stream credentials. Store it with access limited to people who need it, and do not attach it to a public support request. If you need to move the configuration to another copy of OBS, import the exported profile there and then verify the service, URL and key in that destination. An export does not change which profile is active, and it does not transfer scenes; preserve or export a Scene Collection separately if you need those layouts too.
Do not overwrite the only copy of a known-good profile while experimenting. If you are uncertain which profile is correct, export the likely intended one before edits, then make deliberate changes in a clearly named working profile. Keep the original as a reference until you have confirmed the new profile has the right stream settings and the channel connects in a test. This reduces the chance of confusing a test configuration with the one used for the live channel.
If you are already using a cloud or hosted approach for a recurring channel, keeping the current YouTube destination and key recorded securely may still be useful when operators change. But a backup of OBS settings is not a substitute for checking the current stream in YouTube Studio. Credentials can be reset or changed, and any copied value may no longer be current.
Reconnect and test the YouTube destination
When the intended profile and OBS copy are confirmed, retrieve the current destination details from YouTube Studio. In Studio, use Create > Go Live, then open the Stream tab in Live Control Room. Copy the current stream key and note the server URL. In OBS, choose the appropriate YouTube service or preset under Settings > Stream, then verify both the URL/server and key. YouTube’s live stream settings guidance explains how to manage stream settings and credentials.
If the key has been reset in Live Control Room, update OBS with the new value in the intended profile. YouTube says a channel owner or manager can reset a stream key; a viewer or editor cannot. Reset only when the key is missing, rejected, or may have been exposed. A reset makes the old key unsuitable for that encoder setup, so update OBS with the replacement and protect it as you would a password.
If both fields are populated but OBS cannot connect, troubleshoot connection details rather than repeatedly re-entering the same key. Check that the server URL and protocol match the current YouTube details and that the encoder supports the selected protocol. YouTube’s RTMPS guidance explains the secure stream option and recommends an appropriate YouTube RTMPS preset where available, or the RTMPS URL supplied in Live Control Room. If OBS reports an SSL error, check the server and scheme; YouTube notes that port 443 may be worth trying. A timeout can point to a wrong URL or unsupported RTMPS connection, rather than a persistence problem.
Test before the scheduled broadcast, not at the moment viewers expect it to begin. Confirm that OBS connects to the intended live control room and watch YouTube’s stream health indicators. For a long-running playlist channel, you should also know what your process is if OBS or the computer stops; the guide to keeping a YouTube stream running when OBS closes unexpectedly addresses recovery planning, which is distinct from saving credentials.
Before committing, compare the operating options on the pricing page. When the file and channel are ready, start free — 24-hour trial, no card.
FAQ
Why does OBS show a blank stream key after reopening?
First check the active Profile, then confirm that you reopened the same OBS installation or Portable Mode folder. Profiles can have different stream settings, and a portable copy uses configuration associated with its application folder. Only after those checks should you decide whether the key needs to be entered again.
Should I reset my YouTube stream key if OBS will not connect?
Not automatically. If the key is visible in the intended profile, check the URL, protocol and encoder support first; reset only if the key is missing, rejected, or may have been compromised. A channel owner or manager can reset it in YouTube Live Control Room, after which the new key must be updated in OBS.
Does exporting an OBS Profile back up my scenes too?
No. A Profile stores stream, video and output configuration, while scenes are managed separately through Scene Collections. Exporting a profile can help preserve or transfer those profile settings, but it does not guarantee recovery of the whole OBS setup or a successful connection.
Where should I keep a Windows Portable Mode copy?
OBS recommends unzipping the Windows ZIP in a user folder and says not to use Program Files for Portable Mode. Check that your shortcut opens that same folder each time. If you also have an installed OBS copy, verify which one is active before editing its profile.