How to Add Steam Workshop Maps to a CS2 Server
In this article
This guide walks you through adding Steam Workshop maps to your Counter-Strike 2 dedicated server, so you can play community-made maps with friends or your community. You'll need a CS2 dedicated server (either rented or self-hosted) and the ability to edit its configuration files. The process involves getting the Workshop map's unique ID, adding it to a collection, and configuring your server to download and run it.
What You'll Need
- A CS2 dedicated server (Windows or Linux) with admin access to its files.
- The Steam Workshop map(s) you want to add — note their Workshop ID (a long number in the URL).
- A Steam account with a public profile (to create a Workshop collection if you want multiple maps).
- Basic familiarity with editing text files (like
server.cfgandautoexec.cfg). - An FTP client or file manager to upload files to your server (if remote).
Step-by-Step
- Find the Workshop ID of your map. Go to the map's Steam Workshop page. The URL looks like
https://steamcommunity.com/sharedfiles/filedetails/?id=1234567890— the number afterid=is the Workshop ID. Write it down. - Create a Workshop collection (optional but recommended for multiple maps). If you want to run more than one map, create a collection on Steam: go to your Workshop page, click "Your Workshop Files," then "Create Collection." Add all your desired maps to the collection. The collection also has an ID (same URL format). If you only want one map, you can skip this and use the map's ID directly.
- Access your server's configuration files. Connect to your server via FTP or use your hosting control panel's file manager. Locate the
csgo/cfgfolder (for CS2, it's still namedcsgo). - Edit
autoexec.cfg(or create it). Opencsgo/cfg/autoexec.cfgin a text editor. If it doesn't exist, create it. Add the following line, replacingCOLLECTION_IDwith your collection ID (or map ID if using a single map):host_workshop_map COLLECTION_ID
Save the file. - Set the map in
server.cfg. Opencsgo/cfg/server.cfg. Add or edit the line that sets the starting map. Use the same ID as above:map workshop/COLLECTION_ID
For example, if your collection ID is 1234567890, the line ismap workshop/1234567890. Save the file. - Restart your server. Fully stop and start your CS2 server. It will download the workshop map(s) automatically from Steam (this may take a few minutes depending on the map size).
- Verify the map loads. Once the server is up, join it. You should see the workshop map loading. If you want to switch between multiple maps in the collection, use the
host_workshop_mapcommand in the server console or use a mapcycle file.
Common Mistakes
- Using the wrong ID: Copying the URL instead of just the numeric ID, or using the map's file ID instead of the collection ID.
- Forgetting the
workshop/prefix: In themapcommand, you must includeworkshop/before the ID, otherwise the server tries to load a built-in map. - Editing the wrong config file: Some hosts use a different startup config. Check your server's startup parameters — the
+mapargument in the launch options overridesserver.cfg. - Not restarting the server: Changes to config files only take effect after a full restart, not just a map change.
- Server not downloading the map: The server must have internet access and SteamCMD login set up correctly (usually automatic for dedicated servers).
Tips
- Use a collection even for a single map — it makes it easier to add more maps later without editing configs again.
- Test the map locally in a listen server first (in the game's main menu, use
map workshop/ID) to confirm it works before putting it on your dedicated server. - Set a mapcycle file (e.g.,
mapcycle.txt) with the workshop IDs to rotate through maps automatically. - Keep your server's
host_workshop_mapline commented out (with//) when you want to revert to default maps. - If your server is behind a firewall, ensure it can access Steam's download servers (usually port 443 and 27015).
Troubleshooting
- Server doesn't download the map: Check the server console for errors. If it says "Failed to download," verify the Workshop ID is correct and the map is public (not private). Also check that the server has enough disk space.
- Map loads but crashes: The map may be incompatible with your server's version of CS2. Update your server to the latest version via SteamCMD. If it still crashes, the map might be broken — try a different map.
- Players get kicked when the map changes: They need to have the map downloaded too. The server sends the map file, but if it's large, players may time out. Increase the
net_maxroutableor use a fast download URL (setsv_downloadurlto a web server hosting the map). - Map doesn't appear in the rotation: If you're using a mapcycle file, make sure the entries are in the format
workshop/IDand that the file is in thecsgofolder. - Server starts but stays on default map: Your startup script may override the map. Check your server's launch parameters — if there's a
+map de_dust2argument, remove it or change it toworkshop/ID.
Frequently Asked Questions
- Do I need a Steam account for the server? Yes, the server uses a Steam account (usually anonymous) to download workshop content. Most hosting panels handle this automatically.
- Can I add maps without a collection? Yes, use the map's own Workshop ID in the
host_workshop_mapcommand. But with a collection, you can switch between multiple maps easily. - Why does the server take long to load the map? It downloads the map from Steam on first use. Subsequent loads are faster because the map is cached.
- Can players vote for workshop maps? Yes, if you have a mapvote plugin (like MapChooser) installed, it can read the workshop maps in your collection.
- My map is private — can I still use it? No, the server can only download maps that are public on the Workshop. Make the map public or use a different map.
- How do I update a workshop map? The server automatically checks for updates when it restarts. If the map author updates it, your server will download the new version on the next restart.