OpenTTD Server Configuration Generator
Use the OpenTTD server config generator to set up your OpenTTD Dedicated Server without writing openttd.cfg by hand: server list, autosave, and cleanup settings for every startup, plus map, difficulty, economy, vehicles, and AI opponents for new games. Use the form or AI-powered Easy Mode, preview the result live, then copy or download it. Free, no sign-up required, and works 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
; OpenTTD — generated with the ZAP-Hosting Game Config Generator; zap-hosting.com/tools/openttd/config-generator[network]server_game_type=localmax_clients=25max_companies=15pause_on_join=truemin_active_clients=0restart_hours=0restart_game_year=0reload_cfg=falseautoclean_companies=falseautoclean_protected=36autoclean_novehicles=0[gui]autosave_interval=10max_num_autosaves=16keep_all_autosave=false[game_creation]landscape=temperatemap_x=8map_y=8starting_year=1950ending_year=2050town_name=englishcustom_town_number=1custom_industry_number=1land_generator=1custom_terrain_type=30variety=0custom_sea_level=1amount_of_rivers=2tree_placer=2snow_coverage=40desert_coverage=50[difficulty]number_towns=2industry_density=4terrain_type=1quantity_sea_lakes=0max_loan=300000initial_interest=2vehicle_costs=0construction_cost=0vehicle_breakdowns=1economy=falsedisasters=falseinfinite_money=falsetown_council_tolerance=0subsidy_multiplier=2max_no_competitors=0competitors_interval=10competitor_speed=2[economy]type=1inflation=falseinfrastructure_maintenance=falsetimekeeping_units=0town_growth_rate=2found_town=0town_cargo_scale=100industry_cargo_scale=100bribe=trueexclusive_rights=truefund_buildings=truegive_money=true[vehicle]road_side=rightmax_trains=500max_roadveh=500max_aircraft=200max_ships=300max_train_length=7train_acceleration_model=1plane_speed=4plane_crashes=2never_expire_vehicles=false[construction]max_bridge_length=64max_tunnel_length=64command_pause_level=1[station]station_spread=12[linkgraph]distribution_pax=0distribution_mail=0[ai]ai_in_multiplayer=true
Show config file preview
; OpenTTD — generated with the ZAP-Hosting Game Config Generator; zap-hosting.com/tools/openttd/config-generator[network]server_game_type=localmax_clients=25max_companies=15pause_on_join=truemin_active_clients=0restart_hours=0restart_game_year=0reload_cfg=falseautoclean_companies=falseautoclean_protected=36autoclean_novehicles=0[gui]autosave_interval=10max_num_autosaves=16keep_all_autosave=false[game_creation]landscape=temperatemap_x=8map_y=8starting_year=1950ending_year=2050town_name=englishcustom_town_number=1custom_industry_number=1land_generator=1custom_terrain_type=30variety=0custom_sea_level=1amount_of_rivers=2tree_placer=2snow_coverage=40desert_coverage=50[difficulty]number_towns=2industry_density=4terrain_type=1quantity_sea_lakes=0max_loan=300000initial_interest=2vehicle_costs=0construction_cost=0vehicle_breakdowns=1economy=falsedisasters=falseinfinite_money=falsetown_council_tolerance=0subsidy_multiplier=2max_no_competitors=0competitors_interval=10competitor_speed=2[economy]type=1inflation=falseinfrastructure_maintenance=falsetimekeeping_units=0town_growth_rate=2found_town=0town_cargo_scale=100industry_cargo_scale=100bribe=trueexclusive_rights=truefund_buildings=truegive_money=true[vehicle]road_side=rightmax_trains=500max_roadveh=500max_aircraft=200max_ships=300max_train_length=7train_acceleration_model=1plane_speed=4plane_crashes=2never_expire_vehicles=false[construction]max_bridge_length=64max_tunnel_length=64command_pause_level=1[station]station_spread=12[linkgraph]distribution_pax=0distribution_mail=0[ai]ai_in_multiplayer=true
Example result
Example: the generated openttd.cfg
You set the options using a form or AI Easy Mode, and the generator creates the finished openttd.cfg for OpenTTD live. Below are the first lines of the default configuration; your file contains your values and all other settings.
Example · Default configuration
Output
; OpenTTD — generated with the ZAP-Hosting Game Config Generator; zap-hosting.com/tools/openttd/config-generator [network]server_game_type=localmax_clients=25max_companies=15pause_on_join=truemin_active_clients=0restart_hours=0restart_game_year=0reload_cfg=falseautoclean_companies=falseautoclean_protected=36autoclean_novehicles=0- +83 rowsYou can copy or download the complete file in the generator; the sample lines here only show the beginning.
Settings
OpenTTD server settings in openttd.cfg
openttd.cfg is organized into sections such as [network], [gui], [game_creation], and [difficulty], with one key and its value per line. The generator covers 76 settings in 8 groups. Server and autosave settings apply at every startup; all other groups apply only to a new map.
Server, autosave and cleanup (apply on every start)
Visibility in the server list, maximum players and companies, pausing when a player joins or too few players are active, autosave interval and count, restarting with a new map after a set number of hours or in a game year, and automatically removing abandoned companies.
New map
Climate, map size, starting year, town names, number of towns and industries, landscape generator, terrain, sea level, rivers, trees, snow, and desert.
Difficulty & economy
Maximum starting loan, interest, running and construction costs, breakdowns, recessions, disasters, unlimited money, town council attitude, subsidies, economy type, inflation, maintenance costs, timekeeping, town growth, and cargo production.
Vehicles, construction & AI opponents
Left- or right-hand traffic, vehicle limits per company, train length, acceleration model, aircraft, bridges, tunnels, station size, actions allowed while paused, Cargodist for passengers and mail, and AI opponents.
Entries without their own field, such as NewGRFs, AI lists, pathfinding settings, or display options, are preserved on import and included unchanged in the downloaded file. At ZAP-Hosting, ports are set by the panel; the server name and passwords are stored in private.cfg and secrets.cfg.
Guide
How to configure your OpenTTD dedicated server
From the first setting to startup: how to get openttd.cfg onto your OpenTTD server.
- 1
Step 1
Open the generator or import a file
The generator starts with the OpenTTD 15 defaults. Upload an existing openttd.cfg or paste its contents. Entries without a form field, such as NewGRFs or pathfinding settings, are preserved.
- 2
Step 2
Choose Easy Mode or the form
In Easy Mode, describe your server in your own words, such as “a large Arctic map without breakdowns for friends.” AI suggests values, and you apply only the suggestions you select. In Advanced Mode, you set each field yourself.
- 3
Step 3
Set values
Server listing, autosave and cleanup settings apply on every start. Map, difficulty, economy and vehicle settings only apply to a new map because OpenTTD stores these rules in the savegame.
- 4
Step 4
Check the preview and export
The live preview shows the finished openttd.cfg with sections such as [network] and [difficulty]. Copy it, download it, or share a link.
- 5
Step 5
Stop the server and replace the file
OpenTTD rewrites openttd.cfg when it shuts down. Stop the server before replacing the file. If you host it yourself, the file is in ~/.config/openttd on Linux or Documents\OpenTTD on Windows. At ZAP-Hosting, it is in the main folder in the file manager.
- 6
Step 6
Start server
Start the server again. To apply map and game rule settings, it needs a new map. At ZAP-Hosting, set the SAVEGAME startup parameter to new once, then back to latest. Otherwise, the server loads the last savegame.
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 openttd.cfg using the button above.
- 2
Upload via file manager or FTP/SFTP
Place in
~/.config/openttd/openttd.cfg(Linux) orDocuments\OpenTTD\openttd.cfg(Windows). - 3
Apply changes
OpenTTD rewrites openttd.cfg when it shuts down. Stop your server BEFORE uploading the file, then start it again so your changes are not overwritten.
The ZAP-Hosting way
Transfer instantly, no upload required
Rent a OpenTTD 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
Useful tools for your OpenTTD server
Server Configuration Generator
Describe ServerConfig.json to ZapX AI Agent in your own words or set the options in the form — with a live preview for your Core Keeper server.
Built by Florian Galz
Server Configuration Generator
Describe server-settings.json to ZapX AI Agent in your own words or set the options in the form — with a live preview for your Factorio server.
Built by Florian Galz
Server Configuration Generator
Describe ServerConfig.json and BackupConfig.json to ZapX AI Agent in your own words or set the options in the form — with a live preview for your Rimworld Together server.
Built by Florian Galz
Port Checker
Check whether specific ports are open on an IP or hostname—select a protocol or game instead of scanning all ports at once.
Built by Sebastian Rademacher
Password Generator
Generate strong, random passwords directly in your browser — nothing is stored or transmitted.
Built by Rugile Rutkauskaite
Game Server Installer for VPS
Choose a game and operating system to get a single command that automatically installs ARK, Minecraft, Counter-Strike, FiveM and more on your own Linux or Windows server — including firewall, autostart and update scripts.
Built by Eric Mager
FAQ
Frequently asked questions about OpenTTD server settings
Quick answers about file location, savegames, rewriting on shutdown, names and passwords, new maps, AI and Easy Mode.
Where is an OpenTTD server's openttd.cfg?
On Linux, it is at ~/.config/openttd/openttd.cfg; on Windows, at Documents\OpenTTD\openttd.cfg. Use the -c startup parameter to select a different file. Its folder then becomes the server's data folder. At ZAP-Hosting, the server starts with openttd.cfg in the main folder, which you can open in the panel's file manager.
Why doesn't my running game change after I edit openttd.cfg?
OpenTTD stores game rules such as difficulty, economy, vehicles and construction in the savegame. openttd.cfg only sets them for a new map. If the server loads a savegame, its values apply. Server listing, player count, autosave and cleanup settings from [network] and [gui], however, apply on every start.
Why are my changes gone after stopping the server?
OpenTTD rewrites openttd.cfg, private.cfg and secrets.cfg from memory when it shuts down. Changes you make while the server is running will be lost. Stop the server first, replace the file, then start it again. For this reason, the generator only transfers files to stopped ZAP-Hosting servers.
Where do I set the server name and passwords?
Not in openttd.cfg. Once the server has saved its settings, OpenTTD 15 reads the name from private.cfg and passwords from secrets.cfg. At ZAP-Hosting, you set the name, join password, and admin password in the startup parameters in the panel, along with visibility and the company limit.
How do I start a new map with my settings?
If the server starts without a savegame, it generates a new map using openttd.cfg. At ZAP-Hosting, set the SAVEGAME startup parameter to new, start the server, then set it back to latest so it loads the last savegame in future. Alternatively, the server can start a new map automatically using “Restart with a new map after (hours)” or “Restart with a new map in year”.
Why aren't any AI opponents playing?
OpenTTD does not include an AI opponent by default. One will only play if an AI script is installed, such as one from the Online Content service, and “Allow AIs in multiplayer” is enabled. Like the other game rules, the maximum number of AI opponents only applies to a new map.
What exactly does Easy Mode do?
Describe the server you want in your own words. AI suggests suitable settings and explains each change individually. You choose which suggestions to apply; nothing changes without your confirmation.
Is the generator free, and do I need an account?
The generator is free to use without sign-up: the form, Easy Mode, import, copy, download, and sharing all work without an account. The file is created directly in your browser. Only Easy Mode suggestions send your description and current values to the AI.
Any more questions?
Contact SupportGet your OpenTTD server online today
Rent your OpenTTD server now and transfer this config with one click.
No setup. No risk. Online in 60 seconds.
