How to Set Up an AI Server at Home With a Mini PC
In this article
You can set up an AI server at home with a mini PC by installing a Linux distribution or Windows, running a local inference tool such as Ollama or LM Studio, pulling a model that fits your RAM, and exposing it on your local network so your other devices can reach it. The whole job is mostly software: a modern mini PC with 16 GB of RAM or more and a reasonably recent CPU will run small language models at usable speeds, and a model with 7–8 billion parameters is a realistic target for a 16 GB machine. Before you start, decide what you actually want the server to do (chat, document search, image generation, or an API for other apps), because that choice determines how much RAM and storage you need.
What You'll Need
- A mini PC with a 64-bit x86 CPU (Intel or AMD) and at least 16 GB of RAM; 32 GB is much more comfortable for larger models.
- An SSD with at least 100 GB free. Model files are large, and a 7–8B model in a quantized format typically takes several gigabytes.
- A wired Ethernet connection to your router, or a stable Wi-Fi connection. Wired is strongly preferred for a machine you will leave running.
- A monitor and keyboard for the initial setup, or a way to connect over the network once the OS is installed.
- An operating system image on a USB stick: a mainstream Linux distribution such as Ubuntu, or Windows if you prefer it. Both work; Linux generally leaves more RAM free for the model.
- Optional: a small UPS so an unexpected power cut does not corrupt the SSD.
You do not need a dedicated graphics card for this. A mini PC with integrated graphics will run models on the CPU, which is slower but entirely workable for one or two users. A discrete GPU makes responses much faster but is not required to get started.
Step-by-Step
- Install the operating system. Create a bootable USB stick with the official tool for your chosen OS, boot the mini PC from it, and complete a clean install. During setup, create a user account with a strong password. If you choose Linux, enable automatic security updates during installation. Menu labels in the installer vary slightly between versions and distributions, so follow the on-screen wording rather than a fixed path.
- Update the system and install drivers. On Linux, run the system update from the terminal or the software updater. On Windows, open Settings > Windows Update and install everything offered, then check the manufacturer's support page for chipset and network drivers. A current network driver matters more than you would expect, because a dropped connection makes the server unreachable.
- Give the machine a fixed local address. Either set a static IP in the network settings or, better, log into your router's admin page and add a DHCP reservation for the mini PC's MAC address. This keeps the address stable across reboots, which you need for bookmarks and for any other app that calls the server.
- Install a local inference tool. Ollama is the simplest option and is available for Linux, macOS and Windows from its official site. LM Studio is a friendlier graphical alternative on Windows and Linux. Download only from the official project site or your distribution's package repository, never from a third-party mirror.
- Pull a model sized to your RAM. As a rough rule, keep the model file under about half your total RAM so the system and the tool have room to work. On 16 GB, start with a 7–8B parameter model in a 4-bit quantized format. On 32 GB you can try a 13–14B model. Larger models will either refuse to load or slow to a crawl.
- Test it locally first. Run a prompt from the terminal or the app's chat window on the mini PC itself. Confirm you get a coherent answer and note roughly how many words per second it produces. This baseline tells you whether later slowness is the network or the model.
- Expose it to your local network. Ollama listens on port 11434 by default. To accept connections from other devices, you must configure it to listen on all interfaces rather than only localhost; the exact method is documented in the project's own README and differs by OS. On Linux this is usually an environment variable set in the service configuration, and on Windows it is set in the user environment variables before starting the app.
- Open the firewall only on your local network. Allow the port through the OS firewall for private or local networks only. Do not forward the port on your router and do not expose it to the internet. A home AI server has no built-in authentication, so anyone who reaches the port can use it.
- Connect from another device. From a laptop or phone on the same Wi-Fi, point a compatible client at
http://<server-ip>:11434. Many chat front-ends support a custom server address in their settings. Test with a short prompt and compare the speed to your local baseline. - Make it start automatically. Configure the inference tool to run as a service so it comes back after a reboot or power cut. On Linux this is a systemd service; on Windows, use Task Scheduler with the trigger set to at startup. Reboot once and confirm the server answers without you logging in.
- Set up basic monitoring and backups. Check free disk space periodically, since model files accumulate quickly, and keep a note of which models you use so you can re-download them after a reinstall. If you store documents for retrieval, back those up separately.
Common Mistakes
- Choosing a model that is too large. The most common failure is pulling a model that exceeds available RAM, which causes swapping, extreme slowness, or a crash. Start small and scale up only after measuring.
- Leaving the server bound to localhost. If other devices cannot connect, the tool is usually still listening only on the loopback address.
- Exposing the port to the internet. There is no login by default. If you need remote access, use a VPN into your home network instead of port forwarding.
- Using Wi-Fi for a machine that never moves. Wireless dropouts cause timeouts that look like model problems.
- Forgetting the firewall. A correct server configuration still fails if the OS firewall blocks the port.
- Downloading installers from unofficial sites. Use only official project pages and your OS's package manager.
Tips
- Keep the mini PC somewhere with airflow. Small cases heat up under sustained load, and thermal throttling looks exactly like a slow model.
- Write down the server's IP address and the exact model names you use. Rebuilding later is much faster with that note.
- Quantized model formats trade a little quality for a large speed and memory gain; for everyday chat the difference is usually acceptable.
- If you only ever use one device, skip the network steps entirely and run the tool locally. It is simpler and just as capable.
- Test after every change, one change at a time, so you always know what broke it.
Troubleshooting
Other devices cannot connect. First check the server answers locally. Then confirm the tool is listening on all interfaces, that the firewall allows the port on private networks, and that both devices are on the same subnet. Guest Wi-Fi networks often isolate clients from each other, which blocks the connection no matter what you configure.
Responses are extremely slow. Compare against your local baseline. If local speed is fine but remote is slow, the problem is the network. If both are slow, the model is too large for your RAM or the CPU is throttling. Try a smaller model and check that the case is not overheating.
The model fails to load. This is almost always insufficient memory. Close other applications, choose a smaller or more heavily quantized model, and confirm you are not running two models at once.
It stopped working after a reboot. The service is probably not set to start automatically, or an environment variable was set only for the current session. Re-check the service configuration and set variables persistently.
Disk is full. Remove models you no longer use through the tool's own delete command or interface, and check for partial downloads.
Frequently Asked Questions
Do I need a GPU in the mini PC?
No. CPU inference works and is fine for one or two users. A GPU makes responses noticeably faster but is optional.
How much RAM do I need?
16 GB is a practical minimum for small models. 32 GB lets you run larger ones comfortably.
Can I access it from outside my home?
Only through a VPN into your home network. Do not forward the port directly, because the server has no authentication by default.
Which operating system is best?
Linux leaves more memory free and is easy to run as a service. Windows works fine and is simpler if you are already familiar with it.
Will it run while I use the mini PC for other things?
Yes, but other applications compete for RAM. A dedicated machine gives more predictable performance.
Can several people use it at once?
Yes, but requests queue. Expect slower responses as more people use it simultaneously.