Stardew Valley
Stardew Valley
GameCP Officialsandbox
Verified

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.

v4
3/15/2026

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.

Free Control PanelOne-Click DeployAuto UpdatesDocker Containerized
Full Hosting Guide

Ready to host Stardew Valley?

Read our complete step-by-step guide covering installation, configuration, performance tuning, and getting your server online in minutes.

Resource Requirements

CPU Cores
2
Memory
1.0 GB(max 4 GB)
Storage
3 GB

+64 MiB per player

Recommended Players

4
Recommended
Min: 1Max: 10

Performance Tiers

Economy

Small farm, 1-4 players

RAM1 GB
CPU Shares1024
Recommended

Standard

Medium farm, 4-8 players

RAM2 GB
CPU Shares2048

Pro

Large farm, 8-10 players with mods

RAM3 GB
CPU Shares3072

Startup Command

#!/bin/bashBash shell with full features

Default

Stardew Valley dedicated server via SMAPI

Default

Environment Variables

SERVER_NAME

Required

Server Name

A friendly name for your Stardew Valley server

Default
GameCP Stardew Farm

MAX_PLAYERS

Required

Max Players

Maximum number of farmhands that can join (default: 4, max varies by mod config)

Default
4

SLEEP_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.

Default
2200

FESTIVALS_ON

Enable Festivals

Enable or disable in-game festivals. When enabled, the server will pause for players at festival events.

Default
true

CLIENTS_CAN_PAUSE

Clients Can Pause

Allow farmhands to pause the server. Disable for always-on operation.

Default
false

PROFIT_MARGIN

Profit Margin

Profit margin percentage for crop/item sales. Lower values make earning money harder.

Default
100

INVITE_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.

Default
(empty)

SRCDS_APPID

RequiredRead Only

Steam App ID

Steam App ID for Stardew Valley

Default
413150

AUTO_UPDATE

Auto Update

Automatically update the game on restart. Set to 1 to enable, 0 to disable.

Default
1

Configuration Files

Always On Server Config

Configuration for the Always On Server mod. Controls auto-sleep time, festivals, and timeout settings.

Mods/AlwaysOnServer/config.jsonfile
4 fields

Container Configuration

Docker Image

ghcr.io/gamecp/runtimes:stardew

Technical Profile

Template ID

stardew-valley

Author

GameCP Team

Last Updated

March 15, 2026

Status

Active

Configuration Metadata

Information about the origin and version of this game configuration.

Author

GameCP Team

Version

1

Source

gamecp

originalAuthor

metrogamelab

originalSource

https://github.com/metrogamelab/pterodactyl-server-stardew-valley