Skip to main content
Scroll to top
Header image

How to add bots to a TF2 server

In this guide, we will explain how to add bots to your Team Fortress 2 server using in-game console commands and the server.cfg configuration file. Additionally, we will show you how to remove bots from your server – either all of them or only selected ones.

How to add bots to TF2 server using console commands

If you are already connected to the server but are not logged in as an administrator, you must first authenticate using the in-game console.

1: Log in as an administrator

Open the console with ` key and enter:

rcon_password [password]

Replace [password] with your server’s RCON password. Once authenticated, you will be able to use administrative commands.

2: Add bots to the server

To add bots, use the following command:

rcon tf_bot_add [amount] [team] [class]

Replace the parameters with the appropriate values:

[amount] – the number of bots to add

[team] – bot team (red or blue)

[class] – bot class ( scout, soldier, pyro, demoman, heavy, engineer, medic, sniper, spy)

tf2 bot add console

How to add bots to TF2 server via server.cfg

1. Go to the Console tab and click Stop to stop your server.

2. Navigate to Files and follow this path: home/container/tf/cfg/server.cfg.

3. Add the following lines to the file:

tf_bot_quota "amount"
tf_bot_quota_mode "fill"
tf_bot_auto_vacate "1"

Remember to replace amount with the number of bots you want to add.

tf2 server cfg file

4 Save the file.

5. Go back to the Console tab and click Start to launch the server.

How to remove bots from TF2 server

If you want to remove all bots from your Team Fortress 2 server, use the following command:

tf_bot_kick all

You can also remove a single bot by using the following command:

tf_bot_kick [name]

In this case, you must replace [name] with the name of the selected bot.

We hope that our intuitive web interface has allowed you to manage your Team Fortress 2 server easily. If you want to ask us any questions, feel free to contact us via e-mail, ticket or live chat!