
Stardew Valley
Dedicated Server Template
Stardew Valley is a farming simulation RPG with cooperative multiplayer. Host a dedicated server so friends can join your farm anytime, even when you're offline. Requires SMAPI (Stardew Modding API) and server-side mods for headless operation. Supports up to 10 farmhands by default.
Stardew Valley Game Server Hosting
Deploy and manage your own Stardew Valley dedicated server with GameCP's free game server control panel. This template provides a production-ready server configuration with one-click installation, automatic updates via SteamCMD, and full environment variable management. Whether you're hosting for a small group of friends or running a large community server, GameCP makes Stardew Valley server administration simple and reliable.
Resource Requirements
+64 MiB per player
Recommended Players
Performance Tiers
Economy
Small farm, 1-4 players
Standard
Medium farm, 4-8 players
Pro
Large farm, 8-10 players with mods
Startup Command
Default
Stardew Valley dedicated server via SMAPI
Environment Variables
SERVER_NAME
RequiredServer Name
A friendly name for your Stardew Valley server
GameCP Stardew FarmMAX_PLAYERS
RequiredMax Players
Maximum number of farmhands that can join (default: 4, max varies by mod config)
4SLEEP_TIME
Auto Sleep Time
Time of day (in-game clock) when the host character auto-sleeps to advance the day. 2200 = 10 PM, 2400 = midnight, 2600 = 2 AM.
2200FESTIVALS_ON
Enable Festivals
Enable or disable in-game festivals. When enabled, the server will pause for players at festival events.
trueCLIENTS_CAN_PAUSE
Clients Can Pause
Allow farmhands to pause the server. Disable for always-on operation.
falsePROFIT_MARGIN
Profit Margin
Profit margin percentage for crop/item sales. Lower values make earning money harder.
100INVITE_CODE
Invite Code
Invite code for players to join. This is auto-generated by the game but can be shared once the server starts. Check the server log for the invite code.
(empty)SRCDS_APPID
RequiredRead OnlySteam App ID
Steam App ID for Stardew Valley
413150AUTO_UPDATE
Auto Update
Automatically update the game on restart. Set to 1 to enable, 0 to disable.
1Configuration Files
Always On Server Config
Configuration for the Always On Server mod. Controls auto-sleep time, festivals, and timeout settings.
Mods/AlwaysOnServer/config.jsonfileContainer Configuration
Docker Image
ghcr.io/gamecp/runtimes:stardew
Technical Profile
Template ID
stardew-valley
Author
GameCP Team
Last Updated
March 15, 2026
Status
ActiveConfiguration Metadata
Information about the origin and version of this game configuration.
Author
GameCP Team
Version
1
Source
gamecp
Steam Links
originalAuthor
metrogamelab
originalSource
https://github.com/metrogamelab/pterodactyl-server-stardew-valley