With the ZapX AI Agent, you can manage your Barotrauma server via chat. Describe what you want, for example, “Set the game mode to Campaign and enable the Karma system” or “Why doesn’t my server show up in the server list?” The agent reads the console, logs, serversettings.xml, and your mod list, finds the cause, and prepares the appropriate changes. It always asks for your approval before changing anything on your server.
In this guide, you’ll learn what the agent can do on your Barotrauma server, how approvals work, and what its limitations are.
- ZapX Pass: The ZapX AI Agent is included with every ZapX Pass tier, starting with Plus.
- AI quota: Each tier includes a monthly AI quota. You can see how much you’ve used in the chat, next to the input field. Once it runs out, access will automatically resume on the renewal date.
- Shared server: If someone has shared their server with you, the owner can also give you access to the agent. It will then use their ZapX Pass.
Open your Barotrauma server in the web interface and click ZapX AI Agent in the sidebar. The chat already knows about your server, so you don’t need to explain anything. Just describe what you need in your own words.
The agent distinguishes between reading and making changes:
- Reading (viewing the console, logs, files, settings, savegames, and backups) is done right away, without asking.
- Making changes (setting startup parameters, writing files, updating Workshop mods, restarting the server, or restoring a backup) is only prepared. You’ll see a card that shows exactly what will happen. The action is only performed once you click Confirm. Click Reject to discard the suggestion.
For related steps, such as stopping the server, changing serversettings.xml, and starting the server again, the agent presents them together on one card. They are then performed in sequence.
At the bottom of the chat, you’ll find the Apply file changes automatically toggle. When enabled, the agent writes files in this chat without showing a card, but you can undo each change with Undo. You’ll still need to approve settings changes, deletions, restarts, and updates yourself.
If your server won’t start, crashes, or doesn’t show up in the server list, tell the agent what’s happening. It reads the console and logs, checks CPU and RAM usage over time, and can run a server diagnosis that checks the status, logs, configuration, and processes in around 20 seconds.
If your server isn’t visible, initialization often hasn’t finished because of an invalid configuration or damaged files. The agent also checks whether the Publicly visible startup parameter is enabled. If your server crashes after you add new mods, testing with fewer mods can help narrow down the cause. Find out more about common causes: Barotrauma: Common Issues.
The agent starts, stops, or restarts your server after you approve the action. If you want, it can also create schedules, such as a daily restart at 5 a.m. in your time zone. Schedules with console commands aren’t available for Barotrauma.
The server name, server password, and Publicly visible option are startup parameters in the Configuration tab. The agent always changes these values there because your server writes them to serversettings.xml every time it starts. If the server is running, this will trigger one restart. ZapX sets the player limit (MaxPlayers) and ports automatically.
The agent changes all other settings directly in serversettings.xml in the config folder, for example:
GameModeIdentifierfor the game mode (sandbox,multiplayercampaign,pvp, ormission)RespawnIntervalandUseRespawnShuttlefor dead players to returnKarmaEnabledandTraitorProbabilityAllowVoteKick,AllowEndVoting, andRequireAuthentication
Barotrauma rewrites serversettings.xml when the server shuts down. To prevent your changes from being lost, the server must be stopped first. The agent can present the stop, change, and start steps together on one card. Learn more: Barotrauma: Server Configuration.
In Barotrauma, you add admins to Clientpermissions.xml. The agent adds a client entry with a name, SteamID64, and the requested permissions, such as ManageSettings, Kick, Ban, or All. For ConsoleCommands, it also adds individual commands such as heal or spawn. Learn more: Barotrauma: Become an Admin on Your Own Server.
Add Steam Workshop mods in the Workshop tab using their item IDs or links, up to 50 mods. The agent can do this too: it adds new items by ID, removes or disables existing ones, and changes their order. It shows you a preview of the changes first, and only applies them after you approve. The changes take effect on the next start: your server stores each mod in the LocalMods folder and enables it in config_player.xml. The agent doesn’t automatically find dependencies, so tell it which additional mods are required.
For your own non-Workshop mods, the agent downloads them from a direct link to the LocalMods folder and adds them to <regularpackages> in config_player.xml while the server is stopped.
Your savegames are stored in the saves folder. The agent lists them, creates a copy, or downloads a savegame from a direct link to that folder. Stop the server first to make sure the current state is fully saved. You can also download and upload savegames using drag and drop in the Savegames tab. See Barotrauma: Manage Savegames.
An outdated server may crash or fail to start. If an update is available for your server, the agent queues it for approval on a card.
The agent searches, reads, and edits files; downloads files from direct links; extracts archives (.zip, .tar, up to 500 MB); and creates .zip archives of folders. It shows your SFTP login details without the password, resets the SFTP password, and repairs file permissions if files are read-only.
The agent creates and restores backups, deletes old ones, or prepares one for download. A backup always includes the entire server, including your savegames and mods.
If your server has its own IP address (add-on) and it is on a blocklist, for example with some routers from US providers, the agent swaps it for a clean IP via a card. The ports stay the same, and the server is offline for about a minute. This is possible at most once every 30 days and only for the owner of the server. Without its own IP, your server shares the host’s address, so the agent has nothing to swap. You can book your own IP as an add-on.
- The agent doesn’t send console commands for Barotrauma; the console is read-only in the panel.
- You must enter commands such as
healorspawnyourself in the game, and you need theConsoleCommandspermission inClientpermissions.xmlto do so. - The agent doesn’t automatically find dependencies between Workshop mods. Tell it which mods are required, and it will add them to the same list.
- The agent never shows SFTP passwords in the chat, and you don’t need to send it any.
- It can download
.rarand.7zarchives, but can’t extract them. - It can’t open additional ports.
- “My server isn’t showing up in the server list. Find out why.”
- “Set the game mode to Campaign and enable the Karma system.”
- “Give the player with SteamID 76561198000000001 all permissions in Clientpermissions.xml.”
- “Update all Workshop mods and restart the server.”
- “Set RespawnInterval to 120 seconds and enable the Respawn Shuttle.”
- “Restart the server every day at 5 a.m.”
If you ask for help in support chat, Zappy can use the same tools once your ticket is linked to the server. You can also read logs, run diagnostics, restart the server, and repair file permissions there without a ZapX Pass. You’ll need a ZapX Pass to change files, settings, mods, or backups.
You now know what the ZapX AI Agent can do on your Barotrauma server and how to approve every change yourself. For an overview of all areas of the panel, see Barotrauma: Dashboard Overview. If you have any other questions, our support team is here to help every day! 🙂
