With the ZapX AI Agent, you can manage your Terraria server through chat. Describe what you want, for example, “Create a new large Expert world and keep the old one” or “Why won’t my server start after installing TShock?” The agent reads your logs, startup parameters, and server files to find the cause and prepare the right changes. It always asks you before changing anything on your server.
This guide explains what the agent can do on your Terraria server, how approval works, and what its limitations are.
- ZapX Pass: The ZapX AI Agent is included with every tier of the ZapX Pass, 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’s used up, 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 Terraria server in the web interface and click ZapX AI Agent in the sidebar. The chat already has access to 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 (logs, console, startup parameters, files, worlds in the
worldsfolder, and backups) is done immediately without asking. - Making changes (setting startup parameters, writing a file, sending a console command, or restoring a backup) is only prepared. You’ll see a card showing exactly what will happen. It’s only carried out when you click Confirm. Click Decline to discard the suggestion.
For several related steps, such as creating a backup, entering a new world file name, and restarting the server, the agent presents them together on one card. They’ll then run one after another.
At the bottom of the chat, you’ll find the Automatically apply file changes toggle. When it’s 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, commands, and updates yourself.
If your server won’t start, can’t be reached, or is lagging, tell the agent what’s happening. It reads the server console and logs, checks CPU and RAM usage, and can run a server diagnosis that checks the status, logs, configuration, and processes in about 20 seconds. Common causes include incorrect configuration, an outdated server, or an extension that isn’t compatible with the game version. Find out more about common causes in Terraria: Common Issues.
The agent starts, stops, or restarts your server after you approve the action. You can also ask it to create schedules, such as a daily restart at 5 a.m. in your time zone.
Terraria reads its settings from serverconfig.txt in the config folder. However, your server completely rewrites this file from the startup parameters in the Configuration tab every time it starts. That’s why the agent changes the startup parameters using a card. If the server is running, it will restart once. For example:
- Max. players from
1to255 - Server password for joining; leave it blank for an open server
- Message of the day (MOTD) that players see when they join
- Secure mode for Terraria’s additional cheat protection
- Additional startup parameters, such as
-disableannouncementbox
Learn more: Terraria: 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 also sets the difficulty, world name, and world seed. These four values only take effect when a new world is created. Your existing world stays in the worlds folder. To switch back, ask the agent to enter its file name again.
After you approve them, the agent sends commands such as playing, save, or say <Message> to the console without a / in front. The card then shows the output from the next five seconds. It removes disruptive players with kick <PlayerName> or bans them with ban <PlayerName>. The standard server doesn’t have an unban command. To unban a player, the agent deletes their name and IP address from config/banlist.txt and restarts the server. Find all commands in Terraria: Server Commands.
Admin accounts and a real whitelist are only available with TShock. ZapX automatically detects a TShock installation in the root directory and starts TShock instead of the standard server. Give the agent a direct download link to the Linux file (linux-x64) on the GitHub release page. It downloads the file and extracts the ZIP file and the .tar file inside it to the root directory. If only the Windows version is in the folder, a message appears in the console, which the agent can detect.
To set up the whitelist, the agent adds allowed IP addresses to tshock/whitelist.txt and sets EnableWhitelist to true in tshock/config.json. If the server is running, it adds more addresses with the console command whitelist <IP address> and reloads the changes with reload. Add your own IP address before enabling the whitelist. Learn more: Terraria: Become a Server Admin (TShock) and Terraria: Whitelist.
The agent downloads a custom world from a direct download link, places the .wld file in the worlds folder, and enters its name as the World File Name. Stop the server first to avoid overwriting anything. 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. See Terraria: Manage Savegames.
An outdated server may crash or fail to start. The agent queues an update for your installation using a card.
The agent searches, reads, and edits files; downloads files from a direct link; extracts archives (.zip, .tar, up to 500 MB); and packages folders as .zip files. It shows your SFTP login details without the password, resets your SFTP password, and fixes file permissions when 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 worlds in the worlds folder. It’s a good idea to create a fresh backup before installing TShock or creating a new world.
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.
- It can’t change the size, difficulty, or seed of an existing world. To change these, it creates a new world.
- Settings that only exist in
serverconfig.txt, such as Journey permissions (journeypermission_…), won’t persist because your server rewrites the file every time it starts. - You need to set up the first TShock admin account yourself in the in-game chat using
/setup <Code>and/login. The agent can’t enter in-game chat commands for you. - TShock only works with Terraria, not tModLoader.
- It can download
.rarand.7zarchives, but it can’t extract them. - It can’t open additional ports.
- It never shows SFTP passwords in the chat, and you don’t need to send it any.
- “My server won’t start. Find out why.”
- “Create a new large Master world named world2 and keep the old one.”
- “Set the max. players to 16 and change the message of the day.”
- “Ban player Griefer123 and then save the world.”
- “Install TShock and enable the whitelist for my IP address.”
- “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 a diagnosis, restart the server, or fix file permissions there without a ZapX Pass. You’ll need a ZapX Pass to change settings, files, worlds, or backups.
You now know what the ZapX AI Agent can do on your Terraria server and how to approve each change yourself. For an overview of all sections in the panel, see Terraria: Dashboard Overview. If you have any other questions, our support team is here to help every day! 🙂