How to use debug commands in Sons of the Forest

How to use debug commands in Sons of the Forest
Images via Endnight Games

Written by 

Kiera Mills

Last updated 

20th Feb 2024 12:22

While the aim of Sons of the Forest is to survive the harsh conditions of a cannibal-inhabited island, you may also find fun in breaking it with debug commands. With mods, it's now possible to enter God mode, have permanently full stat bars, and even create multiple Kelvins to help you out around your base.

Read on as we tell you all about debug commands and install the relevant mod for the game. As always, use mods at your discretion, as they're not supported by the game developers and may cause game issues.

How to install debug commands

To install and use debug commands with Sons of the Forest, download the following mods:

Once everything is installed, do the following:

  • Run Thunderstore
  • Create a profile
  • Select 'Sons of the Forest'
  • Click 'Start Modded' in the top right of the window

You'll now be playing the modded version of the game that lets you use the debug menu.

All debug command cheats

Sons of the Forest debug commands list
Click to enlarge

Now you have the mod installed, to access the command menu press F1 in-game. This will bring up a list of all the available commands. It's also worth learning the item ID codes for any commands that require them.

The following is a list of the most popular commands and their effects:

General Commands

Debug Command Effect
godmode on Turns on God mode
godmode off Turns off God mode
buffstats Refills survival meters
regenhealth Refills health
addallitems Adds all items to your inventory
removeallitems Removes all items from inventory
additem [item name] Adds an item (whichever item you add in the brackets)
spawnworldobject x Spawns an item on you
instantbookbuild on Builds anything selected from the book
instantbookbuild off Turns off instant build cheat
showhud off Turns HUD off
showhud on Turns HUD on
superjump on Lets you super jump
superjump off Turns off the super jump
speedyrun on Enables a faster run speed
speedyrun off Turns off fast run speed
cavelight on Illuminates the area around you
cavelight off Turns off illumination command
createlight Adds a light source to the world
settimeofday [1-24] Changes the time of day
forcerain heavy Changes the weather to heavy rainy
forcerain sunny Changes the weather to sunny rain
season summer Changes the season to summer
season autumn Changes the season to autumn
season winter Changes the season to winter
season spring Changes the season to spring
save Saves your game

NPC and enemy commands

Debug Command Effect
addcharacter robby 1 Spawns an extra Kelvin to your game
addvirginia Spawn an extra Virginia to your game
aigodmode on Turns on God mode for companions
aigodmode off Turns off God mode for companions
aighostplayer on Stops enemies targeting you
aighostplayer off Enemies revert back to normal
aishowthoughts on Display AI paths/thoughts
killradius [number] Kills everything within the chosen numerical range

Sign Up To Our Newsletter

Get exclusive news, content, and discounts sent directly to your inbox

You've joined our newsletter. Thank you!
Sorry, there has been an issue in subscribing to the newsletter.

Check out our Sons of the Forest homepage for more guides. We've also covered how to run the game on Steam Deck, all caves in order, and where to find the golf course.

Kiera Mills
About the author
Kiera Mills
Kiera is a former GGRecon Guides Writer.
Why trust GGRecon?

Established in 2019, we don’t just cover games - we live them. Our expert team is full of dedicated gamers, qualified journalists, and industry insiders who collectively boast decades of experience covering gaming and esports. This deep-rooted expertise allows us to provide authoritative and nuanced perspectives first-hand from a team who are playing, and researching every game covered on our website. 

Our foundation is built on a profound commitment to editorial independence, ensuring our content remains free from external influence and advertising pressures and is held to the highest level of editorial conduct, integrity, and quality. 

Every article on GGRecon comes from rigorous research, informed analysis, and a passion for gaming that resonates with our readers. We uphold these standards through a transparent editorial policy, accessible here, which governs our processes and maintains our accountability.

Sons of the Forest endings explained
What does Strength do in Sons of the Forest?
How to make a gate in a defensive wall in Sons of the Forest
Sons of the Forest difficulty levels & differences explained
How to get the new ending in Sons of the Forest