RustSettings & Admin
Disable NPCs on Your Rust Server
Switch off scientists and other NPC spawns on your Rust server with the ai.npc_enable convar, and keep the change after a restart.
Rust spawns NPCs at junkpiles, on the Cargo Ship and in Military Tunnels, among other places. One convar switches the spawning off, and a few narrower ones let you thin them out instead. This guide covers the console route, how to make it survive a restart, and how to check that it did.
Checked against Rust server build 2635, October 2026, using the game's own convar listing (find npc in the Console).
Turn NPC spawning off
- Open the Console tab on your Rust server.
- Type this and press Enter:
ai.npc_enable falseThe game describes the setting as "If npc_enable is set to false then npcs won't spawn. (default: true)". Type ai.npc_enable on its own to read the current value back.
The Console route lasts until the next restart. The game's description covers NPC spawning only.
Keep it after a restart
Facepunch's server guide says the server reads server.cfg at startup, and that you leave the + off the variables in that file. Our servers don't have the file until you make it, so create it:
- Open the File Manager and go to
server/rust/cfg. - Create a file called
server.cfgthere, or upload one. - Add the line
ai.npc_enable falseand save. - Restart the server.
- When it is back, type
ai.npc_enablein the Console. It reports False, where the default is True. We tested exactly this on our own Rust server: with the line inserver.cfg,ai.npc_enableread False after a restart.
Rust server.cfg and admin commands has more on the file.
Facepunch also warns that some variables don't take effect from the config or the command line and must be set once the server is running. We saw one of those: an env.time line in server.cfg did not hold after boot. If a convar still reports its old value after a restart, Additional Arguments is the other place to put it:
- Open the Startup tab and find Additional Arguments.
- Enter
+ai.npc_enable false(this field takes a+in front of the convar) and save. - Restart and check the value again.
A + convar in Additional Arguments worked on our test server for a different setting, wipetimer.wipetimezone. For ai.npc_enable itself, server.cfg is the route we tested.
Thin them out instead
If you want fewer NPCs rather than none, these convars come from the same listing. The last column is what build 2635 reported:
Set them the same way: Console to try, then server.cfg or Additional Arguments to keep.
What this covers
The convar is about NPCs, as the game's description says. This guide does not claim it changes wildlife such as bears and wolves.
Try the change when the server is quiet and tell your players, since the monuments will play differently. How to improve Rust server performance covers other ways to ease a busy server.
Common problems
- The Console says the command was not found. Check the spelling: it is
ai.npc_enable, with an underscore. - It is
Trueagain after a restart. Console changes live in memory only. Add it toserver.cfgor Additional Arguments as above. - NPCs still appear. Look at which place they spawn. Junkpile, Cargo Ship and Military Tunnels each have their own convar in the table.
Related guides

Change Deep Sea Settings on Rust
Use deepsea settings in server.cfg to control when Rust's deep sea opens, what spawns there, who can enter and lag while it opens.
4 min read
Enable Trains on Your Rust Server
Above-ground rail only generates on maps of 4250 or larger. Set World Size, wipe, and check the train convars the game lists.
3 min read
Change Team Size on Your Rust Server
Set the largest team your Rust server allows with relationshipmanager.maxteamsize, from the Console now or server.cfg for good.
3 min read
