Skip to content

How to Add an Admin to Your Terraria tModLoader Server

Admins in Terraria tModLoader are set up using an authentication code that is displayed in the server console when the server starts.

Set Up Admin via Auth Code

  1. Start the server
    Start your server via the dashboard.

  2. Read the auth code
    Open the server console in the dashboard. On startup, an authentication code will be displayed, e.g.:

    To enable cheats, type in the command 'auth <code>'
    To enable cheats, type in the command 'auth <code>'

    Note down this code.

  3. Join the server
    Join your server as a player.

  4. Enter the auth command
    Enter the following command in the in-game chat:

    /auth <code>
    /auth <code>

    Replace <code> with the auth code from the server console.

  5. Set a password (optional)
    After successful authentication, you can set a permanent password:

    /password <new_password>
    /password <new_password>

    With this password, you can log in as admin in the future without needing the auth code.

Note

The auth code changes with every server restart. If you have set a permanent password, you can log in using /auth <password>.

Tip

To give other players admin rights, share the current auth code with them or set up a permanent password they can use.

Note

The auth code system is a tModLoader feature. Vanilla Terraria servers use the server console directly for admin commands and do not have an auth system. If you are running vanilla Terraria without tModLoader, you will need a mod like Hero's Mod or TShock to get an in-game admin system.