How to install SMAPI
Download SMAPI from smapi.io, unzip it, and run the installer for your system: install on Windows.bat, install on macOS.command or install on Linux.sh. Then start the game through SMAPI — on Steam, set the launch options to the SMAPI program. Installing SMAPI does not delete your saves or your mods.
Before you start
Close Stardew Valley. Back up your saves first — they live in %AppData%\StardewValley\Saves on Windows and ~/.config/StardewValley/Saves on macOS, Linux and Steam Deck. Copy the whole Saves folder somewhere safe.
SMAPI works with the Steam and GOG versions of the game. The Microsoft Store version is not supported, so if mods are the reason you are here, use Steam or GOG.
Install SMAPI
- Open smapi.io and download the latest SMAPI for your system.
- Unzip the download to a normal folder. Do not run the installer from inside the .zip.
- Windows: run
install on Windows.bat. macOS: right-clickinstall on macOS.commandand choose Open. Linux and Steam Deck: runinstall on Linux.shin a terminal. - Type 1 and press Enter to install. The installer usually finds the game by itself.
- If it asks for the game folder, point it at the folder that contains
Stardew Valley.exe(Windows) orStardew Valley.app(macOS). - Wait for the success message, then close the installer window.
Start the game through SMAPI
SMAPI only runs when you launch the game through it. On Steam, the cleanest way is a launch option:
- In Steam, right-click Stardew Valley → Properties → Launch Options.
- Paste the path to the SMAPI program in quotes, followed by
%command%. On a default Windows install:"C:\Program Files (x86)\Steam\steamapps\common\Stardew Valley\StardewModdingAPI.exe" %command% - Close the window and start the game from Steam as usual.
GOG: launch StardewModdingAPI.exe from the game folder, or add it to GOG Galaxy as an extra. macOS: run StardewModdingAPI inside the game folder. Steam Deck: switch to Desktop Mode, open the game folder in Dolphin, and add StardewModdingAPI as a non-Steam game — or set the same launch option in the game properties.
Check that it worked
- A black console window opens and stays open. That window is SMAPI; closing it closes the game.
- The first line of the console shows your SMAPI version and your game version.
- The game still starts normally, and mods you installed appear in the console as they load.
- The log is saved to the
ErrorLogsfolder. The log guide shows the path for each system.
The game says SMAPI is not installed
That message means the game started without SMAPI. The mods are fine; the launch path is wrong. Check these in order:
- Steam may have reset the launch options after an update. Open Properties → Launch Options and paste the SMAPI path again.
- The path in the launch options still points to an old game folder, or the quotes are missing around a path with spaces.
- You started the game from a desktop shortcut that points at
Stardew Valley.exeinstead of the SMAPI program. - You are on the Microsoft Store version, which SMAPI cannot patch.
After a Stardew Valley update
A game update can remove the SMAPI patch. Run the SMAPI installer again after every major game update, then start the game through SMAPI once to confirm. Your mods and saves are not touched by reinstalling SMAPI.
Questions
Does installing SMAPI delete my mods or saves?
No. SMAPI installs next to the game. Your Mods folder and saves stay where they are. Back up the Saves folder anyway before any big change.
Is SMAPI safe, and does it disable achievements?
SMAPI is open source and used by most Stardew mods. It does not disable achievements. Only install mods from their official pages.
Do I have to launch the game differently every time?
On Steam, no — the launch option applies every time you press Play. On GOG or macOS, launch the SMAPI program instead of the game program.
Do I need SMAPI if I only use one mod?
For almost every mod, yes. A few old mods replace game files directly (XNB mods) and do not need SMAPI, but they are rare and harder to remove.
The black window closes immediately. What now?
The game or SMAPI crashed before the window could stay open. Open SMAPI-crash.txt in the ErrorLogs folder, or follow the startup crash guide.