Home › Gaming Content Hub › SMAPI
What is SMAPI? The modding API for Stardew Valley
SMAPI is the open-source modding framework and API for Stardew Valley that lets you play the game with mods. It installs safely alongside the game's executable, does not change any of your game files, and it is the reason code mods for Stardew Valley exist at all.
SMAPI in one paragraph
SMAPI (github.com/Pathoschild/SMAPI) is the mod loader and modding API for Stardew Valley. Stardew Valley has no built-in mod support for code mods, so SMAPI fills that gap: it loads mods when the game starts, gives them APIs and events to interact with the game, and keeps the whole thing stable. It is installed alongside the game's executable and does not change any of your game files, so removing it returns the game to normal.
The project appeared on GitHub in March 2016 and passed 2,800 stars by early December 2026. It is released under the GNU Lesser General Public License v3.0, free and open source, with 164 releases behind it. The documentation lives at smapi.io, the player guide is on the Stardew Valley Wiki, and the project is translated into many languages by its community.
What SMAPI actually does
SMAPI does seven things, and the README lists them all. Four of them are the core of the tool; the rest are what keep a modded game from falling over.
1. Loads mods into the game
SMAPI loads mods when the game is starting up so they can interact with it. Code mods are not possible without SMAPI to load them — it is the bridge between the game and everything the community has built for it.
2. Provides APIs and events for mods
SMAPI provides APIs and events which let mods interact with the game in ways they otherwise could not: reading game state, reacting to what happens, changing behaviour. Mod authors build on these APIs instead of hacking the game directly.
3. Rewrites mods for compatibility
SMAPI rewrites mods' compiled code before loading them, so they work on Linux, macOS and Windows without the mods needing to handle the differences between the versions of the game. In some cases it also rewrites code broken by a game update, so the mod does not break when Stardew Valley updates.
4. Keeps your game safe
SMAPI intercepts errors, shows the error info in the SMAPI console, and in most cases automatically recovers the game — that prevents mods from crashing the game, and makes it possible to troubleshoot errors in the game itself that would otherwise show a generic “program has stopped working” message. It also automatically fixes save data in some cases when a load would crash, for example due to a custom location or NPC mod that was removed.
Download and setup
SMAPI installs alongside the game's executable and does not change any game files. The player guide on the Stardew Valley Wiki walks through installing it, and the modding documentation at smapi.io covers everything for players and mod authors. SMAPI also looks after your mods once it is running: it automatically checks for new versions of your installed mods and notifies you when any are available, and it automatically detects outdated or broken code in mods and safely disables them before they cause problems. It even backs up your saves — a daily backup, keeping ten backups, through the bundled Save Backup mod.
What it costs
SMAPI is free — LGPL-3.0, no subscription, no paid version. Stardew Valley itself is a separate product you already own; SMAPI is the free loader that makes its mods work.
Who SMAPI is for
Stardew Valley players who use mods
You want quality-of-life mods, new content, new crops, new NPCs or a new look for the valley. SMAPI is the loader every one of those mods runs on.
Mod authors
APIs and events to build on, documentation at smapi.io, and a loader that rewrites your mod for Linux, macOS and Windows so you do not have to.
Players on Linux, macOS and Windows
One loader across all three platforms, with mods rewritten to work on each — no separate setup per operating system.
Players who want their saves safe
Daily automatic save backups, ten kept, plus error interception and automatic save fixes when a load would otherwise crash.
SMAPI at a glance
- Project: Pathoschild/SMAPI — “The modding API for Stardew Valley”
- Licence: LGPL-3.0 — free and open source
- Popularity: over 2,800 GitHub stars by early December 2026 (created March 2016)
- Language: C#
- Platforms: Linux, macOS and Windows — mods rewritten for each
- Safety: error interception and recovery, automatic save fixes, daily save backups (ten kept)
- Docs: modding documentation at smapi.io, player guide on the Stardew Valley Wiki
Honest limits
SMAPI is a loader, not the game: you need Stardew Valley itself, and SMAPI does not change your game files — it only loads what you add. Its protections are real but not absolute: it recovers the game “in most cases”, fixes saves “in some cases”, and disables mods that are outdated or broken — but a bad mod can still cause trouble, and the update and compatibility checks only help if you keep SMAPI and your mods up to date. Mods themselves are third-party work, made by the community, not by the Stardew Valley developers. And while SMAPI is translated into many languages, several translations are only partly complete.
Want a community hub for a game like Stardew Valley?
Cozy-game communities run on guides, mod lists and shared farms. Our Gaming Content Hub service builds fan sites, wikis, guides and mod listings for games with real players behind them. Content hubs from £149, with £349 and £599 packages for larger builds. Tell us the game and the community — we build the hub.
Have a game idea?
Tell us the idea — a sentence is enough. We will tell you what it takes and what it costs, honestly.