Terraria version: 1.4.5.5
Headless Terraria client/bot for connecting to Terraria servers without the game UI.
Current focus: movement + teleportation (useful for AFK/farm workflows).
Non-scan mode CLI order:
HeadlessTerrariaClient <username> <ip> <port> <password> [version]You can pass only part of it; missing values are loaded from client.config.json.
Examples:
# Full CLI
dotnet .\out_fixed39\HeadlessTerrariaClient.dll YourBotName example.server.host 25565 your-server-password
# Partial CLI (rest from client.config.json)
dotnet .\out_fixed39\HeadlessTerrariaClient.dll YourBotName
# Config-only
dotnet .\out_fixed39\HeadlessTerrariaClient.dllversion defaults to 318 if not provided in CLI/config.
Create client.config.json in either:
- Current working directory
- Executable directory
Use the included example file: client.config.json.example.
{
"Username": "YourBotName",
"ServerIp": "example.server.host",
"ServerPort": 25565,
"Password": "your-server-password",
"Version": "318"
}Unaffected by runtime config changes:
HeadlessTerrariaClient scan <password> [startVersion] [endVersion]dotnet build .\HeadlessTerrariaClient\HeadlessTerrariaClient.csproj -c Releasedotnet publish .\HeadlessTerrariaClient\HeadlessTerrariaClient.csproj -c Release -o out_fixed39dotnet publish .\HeadlessTerrariaClient\HeadlessTerrariaClient.csproj -c Release -r linux-arm64 --self-contained true /p:PublishSingleFile=true -o out_linux_arm64_scdotnet publish .\HeadlessTerrariaClient\HeadlessTerrariaClient.csproj -c Release -r linux-arm --self-contained true /p:PublishSingleFile=true -o out_linux_arm_sc- Windows:
win-x86,win-x64,win-arm,win-arm64 - Linux:
linux-x86,linux-x64,linux-arm,linux-arm64
Notes:
win-armandlinux-x86are framework-dependent DLL-based builds in the release assets.- Other targets are self-contained single-file executables.
chmod +x ./HeadlessTerrariaClient
./HeadlessTerrariaClient <username> <ip> <port> <password>afkbot helpsends all commands and their functions.afkbot tp [playername]teleports bot to mentioned player.afkbot move [right/left/up/down] [number of ticks]for movement.afkbot attackto attack using an inventory item(currently bugged).
- Do not commit real credentials.
- Keep only
client.config.json.examplein git. - Keep local
client.config.jsonignored.