With the ZapX AI Agent, you can manage your tModLoader server through chat. Describe what you want, for example, “Enable CalamityMod and CalamityModMusic” or “Why won’t my server start after installing the new mod?” The agent reads logs, startup parameters, enabled.json, and your server files to find the cause and prepare the right changes. It always asks you before making any changes to your server.
This guide explains what the agent can do on your tModLoader server, how confirmations 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 comes with a monthly AI quota. You can see how much you’ve used in the chat, next to the input field. If you run out, your quota renews automatically 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 tModLoader server in the web interface and click ZapX AI Agent in the sidebar. The chat already knows which server you’re using, so there’s no need to explain. Just describe what you need in your own words.
The agent distinguishes between reading and making changes:
- Read-only actions (viewing logs, the console, startup parameters, the
modsandworldsfolders, or backups) are completed immediately, without asking. - Changes (setting startup parameters, writing to
enabled.json, sending a console command, or restoring a backup) are only prepared. You’ll see a card that shows exactly what will happen. The action is carried out only after you click Confirm. Click Decline to discard the suggestion.
For several related steps, such as downloading a mod file, adding it to enabled.json, and restarting the server, the agent presents them together on one card. They then run in sequence.
At the bottom of the chat, you’ll find the Apply file changes automatically toggle. When it’s on, the agent writes files in this chat without showing a card, but you can still undo each change with Undo. You’ll still need to confirm settings changes, deletions, commands, and updates yourself.
If your server won’t start, a mod won’t load, or your friends can’t join, tell the agent what’s happening. It reads the server console and logs, checks CPU and RAM usage over time, and can run a server diagnostics check that reviews the status, logs, configuration, and processes in around 20 seconds. In the console, it can see which tModLoader version your server is running, which mods it loads, and which mod is causing an error. If a mod crashes the server, the agent removes it from enabled.json. For more common causes, see tModLoader: Common Issues.
The agent can start, stop, or restart your server, each time after you confirm. If you want, it can also create scheduled tasks, such as a daily restart at 5 a.m. in your time zone.
tModLoader reads its settings from serverconfig.txt in the config folder. However, your server completely rewrites this file at every startup using the startup parameters in the Configuration tab. That’s why the agent changes startup parameters through a card, which restarts a running server once. Examples include:
- Max players, default
10 - Server password for joining; leave blank for an open server
- Message of the day (MOTD) that players see when they join
- Server output language, for example
de-DE - Secure mode for additional cheat protection
Learn more: tModLoader: Server Configuration.
The startup parameter World File Name determines which world your server loads. It’s the name of the file in the worlds folder, without .wld. To create a new world, the agent enters a new name, such as world2, and sets Automatic World Creation to 1, 2, or 3 for small, medium, or large. It can also set the difficulty (0 for Classic through 3 for Journey), world name, and world seed. These settings only take effect when a new world is created. Your current world stays in the worlds folder. To switch back, the agent enters its file name again.
Your mods are stored as .tmod files in the mods folder. The mods your server loads are listed in enabled.json in the same folder. The agent adds the mods’ internal names there—that is, the file name without .tmod, such as CalamityMod. It checks the exact spelling and ensures the JSON is valid, with commas between entries. If a mod needs other mods, the agent can identify that from the console error.
The agent downloads .tmod files from a direct download link. If the files are on your PC, upload them to the mods folder in the Files tab or via SFTP, and the agent will take care of the rest. Learn more: tModLoader: Install Mods.
After you confirm, the agent sends commands such as playing, save, or kick <player name> to the console. The card then shows you the output from the next five seconds. Use help to see all available commands on your server.
Each world has two files in the worlds folder: the .wld file containing the world and the .twld file containing your mod data. The agent makes sure both files are present, because without the .twld file, all mod content will be missing from the world. To use a custom world, the agent enters its name under World File Name. If you want, it can package the worlds folder as a .zip file (up to 100 MB). You can also upload and download worlds in the Savegames tab.
An outdated server can crash or fail to start. The agent queues an update for your installation through a card. Your mods will also need to be compatible with the server’s tModLoader version.
The agent can browse, read, and edit files; download files from a direct link; extract archives (.zip, .tar, up to 500 MB); and package folders as .zip files. It can show your SFTP login details without the password, reset the SFTP password, and repair file permissions if files are read-only.
The agent can create and restore backups, delete old ones, or prepare one for download. A backup always includes the entire server, including your worlds and mods. It’s a good idea to create a fresh backup before adding mods or updating them.
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.
- Your server doesn’t download mods from Steam on its own. The agent needs a direct download link or the
.tmodfile in themodsfolder. - It can’t change the size, difficulty, or seed of an existing world. To change these, it creates a new world.
- Changes you make directly in
serverconfig.txtwon’t persist, because your server rewrites the file at every startup. - Terraria stores characters on players’ PCs. They aren’t stored on the server or in backups, so the agent can’t restore them.
- It can download
.rarand.7zarchives, but can’t extract them. - It can’t open additional ports.
- It never shows SFTP passwords in chat, and you don’t need to send it any.
- “My server won’t start after I installed a new mod. Find the cause.”
- “I uploaded CalamityMod.tmod. Enable the mod in enabled.json.”
- “Create a new large Expert world named world2, and keep the old one.”
- “Set max players to 16 and change the message of the day.”
- “Kick the player Griefer123 and save the world afterward.”
- “Restart the server every day at 5 a.m.”
If you contact us through 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, or repair file permissions there without a ZapX Pass. You’ll need a ZapX Pass to change settings, mods, worlds, or backups.
You now know what the ZapX AI Agent can do on your tModLoader server and how to approve each change yourself. See tModLoader: Connect to the Server to learn how your friends can join. For an overview of all sections in the panel, see tModLoader: Dashboard Overview. If you have any other questions, our support team is here to help every day! 🙂
