Skip to content

Steam Cloud saves for a Godot game

5 min readBy Eduardo Orellana ·

A Godot game can use Steam Cloud two ways. Steam Auto-Cloud needs no code: in Steamworks you set a quota and tell Steam which folder and file pattern to sync, such as the folder Godot's user:// resolves to (on Windows, the WinAppDataRoaming root plus Godot/app_userdata/<project name>, unless you set a custom user directory), and Steam uploads at exit and restores at launch. Or use the Remote Storage API through GodotSteam (Steam.fileWrite, Steam.fileRead) to write and read cloud files yourself. Auto-Cloud suits most indie games. On Steam Deck, Steam also syncs when the device suspends, which works safest when writes are wrapped in Steam's file write batches.

AppImage, x86_64. Ubuntu 22.04, Debian 12, Fedora 39 or newer.

Intel or AMD Chromebook, with Linux turned on.

Download for macOSDownload for WindowsDownload for Linux

Most games need no cloud code at all

Steam Cloud is one of the features players notice most when it is missing: they play on a desktop, pick up a Steam Deck, and expect to continue. The obvious assumption is that it needs an integration. Valve's documentation says otherwise: Steam Auto-Cloud requires no code changes, only a list of files in Steamworks that Steam syncs when the game launches and exits.

Godot makes Auto-Cloud easy because it already puts every save in one place: user://, a per-project folder in the player's application data. If your saves live there, you can turn on Steam Cloud entirely in Steamworks. Valve's API route, ISteamRemoteStorage, gives more control, and GodotSteam exposes it when you need it.

Sources: Steamworks: Steam Cloud, Godot: Data paths.

Where user:// lives, and the Steam root for each

Auto-Cloud needs the save folder expressed as one of Steam's roots plus a subdirectory. For a project without a custom user directory:

Paths from Godot's Data paths documentation; roots from Valve's Steam Cloud documentation, read 18 October 2026. With application/config/use_custom_user_dir on, the subdirectory is your custom directory name instead.
PlatformGodot user:// pathSteam Auto-Cloud rootSubdirectory
Windows%APPDATA%\Godot\app_userdata\<project name>WinAppDataRoamingGodot/app_userdata/<project name>
Linux / Steam Deck~/.local/share/godot/app_userdata/<project name>LinuxXdgDataHomegodot/app_userdata/<project name>
macOS~/Library/Application Support/Godot/app_userdata/<project name>MacAppSupportGodot/app_userdata/<project name>

Sources: Godot: Data paths, Steamworks: Steam Cloud.

Route 1: Auto-Cloud, step by step

  1. Set quotas: on the Steam Cloud Settings page, set the byte quota and the number of files allowed per user, and publish.
  2. Add a root path for each platform, as in the table, with a pattern that matches only your saves (for example *.save) so logs, caches and screenshots are not synced.
  3. Use root overrides if you ship on several platforms, so a Windows save restores into the right folder on Linux and macOS. Valve advises against restricting a path to one OS unless saves will never be cross-platform.
  4. Separate players if several Steam accounts share a PC: Valve's {64BitSteamID} placeholder in the subdirectory gives each user their own folder, which means your game should save into a matching per-user folder too.
  5. Publish, then test on two machines, or one machine and a Steam Deck.

Set the project name, or a custom user directory, before release: changing it later moves the saves out from under Auto-Cloud.

Valve's Steamworks documentation: Steam Cloud.

Route 2: the Remote Storage API through GodotSteam

For control over what syncs and when, GodotSteam exposes Steam's Remote Storage functions: Steam.fileWrite(name, data) and Steam.fileRead(name, size), with Steam.fileExists() and Steam.getFileSize() to check before reading. Use it when saves are large, when you want to merge conflicts yourself, or when the game writes files outside one folder. It needs the same Steam Cloud quota set in Steamworks.

Sources: GodotSteam: Remote Storage, Steamworks: Steam Cloud.

GDScript
func save_to_cloud(data: Dictionary) -> void:
	var bytes := var_to_bytes(data)
	Steam.beginFileWriteBatch()
	Steam.fileWrite('slot1.save', bytes)
	Steam.endFileWriteBatch()

func load_from_cloud() -> Dictionary:
	if not Steam.fileExists('slot1.save'):
		return {}
	var size: int = Steam.getFileSize('slot1.save')
	var result: Dictionary = Steam.fileRead('slot1.save', size)
	return bytes_to_var(result['buf'])

Steam Deck: syncing on suspend

Valve's Dynamic Cloud Sync goes beyond launch and exit. On a Steam Deck, Steam uploads files when the device suspends, and when it wakes, downloads changes made elsewhere and notifies the game, which can reload the player's progress. Valve asks games to wrap their writes in the file write batch calls so Steam can sync safely at suspend. A player who closes the Deck mid-session and opens the game on a desktop then finds their progress there.

Valve's Steamworks documentation: Steam Cloud.

Organising user:// for the cloud

A small amount of structure in user:// makes the cloud pattern easy to write and keeps machine-specific files local:

  • Saves in user://saves/, with a .save extension, matched by the Auto-Cloud pattern.
  • Settings in user://settings.cfg through Godot's ConfigFile, outside the pattern, because resolution and graphics choices belong to the machine, not the player.
  • Logs, shader caches and screenshots elsewhere, never synced.
  • One file per slot, plus a small index file if the menu needs slot summaries, so changing one slot does not re-upload the others.

Write saves atomically: write to a temporary file, then rename it over the old one, so a crash mid-write never leaves Steam a half-written save to upload.

Pitfalls

  • Saving while the game is quitting can race Auto-Cloud's upload; save at checkpoints instead.
  • Machine-specific settings (resolution, keybinds, graphics) should stay out of the cloud pattern; Valve's best practices say the same.
  • One giant save file re-uploads everything on every change; split data by how often it changes.
  • Huge files: keep individual writes under Valve's 100 MB limit; files above 256 MB can slow sync.
  • Untested conflicts: play offline on one machine, then online on another, and see what Steam asks the player.

Valve's Steamworks documentation: Steam Cloud.

When two machines disagree

A conflict happens when a player changes saves on two machines without syncing in between, typically by playing offline on a laptop. Steam detects it at launch and asks the player which version to keep, the local files or the cloud's. Help them choose well: store a timestamp and a short summary (chapter, play time) inside each save and show it in the load menu, so a player who picked the wrong side can see what happened. With the Remote Storage API, you can go further and merge, for example keeping the furthest progress from each slot.

Testing it

Publish your Steam Cloud settings, then wait up to ten minutes or restart Steam before testing, as Valve advises. In the Steam console, testappcloudpaths with your App ID, plus set_spew_level 4 4, shows which files Auto-Cloud would sync when you launch the game; Steam's cloud_log.txt in its logs folder records what actually happened. For Deck-style sync, Valve documents console commands that simulate suspend and resume. Test the conflict case as well: play on two machines without letting either sync, then launch the game on both, and check which save Steam keeps and what it asks the player.

Valve's Steamworks documentation: Steam Cloud.

Where Flockbay fits

Flockbay builds games on the official Godot engine with saves in user://, which suits Auto-Cloud with no code. Ask its AI for cloud saves through GodotSteam and it writes the Remote Storage calls into your project, which you own; the Steam Cloud settings are yours to set in Steamworks. Building is free to start.

Questions

Does Steam Cloud need code in Godot?
Not with Steam Auto-Cloud: you point Steamworks at the save folder. The Remote Storage API through GodotSteam is the coded alternative.
Where does Godot store save files on Windows?
In user://, which is %APPDATA%\Godot\app_userdata\<project name>, or %APPDATA%\<custom name> if the project uses a custom user directory.
Should Steam Cloud sync my settings file?
Usually not. Valve's best practices advise against syncing machine-specific settings such as video configuration; keep settings outside the Auto-Cloud pattern and sync only saves.
Does Steam Cloud work on Steam Deck?
Yes, and on the Deck Steam also syncs when the device suspends and resumes. Map the Linux root (LinuxXdgDataHome) in Auto-Cloud, or use root overrides so Windows saves restore there.

Flockbay builds Godot games, free to start, and writes Steam features into them on request.

Download Flockbay free

AppImage, x86_64. Ubuntu 22.04, Debian 12, Fedora 39 or newer.

Intel or AMD Chromebook, with Linux turned on.

Download for macOSDownload for WindowsDownload for Linux

Flockbay

The free AI game maker for Windows, macOS and Linux.