
Team Fortress 2 Server Configuration Generator
Create a server config for your TF2 server with the TF2 server.cfg generator: set the server name, password, GSLT, bots, time limit, RCON and sv_pure in the form, or describe your server to an AI in Easy Mode. The live preview shows the finished server.cfg for you to copy or download. Free, with no sign-up, directly in your browser.
Built by Florian Galz
Config ready? Rent your server and transfer it with one click.
ZapX AI Agent
Explain how you want to configure your server
// Team Fortress 2 — generated with the ZAP-Hosting Game Config Generator// zap-hosting.com/tools/tf2/config-generator// Server basicshostname "ZAP Team Fortress 2"sv_password ""sv_setsteamaccount ""// Rounds & timemp_timelimit 30mp_maxrounds 0mp_winlimit 0// Team & fairnessmp_friendlyfire 0mp_autoteambalance 1sv_alltalk 0// Botstf_bot_quota 0// Administration & securityrcon_password ""sv_pure "1"sv_cheats 0// Othermp_tournament 0sv_lan 0
Show config file preview
// Team Fortress 2 — generated with the ZAP-Hosting Game Config Generator// zap-hosting.com/tools/tf2/config-generator// Server basicshostname "ZAP Team Fortress 2"sv_password ""sv_setsteamaccount ""// Rounds & timemp_timelimit 30mp_maxrounds 0mp_winlimit 0// Team & fairnessmp_friendlyfire 0mp_autoteambalance 1sv_alltalk 0// Botstf_bot_quota 0// Administration & securityrcon_password ""sv_pure "1"sv_cheats 0// Othermp_tournament 0sv_lan 0
Example result
Example: the generated server.cfg
You set the options using a form or AI Easy Mode, and the generator creates the finished server.cfg for Team Fortress 2 live. Below are the first lines of the default configuration; your file contains your values and all other settings.
Example · Default configuration
Output
// Team Fortress 2 — generated with the ZAP-Hosting Game Config Generator// zap-hosting.com/tools/tf2/config-generator // Server basicshostname "ZAP Team Fortress 2"sv_password ""sv_setsteamaccount "" // Rounds & timemp_timelimit 30mp_maxrounds 0mp_winlimit 0 // Team & fairnessmp_friendlyfire 0- +14 rowsYou can copy or download the complete file in the generator; the sample lines here only show the beginning.
Settings
What you can set in server.cfg with the TF2 Config Generator
The generator creates your TF2 server's server.cfg, not a client config such as autoexec.cfg. Its 18 settings are divided into six sections, with the corresponding cvar in the file shown in parentheses.
Server basics
Server name (hostname), server password (sv_password; leave blank for a public server), GSLT token (sv_setsteamaccount), maximum player count (2–32, default 24) and starting map. Player count and starting map are launch parameters (+maxplayers, +map), so they aren't included in server.cfg.
Rounds & time
Time limit per map in minutes (mp_timelimit, 0–180, default 30), maximum rounds per map (mp_maxrounds) and round wins per map (mp_winlimit). A value of 0 disables the respective limit.
Teams & fairness
Friendly Fire (mp_friendlyfire, off by default), automatic team balancing between rounds (mp_autoteambalance, on by default), and All-Talk, which lets opponents hear each other in voice chat (sv_alltalk, off by default).
Bots
Bot count (tf_bot_quota, 0–32, 0 = no bots) and bot difficulty (tf_bot_difficulty): Easy, Normal, Hard or Expert. Difficulty is only written if the bot count is not 0.
Administration & security
RCON password (rcon_password; on a self-hosted server, leaving it blank disables RCON), file verification with sv_pure at levels 0, 1 or 2 (default 1), and cheat commands (sv_cheats; off by default). Never enable sv_cheats on a public server.
Other
Tournament mode (mp_tournament) for competitive matches and LAN mode (sv_lan), which removes the server from the public server list and is only useful for local testing.
The generator appends lines it doesn't recognise from an imported server.cfg unchanged to the end of the file. It doesn't create map rotation (mapcycle.txt) or plugins.
Guide
How to create your TF2 server.cfg
From your first setting to a running server: how to add your server config to your TF2 server.
- 1
Step 1
Open generator or import config
The generator starts with Team Fortress 2 defaults, and you can immediately see the finished server.cfg in the live preview. If you already have a server.cfg, import it by uploading a .cfg or .txt file of up to 2 MB or pasting its contents.
- 2
Step 2
Choose Easy Mode or the form
In Easy Mode, describe your server in your own words, for example, “public Payload server with 24 Slots and GSLT.” The AI suggests suitable values and explains each change; only changes you confirm are applied. In advanced mode, you set every option yourself.
- 3
Step 3
Set server basics
Enter the server name (hostname), an optional server password and your GSLT token, then choose a starting map and a maximum player count between 2 and 32. The starting map's prefix determines the game mode.
- 4
Step 4
Set rounds, teams and bots
Set the time limit (mp_timelimit), round limit (mp_maxrounds) and win limit (mp_winlimit), toggle Friendly Fire, automatic team balancing and All-Talk, and fill empty Slots with bots (tf_bot_quota) at your chosen difficulty if needed.
- 5
Step 5
Secure administration
On your own server, set an RCON password. At ZAP-Hosting, the server sets it automatically, so omit the rcon_password line. Choose the sv_pure level and leave sv_cheats disabled. Enable tournament mode (mp_tournament) only for competitions and LAN mode (sv_lan) only for local tests. At ZAP-Hosting, omit sv_lan: adding sv_lan 1 to custom.cfg removes your server from the public server list.
- 6
Step 6
Check and save server.cfg
Check server.cfg in the live preview; the generator flags invalid values. Then copy or download the file, or share a link without passwords.
- 7
Step 7
Upload and apply
On a self-hosted server, upload the file as server.cfg to the tf/cfg folder. On ZAP-Hosting, upload it as custom.cfg to tf/cfg, because the server overwrites server.cfg every time it starts. Then restart the server so the new values take effect.
Setup
File location & applying changes
Two ways to get the config onto a server: upload it yourself or transfer it with one click through our panel.
The manual method
Upload yourself
- 1
Download file
Download the generated server.cfg using the button above.
- 2
Upload via file manager or FTP/SFTP
Place in
tf/cfg/server.cfg(Linux) ortf\cfg\server.cfg(Windows). - 3
Apply changes
Restart your server. On a self-hosted server, running “exec server.cfg” in the console also works.
The ZAP-Hosting way
Transfer instantly, no upload required
Rent a Team Fortress 2 server from us and transfer your settings directly from this page with one click.
- No FTP, no file manager
- Live in seconds
- Undo anytime
More tools
server.cfg generators for other Source games
Server Configuration Generator
Describe your server.cfg in your own words using the ZapX AI Agent or set each option manually — with a live preview, download, and direct push to your rented server.
Built by Florian Galz
Server Configuration Generator
Describe server.cfg to ZapX AI Agent in your own words or set the options in the form — with a live preview for your CS:GO server.
Built by Florian Galz
Server Configuration Generator
Describe your server.cfg to the ZapX AI Agent in your own words or set the options in the form — with a live preview for your CS:Source server.
Built by Florian Galz
Server Configuration Generator
Describe server.cfg to ZapX AI Agent in your own words or set the options in the form — with a live preview for your No More Room in Hell server.
Built by Florian Galz
Server Configuration Generator
Describe server.cfg to ZapX AI Agent in your own words or set the options in the form — with a live preview for your Left 4 Dead 2 server.
Built by Florian Galz
Server Configuration Generator
Describe server.cfg to ZapX AI Agent in your own words or set the options in the form — with a live preview for your Garry's Mod server.
Built by Florian Galz
Was this tool helpful?
Your feedback helps us prioritize and improve content.
FAQ
Frequently asked questions
File location, GSLT, game mode, bots, sv_pure and passwords—quick answers.
Where is server.cfg on a TF2 server, and how do I apply it?
The server.cfg belongs in your server's tf game folder: tf/cfg/server.cfg on Linux or tf\cfg\server.cfg on Windows. On a self-hosted server, replace this file and restart, or run “exec server.cfg” in the console. On ZAP-Hosting, the server rewrites server.cfg every time it starts: upload your file there as tf/cfg/custom.cfg, and the server runs it after server.cfg. Downloading from the generator does not transfer anything automatically.
Is the TF2 server.cfg generator free, and do I need an account?
The generator is free to use without signing up: the form, Easy Mode, import, copy, download and sharing features all work without an account. The server.cfg is generated directly in your browser. Only in Easy Mode are your description and current values, without passwords, sent to the AI, which suggests changes. Only changes you confirm are applied.
Do I need a GSLT token for my TF2 server?
For a public TF2 server, yes: the Game Server Login Token lets the server sign in to Steam and appears in server.cfg as sv_setsteamaccount. You can create one for free at steamcommunity.com/dev/managegameservers using App ID 440. The token is masked like a password in the form.
How do I set the game mode (CTF, Payload, King of the Hill)?
TF2 has no dedicated game mode Cvar; the mode is determined by the map prefix: ctf_ means Capture the Flag, pl_ means Payload, koth_ means King of the Hill, and cp_ means Control Points. In the generator, choose one of six starting maps: cp_dustbowl, ctf_2fort, pl_badwater, koth_viaduct, cp_granary or pl_upward. Map rotation is defined in a separate mapcycle.txt, which the generator doesn't create.
Why aren't player count and starting map in server.cfg?
Both are launch parameters (+maxplayers and +map), not cvars in server.cfg. The generator therefore deliberately leaves them out of the file. Set them when starting the server, for example in your server's launch parameters or server settings.
How do I fill empty Slots on my TF2 server with bots?
Under “Bots”, set the bot count (tf_bot_quota) to a value between 1 and 32 and choose a difficulty (tf_bot_difficulty): Easy, Normal, Hard or Expert. The difficulty field appears only when the bot count is above 0. At 0, no bots run.
What do sv_pure 0, 1 and 2 mean?
sv_pure determines how strictly the server checks whether players use unmodified game files: 0 allows modified files, 1 enforces critical files and is the recommended default, and 2 blocks almost all client-side changes. Regardless of the setting, keep sv_cheats off on a public server.
Are my passwords included in the share link?
No. The server password, RCON password and GSLT token are masked in the form, never stored in share links and not sent to the AI in Easy Mode. A share link contains only the non-secret values you've changed.
Still have questions?
Contact SupportGet your Team Fortress 2 server online today
Rent your Team Fortress 2 server now and transfer this config with one click.
No setup. No risk. Online in 60 seconds.
