Skip to content

tModLoader: Manage Your Server with the ZapX AI Agent

Enable mods, create worlds, troubleshoot startup errors, and kick players: manage your tModLoader server through chat with the ZapX AI Agent.

30 November 20267 min read1 Views0 helpful

Don't have your own server yet? Host your tModLoader server with ZAP-Hosting from €4.49 / month.Or try 3 days from €0.81

Introduction

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.

Requirements

  • 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 the ZapX AI Agent

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.

How confirmations work

The agent distinguishes between reading and making changes:

  • Read-only actions (viewing logs, the console, startup parameters, the mods and worlds folders, 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.

Tip: Automatically apply file changes

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.

What the agent can do on your tModLoader server

Troubleshoot issues and check your server

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.

Start, stop, and restart your server

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.

Change settings

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.

Create and switch worlds

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.

Set up mods

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.

Send console commands

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.

Savegames and custom worlds

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.

Apply a server update

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.

Files and SFTP

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.

Backups

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.

Get a new IP if your address is blocked

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.

What the agent can’t do

  • Your server doesn’t download mods from Steam on its own. The agent needs a direct download link or the .tmod file in the mods folder.
  • 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.txt won’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 .rar and .7z archives, 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.

Example requests

  • “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.”

Also available in support chat: Zappy

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.

Conclusion

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! 🙂

Free tools

Terraria Tools

View all

FAQ

Frequently asked questions

Yes. The agent is included with every ZapX Pass tier, starting with Plus. Zappy can also help in support chat without a Pass, but you’ll need one to make server changes there.
No. The agent presents anything that changes your server on a card and only carries it out after you click “Confirm.” If you turn on “Automatically apply file changes,” it can write files without a card, but you can undo those changes.
The .tmod file must be in the mods folder, and its exact internal name must be listed in enabled.json. The agent checks both and can add the name for you.

Feedback

Was this article helpful?

Your feedback helps us prioritize and improve content.

0 of 0 people found this article helpful.

Personal support

Need more help than the guide provides?

Our ZAP-Hosting support team knows your product — briefly describe your issue and we'll help you personally.

Zappy knows this guide and answers you right in the chat.