Don’t Starve Together (DST) has a Lua command console enabled by default. Press ~ on an English keyboard, enter a command, and press Enter. Use c_spawn to create an entity in the world, c_give to place an inventory item on your character, and remote mode (hold Ctrl while the console is open) for commands that require host or dedicated-server administrator authority. The guide below explains the exact syntax, permissions, dedicated-server setup, and recovery precautions.
What the DST console can do
The console is an in-game Lua command line for changing the current session. Depending on the command and your permissions, it can create prefabs, alter player statistics, unlock recipes, reveal information, manage players, save or stop a server, and roll the world back to an earlier save. It is a live administrative tool, not an achievement system: in a shared world, its effects can change everybody’s session.
As an Amazon Associate I earn from qualifying purchases.
Commands generally apply to the loaded world and usually need to be entered again after you load a world. Treat copied commands as version- and build-sensitive. Check the prefab spelling and quotation marks, and test destructive operations in a disposable world or after making a backup.
Do these 3 things before closing this tab:
1Fix the driver behind crashes, sound loss and screen glitches2Repair Windows errors before they cause bigger problems3Scan for outdated or missing drivers - takes under a minuteHow to open and enable the console
Open it in-game
- Launch DST and enter the world in which you have permission to run commands.
- Press
~(tilde) on the default English keyboard layout. - Type a Lua console command and press Enter.
The console is enabled by default. If your keyboard layout does not use tilde in the expected position, open the game’s Controls menu and assign a different console key.
#1 Best Overall
- BLUE LIGHT BLOCKING GLASSES: Our blue light glasses for women boast UV400 protection, blocking harmful blue rays from computer screens. With these bluelight glasses women, you can enjoy gaming, reading, or watching TV with no worries of eye strain.
- EYE RELIEF: Our blue light glasses are engineered to reduce blurry vision or strain caused by prolonged screen time. These womens blue light glasses aid in better sleep by preventing blue light from disrupting your natural sleep cycle, helping you fall asleep faster and enjoy a more restful night's sleep, making them the perfect christmas present.
- COMFORTABLE: Crafted from durable material, our trendy blue light glasses for woman or blue light glasses men ensure long-lasting comfort. The high-transmittance lenses accessories, gamer gifts for men, help keep your eyes relaxed. Perfect stocking stuffers, gifts for gamers men, christmas gifts for men, halloween costumes.
- LIGHTWEIGHT: These clear blue light glasses feature a lightweight frame, meaning they’ll stay comfy for long-term wear. Perfect as blue blockers glasses for women or mens blue light glasses, these non-prescription fake glasses for men can be worn throughout the day. The blue light blocking glasses women feature polycarbonate HD lenses, which are anti-reflective and restore true color.
- WORRY-FREE PURCHASE: If you experience any issues, our support team is ready to assist you quickly. These are the perfect costume glasses for cosplay dressing up.
Re-enable a disabled console on a client
If a local configuration has disabled the console, edit the client configuration while the game is closed. Add console_enabled = true beneath the [MISC] section.
| Operating system | Configuration file |
|---|---|
| Windows | DocumentsKleiDoNotStarveTogetherclient.ini |
| macOS | DocumentsKleiDoNotStarveTogetherclient.ini |
| Linux | ~/.klei/DoNotStarve/client.ini |
Preserve the existing file structure: place the setting under [MISC], save the file, and restart DST. If the file contains another value for this setting, replace that value rather than creating conflicting entries.
Authority: client, host, and remote administrator
A command can be syntactically correct yet appear to do nothing when it is sent from the wrong authority. Local player and some informational operations can run on a client, but most world, server, or other-player changes require the host. On a dedicated server, they require an account with administrator privileges.
Free tools Windows power users keep installed
One-click scans. No signup required.
Open the console and hold Ctrl to switch to remote command mode before submitting an operation that targets the server or another player. The command reference specifically notes that map-reveal operations can be an exception and may remain local. If you are unsure, use remote mode and verify the result in the world.
| Target | Typical authority | Remote mode | Scope |
|---|---|---|---|
| Your local player | Client for commands that only alter your character | Usually not required | One player |
| Spawned entity or world object | Host or dedicated-server admin | Usually required when you are not host | World or shard |
| Another player | Host or dedicated-server admin | Required when connected remotely | Selected player |
| Server state | Host or dedicated-server admin | Required for a remote administrator | Server, shard, or cluster |
Spawn items and entities
c_spawn: create a prefab in the world
Use c_spawn when you want an entity or object to appear at the cursor or target location. The amount is optional; omitting it creates one.
Rank #2
- WINDEX GAMING WIPES: effortlessly clean all your gaming gear and gaming electronics in one easy step with our new Windex Gaming Wipes
- AMMONIA FREE: our ammonia-free formula is safe to use on all of your favorite gaming equipment like consoles, headsets, controllers, screens, keyboards, and more
- PRE-MOISTENED WIPES: each wipe instantly removes dust, dirt, and stubborn smudges and fingerprints leaving a streak-free shine
- ANTI-STATIC: great for cleaning and wiping down your gaming gear and electronics leaving behind no visible residue
- COMPACT RESEALABLE PACKAGE: store your pack of Windex Gaming Wipes anywhere in your home for whenever a quick and easy wipedown is needed
c_spawn("prefab", amount)
-- one prefab
c_spawn("prefab")
-- several copies
c_spawn("prefab", 20)
The string must be the prefab’s exact internal name. A misspelling or an incorrect quote prevents the intended object from appearing. Because this command creates something in the world, it is the appropriate choice for entities or structures that cannot be carried in an inventory.
c_give: put an inventory item on your character
Use c_give for a prefab that is compatible with the player’s inventory. It places the specified quantity directly in your inventory.
Outdated Drivers Are Slowing You Down
One free scan finds every outdated or missing driver and matches the right update for your exact hardware.Free scan · exact hardware matchPC Slower Than It Used to Be?
A free scan shows the junk files, broken settings and background clutter dragging Windows down - then fixes them in one click.Free scan · Windows 10 & 11c_give("prefab", amount)
-- one item
c_give("prefab")
-- a stack or quantity
c_give("prefab", 20)
c_give is not a general entity spawner. If the object cannot be stored in an inventory, use c_spawn instead. Both commands affect the current session and should be run again after a world load if you need the same result in a later session.
Unlock recipes and change player stats
Toggle free crafting
c_freecrafting() grants access to all recipes for the player. It is a toggle: run it once to enable the effect and run the same command again to disable it.
c_freecrafting()
Because it changes crafting access rather than depositing materials, use c_give for inventory items and c_spawn for world entities.
Rank #3
- Ergonomic & Adjustable Design: Fight "text neck" and improve your posture. Designed for comfort, it offers an adjustable height (7.1in-8.5in) (1.4in adjustable range) and angle (5°-85°) Please note: cell phone stand is only 9 inches tall—the length of a standard pencil
- Without blocking subtitles Perfect for office desk Tiktok Face Time Zoom video—this is the ultimate kitchen desk essential for phones! Perfect viewing experience while reducing neck back strain, A must-have for gamers streamers desk, and anyone who values both style and support!
- Sleek & Stable Design fits Otterbox Case: Say goodbye to bent cables, tangles, and tip-overs! LISEN’s stylish adjustable desk phone holder features a built-in charging hole and smart cable management, keeping your phone secure and your workspace clutter-free cool gadgets for men
- ANTI-SLIP DESIGN free hands: The under 10.00 items easy gadgets back and the bottom of this kitchen essentials for women are fully covered by anti-skid silicone, which LISEN stand up desk decor can provide maximum protection device from any scratches and slides
- Your Perfect Viewing Companion:If your product arrives damaged or breaks within 365 days, reach out to LISEN for a quick and hassle-free solution. Struggling with assembly, like tightening the screw? We’ve got your back! Your experience matters to us. (Product including: phone Holder stand*1, screw*1, hexagon screwdriver*1, specification*1)
Set maximum health, sanity, and hunger
The following direct Lua statements change the maximum value of the corresponding component for ThePlayer:
ThePlayer.components.health:SetMaxHealth(value)
ThePlayer.components.sanity:SetMax(value)
ThePlayer.components.hunger:SetMax(value)
Replace value with the number you want. These are direct player-component changes, so use them with the same care as any other live stat edit; they are not a substitute for a normal in-game recovery mechanic.
Remote commands for players and maps
Find player indexes
To administer a particular connected player, first list everyone and note the index shown for the target:
c_listallplayers()
On a remote client or a dedicated server, hold Ctrl while the console is open so the command is sent remotely. Without the required host or administrator authority, the command may affect only the local client or appear to have no effect.
Move or remove a selected player
Use the index from c_listallplayers() in the player-management commands below:
Quick wins for a faster PC:
Repair Windows errors before they cause bigger problemsFix Now →Fix the driver behind crashes, sound loss and screen glitchesFind Drivers →Clear out junk files and repair common Windows errorsFree Scan →Rank #4
- Easy Installation: Our gaming lights have been designed to enhance your entertainment experience. Simply position the led light bar next to your TV or game console to create a game room environment with ease. They come with USB power and a 60 inch cord for direct mounting and mobility
- Audio Syncing & Extensive Mode: The built-in high-sensitivity music sensor allows you to sync the TV led lights to your favorite music. Lights react and move to the beat of music, film and game audio, creating an incredible immersive sound and light experience – and all without the need for an additional hub. You can choose from 64+ patterns, including strobe, illusion, jump, energy, gradient, running, chasing, fluttering mode etc. Each mode can be applied to different scenes
- 64+ Chasing IC+RGB & W Effect: The independent control design of IC+RGB and white all-in-one multifunctional rgbw led bar lights monitor backlight allows you to easily switch the led lights for desk between IC+RGB and white to enjoy a variety of lighting effects, you can choose white lighting mode with high brightness for better illumination when working, etc. Choose IC+RGB lighting mode when you need to create an entertaining atmosphere for the light show, 16 million colours of Color changing rgb light bar let you dance to the beat and create a dynamic party atmosphere
- Dynamic and Dimmable Lights: 1%-full brightness free brightness adjustment gives you the flexibility to adjust dimmable led light bar for room decorations or a variety of occasions
- USB Powered: USB light bars for room can be powered by powernank, usb charger, TV, Monitor, laptop PC mainframe, making behind TV led lighting bar easy to install in any location.TV led lights are powered by the TV usb interface / PC mainframe, can be turned on/off synchronously with TV / PC
c_move(AllPlayers[number])
c_despawn(AllPlayers[number])
c_move moves the selected player to the command’s destination context, while c_despawn removes that player’s current character from the world. Confirm the index before executing either command, especially on a populated server.
Map-reveal commands
Map-reveal operations are among the documented exceptions that may work locally rather than through remote mode. If a reveal command does not produce the expected result in multiplayer, check whether the console is in the correct mode and whether your account has the authority required by that operation.
Server administration command reference
These commands control saved state, shutdown behavior, joining, announcements, and player sessions. Run them from the host or as a dedicated-server administrator; use remote mode when the console is on a non-host client.
| Purpose | Command | Behavior |
|---|---|---|
| Save immediately | c_save() |
Writes the current world state. |
| Save and shut down | c_shutdown(true) |
Saves before stopping the server. |
| Shut down without saving | c_shutdown(false) |
Stops without making a new save. |
| Default shutdown | c_shutdown() |
Equivalent to c_shutdown(true); it saves before exiting. |
| Roll back one save | c_rollback() |
Restores the previous save. |
| Roll back several saves | c_rollback(3) |
Rolls back three saves; the number is measured in saves, not minutes. |
| Broadcast a message | c_announce("Server restarting soon") |
Displays an announcement to connected players. |
| Allow new connections | TheNet:SetAllowIncomingConnections(true) |
Enables joining. |
| Block new connections | TheNet:SetAllowIncomingConnections(false) |
Stops new joins while existing players can remain connected. |
| List players | c_listallplayers() |
Shows connected players and the indexes used by management commands. |
| Move a player | c_move(AllPlayers[number]) |
Moves the player represented by number. |
| Despawn a player | c_despawn(AllPlayers[number]) |
Removes that player’s current character. |
Dedicated-server console configuration
Dedicated DST worlds divide configuration between a cluster-wide file and shard-specific files. In cluster.ini, the [MISC] section can contain:
[MISC]
console_enabled = true
Settings that apply to the whole cluster belong in cluster.ini. Settings for an individual shard belong in that shard’s server.ini, such as Master/server.ini or Caves/server.ini. Do not put a shard-only value in the wrong file and expect it to affect every shard.
Best Value
- Compatible with Wide Screens - To ensure compatibility with the dual monitor mount, your each monitor must meet three conditions at the same time: First, computer screens size range: 13 to 32 inches. Second, screen weight range: 4.4 to 19.8 lbs. Third, the back of the monitor screen must have VESA mounting holes with a pitch of 75x75mm or 100x100mm.
- Regarding the compatibility with desks - Your desk must meet three conditions at the same time: First, desk material: Only wooden desks are recommended, plastic or glass desks cannot be used. Second, desk thickness range: 0.59" - 3.54". Third, the bottom of the desk should not have any cross beams or panels, as this will interfere with installation. We recommend carefully checking that your desk and monitors meets all above conditions before purchasing.
- Dual C-Clamp Hold - Worried your dual monitors might wobble or slip? Our upgraded base uses a larger platform plus a dual C-clamp structure to lock the dual monitor arm firmly to your desk. Each arm safely keeps your screens steady while you type, click and game—no shaking, no sliding, just a clean and secure setup you can trust every day. It also provides Grommet Mounting installation choice, both options ensure stable and secure fixation for your 0.59" - 3.54" desk.
- Full-Motion Adjustment For Comfortable View - Pull the screen closer when you’re deep in a spreadsheet, push it back to watch videos, or rotate to portrait for coding — moving everything smoothly with just one hand. The monitor stand offers +85°/-50° tilt, ±90° swivel and 360° rotation. Raise your monitor up to 15.75″ to support a healthy sitting posture. Whether you’re working from home, gaming through the night, or switching between video calls and documents, getting the screens to your natural line of sight helps relieve neck, shoulder and back strain so you can stay focused longer with less fatigue.
- Keep Your Desk Organized: By lifting both screens off the desktop, this dual monitor stand opens up valuable space for your keyboard, notebook, docking station or a simple, clutter-free work area. Built-in cable management guides wires along the arms, keeping cords out of sight and out of the way. Enjoy a tidy, modern workstation that looks as good as it feels to use.
- Stop the affected dedicated server before editing configuration.
- Back up
cluster.iniand the relevant shard directory. - Set
console_enabled = trueunder[MISC]incluster.ini. - Save the file and restart the affected shard or cluster.
- Connect, open the console, and confirm that an administrator command runs in remote mode.
Dedicated-server setup and platform support change over time. The historical Klei setup guidance did not support Xbox or PlayStation dedicated servers in its 2016 instructions, so verify current platform documentation before assuming that a console or console edition can host a dedicated server.
If you would rather not run the dedicated server yourself, you can host a Don’t Starve Together world on Godlike.Host. It offers a game panel with a task scheduler and sub-users, SFTP/FTP access for editing config files, and up to three free backups a day with restore, which helps before rollbacks. See the current plans.
Safety, persistence, and recovery
- Save first: Run
c_save()before rollback or world-regeneration work. The commandsc_reset,c_regenerateworld, and rollback can discard progress or replace world state. - Warn players: Announce planned shutdowns, join restrictions, or destructive changes before applying them to a shared world.
- Use a test world: Confirm unfamiliar prefab names and command behavior in a disposable world before using them on a long-running server.
- Expect session scope: Most commands need to be entered again after loading a world; do not assume a previous spawn, recipe toggle, or stat edit will be recreated automatically.
- Keep exact syntax: Prefab names are case- and spelling-sensitive in practice. Keep quotation marks around the prefab string and use a numeric amount where the command accepts one.
Troubleshooting commands that do not work
The tilde key opens nothing
Check the Controls menu for the current console binding. If the console was disabled in a local configuration, add console_enabled = true under [MISC] in the appropriate client file, then restart the game.
The Tool Desk
Outbyte PC Repair FREEClear out junk files and repair common Windows errorsFree Scan →Outbyte Driver Updater FREEScan for outdated or missing drivers - takes under a minuteDriver Scan →A command works locally but not on the server
Hold Ctrl with the console open to enter remote mode. Then confirm that you are the world host or a recognized dedicated-server administrator. A non-admin client cannot use most server, world, or other-player commands simply by typing them.
The item or entity does not appear
Check the prefab string character by character and ensure you chose the right command: c_give requires an inventory-compatible prefab, while c_spawn creates an object in the world. Omit the amount for one copy or provide a valid number for multiple copies.
The change disappeared after restarting or loading
Re-enter the command after loading the world. The command reference says console commands generally do not persist across world loads, so a one-time command should not be treated as a permanent server setting.
The wrong player was moved or despawned
Run c_listallplayers() again immediately before the action, match the intended player to the displayed index, and use remote mode with administrator authority. Player indexes can change as people join or leave.
Quick Recap
A reliable command workflow
- Identify the target: Decide whether the command affects your character, an inventory item, a world entity, a player, a shard, or the whole server.
- Check authority: If the target is not exclusively your local character, become the host or confirm dedicated-server admin rights.
- Save when risk is involved: Use
c_save()before rollback, regeneration, or any operation that could remove progress. - Open the console: Press
~or your customized key. - Choose remote mode: Hold
Ctrlfor host/server/player operations sent from a remote client. - Enter exact syntax: Keep quotes around prefab names, supply a numeric amount where needed, and press Enter once.
- Verify the result: Check the inventory, world, player list, or server message before repeating a command.
- Tell other players: Explain changes that affect the shared session, particularly free crafting, stat edits, despawns, rollbacks, and shutdowns.
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.




