What does Steam Cloud do for a game?

It keeps a player's files the same on every computer. Valve's words: files in the Auto-Cloud configuration, or written through the Cloud API, "will automatically be replicated to the Steam servers after the game exits", and on a new computer they are downloaded before the game launches. Steam Cloud syncs "before and after every session".

Players can switch it off, for all games in the Steam settings or for one game in its properties, so a game must still work when the cloud copy is missing.

Sources: Steamworks Steam Cloud documentation.

Should you use Auto-Cloud or the Cloud API?

Auto-Cloud, unless you need to decide in code which files sync. Valve says Auto-Cloud lets a game use Steam Cloud "without writing code or modifying the game in any way": you list file groups and Steam syncs them when the game launches and exits. The Cloud API, the ISteamRemoteStorage interface, gives more control, such as choosing which saves are stored.

The two ways to use Steam Cloud, from Valve's documentation.
Auto-CloudCloud API (ISteamRemoteStorage)
Code in the gameNoneCalls to read and write files
Set up inSteamworks, Steam Cloud SettingsSteamworks settings plus code
Which files syncFiles matching your root pathsFiles the game writes through the API
Limits named by ValveQuota per user100MB per FileWrite call; quota per user
Good forMost single player savesChoosing which saves go to the cloud

Sources: Steamworks Steam Cloud documentation.

How do you set up Steam Cloud in Steamworks?

Set the quota first, then publish. On the Steam Cloud Settings page, set the byte quota per user and the number of files per user, click Save and publish; the quota applies per user and per game. For a game that is already out, the developers-only option lets you test with your own accounts first.

One setting matters for demos: the Shared cloud APP ID field lets two app IDs share storage, which Valve says "is most commonly used to share saved games between a demo and a full game". Valve warns that sharing with an unreleased base app will not sync. After publishing, wait up to 10 minutes or restart Steam before you test.

Sources: Steamworks Steam Cloud documentation.

Which Auto-Cloud paths fit a Godot or Unity game?

The folder your engine already saves to. A root path has a root, a subdirectory, a file pattern such as *.sav, an OS restriction and a recursive flag. Godot saves to user://, which by default is %APPDATA%\Godot\app_userdata\[project_name] on Windows, or %APPDATA%\[project_name] with a custom user directory. Unity's Application.persistentDataPath is %userprofile%\AppData\LocalLow\<companyname>\<productname> on Windows.

For macOS and Linux, add root overrides. Valve's own example does this for Unity: the Windows path is the root, and the macOS and Linux paths go in the Add/Replace Path field with Replace Path on. The subdirectory can contain {64BitSteamID} or {Steam3AccountID}, so each Steam user on one PC gets their own saves.

Auto-Cloud roots for the default save folders of Godot and Unity on Windows. Check your own project settings before you copy a path.
EngineWindows save folderAuto-Cloud rootSubdirectory
Godot (default user://)%APPDATA%\Godot\app_userdata\[project_name]WinAppDataRoamingGodot/app_userdata/[project_name]
Godot (custom user dir)%APPDATA%\[project_name]WinAppDataRoaming[project_name]
Unity (persistentDataPath)%userprofile%\AppData\LocalLow\<company>\<product>WinAppDataLocalLow<company>/<product>

Sources: Steamworks Steam Cloud documentation; Godot documentation, File paths in Godot projects; Unity Scripting API, Application.persistentDataPath.

Which files should go to the cloud?

Saves and progress, not settings tied to one machine. Valve says to avoid machine-specific configurations such as video settings. Smaller files work better: very large files, or many small ones, can use the player's bandwidth and delay closing Steam or relaunching the game. Valve suggests separate files for state that changes often and state that rarely changes, so the second is not uploaded after every session.

Valve names two sizes: 100MB is the most a single FileWrite call can write, and files of 256MB may get a slower storage endpoint for the player's location.

Sources: Steamworks Steam Cloud documentation.

How do cross-platform saves and Steam Deck suspend work?

Keep the OS restriction on Cross-Platform, even for a Windows-only game. Valve "strongly" recommends it: a file uploaded under an OS-specific rule is locked to that OS and will not sync to other platforms if you add them later.

Steam Cloud's Dynamic Cloud Sync covers a suspended session on Steam Deck: Steam uploads files at suspend, another device can continue, and when the Deck wakes Steam downloads the changes and notifies the game. It works with Auto-Cloud and the API, but the game must handle the change notification, so Valve recommends testing it locally before enabling it for a game that has already shipped.

Sources: Steamworks Steam Cloud documentation.

How do you test Steam Cloud?

On two machines, with the Steam console. Valve's steps for a released game in developers-only mode: open steam://open/console, enter testappcloudpaths with your app ID and set_spew_level 4 4, launch the game, save, quit, and watch the upload; then do the same on a second PC to see the download, on every supported OS. Problems are logged in the Steam folder at logs\cloud_log.txt.

Sources: Steamworks Steam Cloud documentation.

How to measure the result

Manalens is the analytics and growth engine built for games. Send a save failure as an error event, with track_error() in Godot or TrackError() in Unity and an error type such as SaveFailed, and the Top errors list groups them by build. A crash sends app_unclean_exit at the next launch. Compare both before and after you turn on Steam Cloud. Manalens does not read Steam Cloud data.

Sources: Manalens error tracking, Godot SDK and Unity SDK documentation.

Frequently asked questions

Do I need code to use Steam Cloud?

No. Valve's Auto-Cloud lets a game use Steam Cloud without writing code or modifying the game. You set a byte quota and a file count per user, then list the folders and file patterns to sync as root paths. Use the Cloud API instead when the game must choose in code which files are stored.

Can a Steam demo and the full game share saves?

Yes. Steam Cloud Settings has a Shared cloud APP ID field, which Valve says is most often used to share saved games between a demo and a full game. Valve warns that sharing with an unreleased base app will not sync, so test it once the full game is out.

Where does a Godot game save on Windows?

In user://, which by default is %APPDATA%\Godot\app_userdata\[project_name]. With the custom user directory setting on, it is %APPDATA%\[project_name]. For Steam Auto-Cloud, use the WinAppDataRoaming root with the matching subdirectory, and add root overrides for macOS and Linux, which use other folders.

Should graphics settings sync through Steam Cloud?

No. Valve says to avoid machine-specific configurations such as video settings, because a setting that suits one PC can break another. Put saves and progress in the cloud, keep files small, and split often-changed state from rarely changed state, so Steam does not upload unchanged data after every session.

Sources and implementation