Stardew Valley Cheats & Glitches Guide: Every Code, Exploit, and Trick to Power‑Up Your Farm
Let’s be real for a second. We all love Stardew Valley. It is the ultimate cozy game, a digital escape where the biggest stress is deciding whether to plant pumpkins or cranberries. But let’s be honest, sometimes the grind just hits different. You are three years in, you still haven’t found a Prismatic Shard, and your energy bar is barely pushing past noon. That is when the temptation sets in. You start wondering if there are Stardew Valley cheats to help speed things up.
Well, you are in luck. While the developer ConcernedApe didn’t exactly put a “Big Head Mode” option in the menu, the game is absolutely packed with exploits, glitches, and debug commands that act just like classic cheat codes. Whether you want infinite money, endless energy, or just want to summon rare items out of thin air, we have gathered every dirty little trick in the book. Just don’t blame us if the pixelated townspeople judge your newfound wealth.
The Infamous Item Spawning Cheat
If you have been around the Stardew Valley community for a while, you probably know about the name glitch. This is easily the most popular cheat because it is hilarious and requires zero technical skill. The game code reacts when specific numbers in brackets appear in a text box.
To use this Stardew Valley cheat, all you have to do is name your character, your pet, or a farm animal using specific Item IDs in brackets. For example, if you name a chicken [74], a Prismatic Shard will appear in your inventory every time Marnie says the chicken’s name. You can chain up to three codes at once.
Here are the best Item IDs to break the economy wide open:
- [74] Prismatic Shard
- [163] Legend Fish
- [434] Stardrop
- [72] Diamond
- [337] Iridium Bar
- [645] Iridium Sprinkler
- [499] Ancient Seeds
So, if you name yourself [74][163][434], you are going to be a very rich farmer very quickly. It is arguably the most efficient cheat in the game.
The Infinite Energy Glitch

Running out of energy at 1 p.m. is a drag. If you want to water your massive crop fields without passing out, there is a cheeky exploit involving the Spa.
Head to the Spa and walk into the hallway. Stand near the door and swing your sword. As your character swings, they inch forward slightly. Keep swinging until you clip through the wall and go out of bounds. Walk towards the pool area while staying out of bounds, put a fence post in the water, and touch it. The game will think you are swimming even when you walk back onto dry land. The result? You stop losing energy when using tools. It is a weird cheat, but it works wonders for productivity.
How to Get the Galaxy Sword Early
Getting the Galaxy Sword usually requires finding a Prismatic Shard and taking it to the desert pillars. It is a whole ordeal. But if you want the best weapon early, there is a cheat for that too.
Buy the Catalog from Pierre’s General Store. Order the light green wallpaper (it doesn’t have a name, but look for the plain green one). For some reason, the game’s code confuses this specific wallpaper with a Prismatic Shard. Take your wallpaper to the three pillars in the Calico Desert, hold it up, and boom. The Galaxy Sword is yours.
Fishing and Sleep Cheats
Fishing is tough, and the 2 a.m. pass-out timer is brutal. Luckily, the Journal is your best friend for these cheats.
Infinite Fishing Time: Cast your line, then immediately open your Journal. Time stops while the menu is open, but the fish keeps biting. Wait for the sound of a bite, close the Journal, and reel it in. You can catch unlimited fish in a single in-game hour.
Stay Up Past 2 A.M.: When your character does the yawning animation at 2 a.m., open your Journal immediately. It cancels the pass-out animation. You will have to keep doing it every few seconds, but it lets you sprint home without passing out and losing gold.
Enabling Debug Commands (PC Only)

If you are playing on PC and want to get serious, you can enable official debug cheats. This requires editing your save file, so proceed with caution.
- Press the Windows key + R and type %appdata%.
- Find the Stardew Valley folder, then the Saves folder.
- Open your save file (it looks like FarmName_12345) with Notepad.
- Press Ctrl + F and search for allowChatCheats.
- Change “false” to “true”.
- Save and close.
Now, launch the game and press T to open the chat box. You can now type in direct cheat commands.
Best Debug Cheat Commands
- /debug gold [amount]: Gives you money.
- /debug clear: Wipes your inventory (careful with this one!).
- /debug heal: Refills your health.
- /debug energize: Refills your energy.
- /debug kill: Weirdly, this knocks you out.
- /debug warp [location]: Teleports you instantly (e.g., /debug warp Farm).
- /debug levelup [skill]: Boosts your farming, mining, or fishing levels instantly.
Whether you are a purist who hates shortcuts or a chaotic farmer who names their firstborn child [74] for a Prismatic Shard, these Stardew Valley cheats offer a whole new way to play. Sometimes you just want to build a mega-farm without the back-breaking labor, and that is totally fine by us.
