Skip to content
OpenTTD
Game Configurator

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.

openttd

ZapX AI Agent

Explain how you want to configure your server

Briefly describe the kind of server you want — we'll suggest matching settings.

For example:

Show config file preview
openttdopenttd.cfgLive preview
; OpenTTD — generated with the ZAP-Hosting Game Config Generator
; zap-hosting.com/tools/openttd/config-generator
[network]
server_game_type=local
max_clients=25
max_companies=15
pause_on_join=true
min_active_clients=0
restart_hours=0
restart_game_year=0
reload_cfg=false
autoclean_companies=false
autoclean_protected=36
autoclean_novehicles=0
[gui]
autosave_interval=10
max_num_autosaves=16
keep_all_autosave=false
[game_creation]
landscape=temperate
map_x=8
map_y=8
starting_year=1950
ending_year=2050
town_name=english
custom_town_number=1
custom_industry_number=1
land_generator=1
custom_terrain_type=30
variety=0
custom_sea_level=1
amount_of_rivers=2
tree_placer=2
snow_coverage=40
desert_coverage=50
[difficulty]
number_towns=2
industry_density=4
terrain_type=1
quantity_sea_lakes=0
max_loan=300000
initial_interest=2
vehicle_costs=0
construction_cost=0
vehicle_breakdowns=1
economy=false
disasters=false
infinite_money=false
town_council_tolerance=0
subsidy_multiplier=2
max_no_competitors=0
competitors_interval=10
competitor_speed=2
[economy]
type=1
inflation=false
infrastructure_maintenance=false
timekeeping_units=0
town_growth_rate=2
found_town=0
town_cargo_scale=100
industry_cargo_scale=100
bribe=true
exclusive_rights=true
fund_buildings=true
give_money=true
[vehicle]
road_side=right
max_trains=500
max_roadveh=500
max_aircraft=200
max_ships=300
max_train_length=7
train_acceleration_model=1
plane_speed=4
plane_crashes=2
never_expire_vehicles=false
[construction]
max_bridge_length=64
max_tunnel_length=64
command_pause_level=1
[station]
station_spread=12
[linkgraph]
distribution_pax=0
distribution_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.cfg
; 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. 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. 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. 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. 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. 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. 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. 1

    Download file

    Download the generated openttd.cfg using the button above.

  2. 2

    Upload via file manager or FTP/SFTP

    Place in ~/.config/openttd/openttd.cfg (Linux) or Documents\OpenTTD\openttd.cfg (Windows).

  3. 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

View all OpenTTD tools

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 Support
Ready?

Get your OpenTTD server online today

Rent your OpenTTD server now and transfer this config with one click.

4.4/5 Trustpilot32,000+ Active serversSince 2010

No setup. No risk. Online in 60 seconds.

Flexible TermCancel anytimeOnline in 60 seconds