
Garry's Mod
Dedicated Server Template
Garry's Mod is a physics sandbox. There aren't any predefined aims or goals. We give you the tools and leave you to play.
Garry's Mod Game Server Hosting
Deploy and manage your own Garry's Mod 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 Garry's Mod server administration simple and reliable.
Resource Requirements
Recommended Players
Performance Tiers
Economy
Small server, 2-12 players
Standard
Medium server with addons, 12-32 players
Pro
Large server, heavy addons, 32-64 players
Startup Command
Default
Standard Garry's Mod SRCDS startup
High Tickrate (100)
High performance tickrate. Better physics and addon responsiveness. Recommended for serious RP or combat servers.
Environment Variables
SERVER_NAME
RequiredServer Name
Server name displayed in the server browser
(empty)MAX_PLAYERS
RequiredMax Players
Maximum number of concurrent players
24STEAM_TOKEN
Game Server Login Token
Create one with App ID `4020` at [Steam GSLT Management](https://steamcommunity.com/dev/managegameservers) to publicly list your server.
(empty)SRCDS_MAP
RequiredMap
The default map for the server
gm_flatgrassGAMEMODE
RequiredGamemode
The gamemode for the server (e.g. sandbox, terrortown, prophunt)
sandboxWORKSHOP_ID
Workshop Collection ID
Workshop collection ID (the numbers at the end of the collection URL)
(empty)TICKRATE
RequiredTickrate
Server tickrate. Higher values increase precision at the cost of CPU usage.
22LUA_REFRESH
Lua Refresh
Enable Lua auto-refresh for development
0AUTO_UPDATE
Auto Update
Automatically update the game server via SteamCMD on startup.
1STEAM_USER
Read OnlySteam Username
Steam username for authentication. Leave empty for anonymous login.
(empty)STEAM_PASS
Read OnlySteam Password
Steam password for authentication. Leave empty for anonymous login.
(empty)STEAM_AUTH
Read OnlySteam Auth Code
Steam Guard authentication code (if required)
(empty)EXTRA_FLAGS
Read OnlyExtra SteamCMD Flags
Additional SteamCMD flags
(empty)Lifecycle Scripts
Post-Install Setup
Creates default workshop.lua and server.cfg files after SteamCMD install
Configuration Files
Server Config
Main server configuration file for Garry's Mod
garrysmod/cfg/server.cfgfileContainer Configuration
Docker Image
ghcr.io/ptero-eggs/games:source
Technical Profile
Template ID
garrys-mod
Author
GameCP Team
Last Updated
March 13, 2026
Status
ActiveConfiguration Metadata
Information about the origin and version of this game configuration.