How to Make a TF2 Dedicated Server and Install SourceMod (2026)

Published on

Make a Team Fortress 2 dedicated server: SteamCMD, the 64-bit srcds, GSLT, server.cfg, Metamod:Source and SourceMod, admins, custom maps and FastDL.

Mercenaries fighting on a Team Fortress 2 map

Community servers have always been where Team Fortress 2 lives. A server of your own lets you pick the maps, run your own rules, and add plugins for things like votes, stats or game modes that Valve never shipped.

This guide covers the full route: installing the server, the 64-bit binary, the login token, a basic server.cfg, Metamod:Source and SourceMod, admins, custom maps and FastDL. At the end there is a checklist for when your server does not show up in the browser. If you would rather skip the install part, take a look at our TF2 server plans.

Step 1: Install the server with SteamCMD

The TF2 dedicated server is Steam app 232250. You install it with SteamCMD, using an anonymous login:

steamcmd +force_install_dir ./tf2 +login anonymous +app_update 232250 validate +quit

Run the same command again to update the server after a TF2 patch. Plan for disk space: on our own test on 6 December 2026, a TF2 server install took about 14 GB, before custom maps and plugins.

On our servers the panel installs the server files for you, so you can go straight to configuration.

Step 2: Use the 64-bit server binary

In 2024 Valve released a 64-bit version of the TF2 dedicated server. On Linux it starts with srcds_run_64 instead of the old srcds_run. A typical launch line looks like this:

./srcds_run_64 -console -game tf +map ctf_2fort +maxplayers 24 +sv_setsteamaccount YOUR_TOKEN

This matters for plugins. Server plugins are compiled for either 32-bit or 64-bit, and a 64-bit server cannot load 32-bit plugins. When Valve switched, older Metamod and SourceMod builds stopped working until 64-bit versions were released. Today the stable branches support it, as described below.

Step 3: Get a Game Server Login Token

A Game Server Login Token (GSLT) links your server to a Steam account. The official TF2 wiki says you need a valid token for the server to appear in the server browser. Without one, the server logs in anonymously.

To create one:

  1. Go to steamcommunity.com/dev/managegameservers.
  2. Enter App ID 440. That is the game's App ID, not the server's 232250.
  3. Add a memo so you know which server it is for.
  4. Add the token to the launch line with +sv_setsteamaccount YOUR_TOKEN, so the server logs in with it from the start. On our servers, paste the token in Steam GSLT in the Startup tab and the panel adds it to the launch line.

Use one token per server. Running two servers with the same token at the same time causes login problems.

Step 4: A basic server.cfg

The main config file is tf/cfg/server.cfg. It runs every time a map loads. A simple start:

hostname "Space Cats | 2Fort and Friends"
sv_contact "admin@example.com"
rcon_password "use-a-long-random-password"
sv_password ""
mp_timelimit 30
mp_maxrounds 10
mapcyclefile "mapcycle.txt"
sv_allowdownload 1
sv_allowupload 0

What these do:

  • hostname: the name in the server browser.
  • rcon_password: the password for remote console access. Use a long, random one. Anyone with this password controls your server.
  • sv_password: set a value to make the server private. Leave it empty for a public server.
  • mp_timelimit and mp_maxrounds: when a map ends.
  • mapcyclefile: the file with your map rotation.

The map cycle

The rotation lives in tf/cfg/mapcycle.txt. Put one map name per line, without the .bsp extension:

ctf_2fort
cp_dustbowl
pl_badwater
koth_harvest_final
cp_process_final

When a map ends, the server moves to the next line.

Step 5: Install Metamod:Source and SourceMod

SourceMod is the standard plugin platform for Source games. It runs on top of Metamod:Source, so you install Metamod first.

  1. Download the current stable Metamod:Source build for your server's operating system from sourcemm.net. The 1.12 branch is the current stable one and has improved 64-bit support.
  2. Download the current stable SourceMod build (1.12 at the time of writing) from sourcemod.net.
  3. Both archives contain an addons folder. Upload and extract them into the server's tf folder, so you end up with tf/addons/metamod and tf/addons/sourcemod. On our servers you can upload the archives in the File Manager and extract them there.
  4. Restart the server.

Do not mix in older builds from forum posts or old guides. Builds from before the 64-bit update will not load on the 64-bit server.

Check that it works

Open the server console and type:

meta list

This should show SourceMod as a loaded plugin. Then type:

sm version

If both commands answer with version information, the install works. If meta list is not recognised, Metamod is not loading. Check that the addons folder is in tf/ and not one level too deep, for example tf/addons/addons.

Step 6: Make yourself an admin

SourceMod admins are set in tf/addons/sourcemod/configs/admins_simple.ini. Add one line per admin with their Steam ID and flags:

"STEAM_0:1:12345678" "99:z"
  • The first part is the player's Steam ID. You can find yours with the status command in the in-game console while you are on the server.
  • 99 is the immunity level, which protects you from being kicked by lower admins.
  • z is the root flag, which gives all permissions.

For moderators, use more limited flags. For example b (generic admin), c (kick) and d (ban). Save the file and restart the map, or reload admins with sm_reloadadmins.

In the game, type !admin in chat or sm_admin in the console to open the admin menu.

Step 7: Custom maps and FastDL

To run a community map, upload its .bsp file to tf/maps. Then add the map name to your mapcycle.txt or change to it with changelevel mapname.

Players who do not have the map need to download it when they join. Without help, the game server sends the file itself, which is slow and can make large maps take minutes to load. FastDL fixes that by serving files from a normal web server:

  1. Upload your custom maps (and other custom files) to a web server, in the same folder structure, for example /tf/maps/.

  2. Compress them with bzip2 (.bsp.bz2) to make downloads smaller.

  3. Point the server to it in server.cfg:

    sv_downloadurl "https://fastdl.example.com/tf/"
    sv_allowdownload 1
    

The map file on the game server and on the FastDL server must be identical, or players get a map mismatch error.

Server not showing in the browser?

If the server is running but you cannot find it in the community server browser, go through this list:

  1. Check the token. Make sure sv_setsteamaccount is set and the token was created for App ID 440. Look in the console for a line saying the server logged in to Steam.
  2. Check that the token is not used twice. Each running server needs its own token.
  3. Check the server version. After a TF2 update, players on the new version cannot play on an outdated server. Run the update again.
  4. Check the browser filters. Filters for passworded, full or empty servers can hide yours from your own list.
  5. Check the console for crashes during start. A broken plugin can stop the server before it registers. Move plugins out of tf/addons/sourcemod/plugins to test.
  6. Connect by IP. Open the console and type connect ip:port. If that works, the server is fine and the problem is the listing, which usually means the token.

Running it with Space-Node

Our TF2 servers run on the Pterodactyl panel with a console, File Manager, SFTP and a Startup tab. Storage is NVMe SSD and every plan has DDoS protection. The panel fills in the game and query ports automatically at every start. Regions are Europe (the Netherlands, Germany or France, chosen by the panel), Canada, the USA (San Jose, California), Singapore and Australia (Sydney). Prices are the same everywhere except the USA, which costs EUR 0.10 more per GB.

Plans start at 2 GB for EUR 2.20 per month and go up to 16 GB for EUR 17.20.

One-step SourceMod install. In the Startup tab, set Install Metamod and SourceMod to 1, then reinstall the server from the Settings tab. It installs the 64-bit Metamod:Source 1.12 and SourceMod 1.12 from AlliedModders. Run the reinstall again after a TF2 update: it updates the binaries and gamedata and keeps your configs, plugins and data. We tested both on 6 December 2026. SourceTV also gets its own open port on every server.

FAQ

Do I need a GSLT for a TF2 server?

According to the official TF2 wiki, yes, if you want the server to appear in the server browser. Create it for App ID 440 and set it with sv_setsteamaccount.

Why does SourceMod not load on my server?

Most often the builds are too old for the 64-bit server, or the addons folder is in the wrong place. Use current stable builds of Metamod:Source and SourceMod and put addons directly in tf/.

How do I check if SourceMod is installed correctly?

Run meta list and sm version in the server console. Both should return version information.

Where do custom maps go?

Upload .bsp files to tf/maps and add them to mapcycle.txt. Use FastDL so players download them quickly.

How much disk space does a TF2 server need?

Our test install was about 14 GB before custom content. Custom maps and plugins add to that.

Ready to run your own community server? Compare our TF2 server plans.