Setting up a FiveM server the "normal" way means reading 50 forum posts, copy-pasting commands you don't understand, and spending hours debugging errors nobody explains properly. There's a better way.
In this guide I'll show you how to use Claude Code to deploy a complete FiveM server — every command, every config file, and even the error fixes — in under 15 minutes. Both Linux and Windows are covered.
What you need
Before you start, make sure you have:
- A VPS with at least 4 GB RAM, 2 CPU cores, and 50 GB SSD (Vultr and DigitalOcean both work)
- Ubuntu 22.04 LTS (Linux) or Windows Server 2022 (Windows)
- Root SSH access (Linux) or RDP access (Windows)
- Ports 30120 TCP/UDP (FiveM connections) and 40120 TCP (txAdmin panel) open
- A FiveM license key from keymaster.fivem.net
- Claude Code installed
⚠️ The most common mistake: forgetting to open ports 30120 and 40120. If your server never becomes reachable, this is almost always why.
The Linux path (Ubuntu 22.04)
- Connect to your VPS via SSH
- Open Claude Code and simply tell it:
install FiveM server on this Ubuntu VPS, use /home/fivem/server as the directory
Claude runs apt-get update automatically, installs the dependencies (lib32gcc, curl, wget, xz-utils), and downloads the latest FiveM Linux artifact directly from the official runtime URL — no hunting for the right version.
It then:
- Sets correct file permissions
- Creates the server directory structure
- Prompts you for your license key from keymaster.fivem.net
- Writes the complete server.cfg with perfect syntax
The Windows path (Server 2022)
On Windows, Claude switches to PowerShell and does the same work with different commands:
- Creates C:\FiveMServer
- Downloads the artifact with Invoke-WebRequest
- Extracts with Expand-Archive
- Configures Windows Firewall automatically with netsh — opening TCP/UDP 30120 and TCP 40120. No clicking through firewall menus, no missed rules
- Creates a scheduled task so your server auto-restarts on reboot
The server.cfg — where most beginners fail
Wrong syntax, wrong resource order, missing endpoint lines, invalid license key format — Claude writes it correctly the first time: your license key, server name, max players, all four endpoints, and default resources.
Managing with txAdmin
Once running, open your browser and go to http://YOUR-SERVER-IP:40120. You get a full web dashboard with player management, server console, resource management, and restart controls — from any browser, anywhere.
Fixing errors the fast way
If something breaks, paste the full error log into Claude (not just the last line). It reads it, identifies the exact cause, and fixes it:
- License key not valid → Claude explains the keymaster IP issue and fixes the config
- Port 30120 in use → Claude finds the blocker and kills it
- Missing resource dependency → Claude adds it to server.cfg automatically
What used to take hours of forum searching now takes 30 seconds.Watch the full walkthrough below (Linux + Windows, step by step):
Five steps, 15 minutes, and your FiveM server is live — on Linux or Windows. Claude handles every command, every config, and every error. You just give the instructions.
Top comments (0)