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
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; leave blank to disable 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
Set an RCON password, choose an sv_pure level and leave sv_cheats off. Enable tournament mode (mp_tournament) and LAN mode (sv_lan) only if you really need them.
- 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
Upload server.cfg to your TF2 server's tf/cfg folder and restart the server, or run “exec server.cfg” in the console to apply the new values.
Setup
File location & usage
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 or run “exec server.cfg” in the console.
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 your server.cfg settings to the ZapX AI Agent in your own words, or set each option manually—with a live preview for your rented CS:GO server.
Built by Florian Galz
Server Configuration Generator
Describe your server.cfg settings to the ZapX AI Agent in your own words, or set each option manually—with a live preview for your rented CS:Source server.
Built by Florian Galz
Server Configuration Generator
Describe your server.cfg settings to the ZapX AI Agent in your own words, or set each option manually—with a live preview for your rented No More Room in Hell server.
Built by Florian Galz
Server Configuration Generator
Describe your server.cfg settings to the ZapX AI Agent in your own words, or set each option manually—with a live preview for your rented Left 4 Dead 2 server.
Built by Florian Galz
Server Configuration Generator
Describe your server.cfg settings to the ZapX AI Agent in your own words, or set each option manually—with a live preview for your rented Garry's Mod server.
Built by Florian Galz
FAQ
Frequently asked questions
File location, GSLT, game mode, bots, sv_pure and passwords—quick answers.
The server.cfg belongs in your server's tf game folder: tf/cfg/server.cfg on Linux or tf\cfg\server.cfg on Windows. Downloading from the generator does not transfer the file automatically. Upload it yourself and restart the server, or run “exec server.cfg” in the console.
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.
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.
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.
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.
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.
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.
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.
Any more 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 seconds.
