Guide 2

Build a Fully Offline AI Workstation

Create a desktop AI powerhouse that works without any internet connection โ€” complete hardware assembly, operating system, models, and interfaces.

Why Go Fully Offline?

An offline AI workstation is the ultimate expression of self-hosted AI privacy. Unlike a home server that's connected to your network (and therefore, indirectly, to the internet), an offline workstation operates in complete isolation. It never phones home because it has no home to phone.

This guide builds a high-performance desktop machine running AI without internet connection. Every model, every inference engine, every interface โ€” all installed from downloaded files, all running without a single packet leaving the machine. This is the setup that journalists, researchers, legal professionals, and privacy absolutists demand.

Hardware Selection for Offline AI

An offline workstation has slightly different requirements than a server. You need a display, input devices, and enough local storage to hold your entire model library and operating system โ€” because you can't stream or download anything later.

Recommended Offline Workstation Build

  • GPU: RTX 3090 24GB (used, ~$800) or RTX 4090 24GB (~$1,700)
  • CPU: AMD Ryzen 7 7800X3D or Intel i7-14700K
  • RAM: 64 GB DDR5-6000 (2ร—32 GB)
  • Storage: 4 TB NVMe SSD (models + OS + workspace)
  • Backup storage: 8 TB external HDD for model archives
  • Motherboard: B650 (AMD) or Z790 (Intel) with WiFi/Bluetooth
  • PSU: 1000W 80+ Platinum
  • Case: Fractal Design North or similar high-airflow case
  • Monitor: 27" 1440p IPS display
  • UPS: 1500VA uninterruptible power supply

Step 1: Assemble the Hardware

Physical Build

Assembly follows standard PC building practices, with a few offline-specific considerations:

  • No WiFi dependency: Even though the motherboard has WiFi, we won't use it. Consider physically removing the WiFi antenna or disabling it in BIOS if your threat model requires it.
  • UPS is mandatory: An offline machine has no cloud backup. A sudden power loss during a long inference session could corrupt your model files. Budget for a quality UPS.
  • Dual storage strategy: Keep your OS and applications on a separate drive from your model files. If you ever need to reinstall the OS, your models survive untouched.
  • External backup drive: All your models and configurations live on this workstation. Back them up regularly to the external drive. No cloud backup means you're responsible for your own data safety.

Step 2: Prepare Installation Media

Download Everything First

Since the final machine will be offline, you need to prepare all software on a separate internet-connected computer:

  1. Download Ubuntu Desktop 24.04 LTS ISO and create a bootable USB drive.
  2. Download NVIDIA drivers: Get the .run installer from NVIDIA's website (search "NVIDIA driver 550 Linux"). Save it to a second USB drive.
  3. Download Ollama: Get the Linux install script from ollama.com/install.sh. Save it.
  4. Download models: Using the connected computer, pull the models you want via Ollama (llama3.1:8b, mistral-nemo:12b, qwen2.5-coder:7b) and export them. Models are stored in ~/.ollama/models/ โ€” copy the entire directory to your USB drive.
  5. Download Open WebUI: Get the Docker image (docker pull ghcr.io/open-webui/open-webui:main) and export it (docker save).
  6. Download additional tools: VS Code .deb package, Python, Git โ€” anything you'll want on the offline machine.

Label this USB drive clearly โ€” it's your offline software repository. Keep it updated as new models and tools are released.

Step 3: Install the Operating System

Ubuntu Desktop Installation

  1. Boot from the Ubuntu USB drive. Select "Try Ubuntu" first to verify hardware detection โ€” especially the GPU.
  2. Run the installer. Choose "Minimal installation" and check "Install third-party software for graphics and Wi-Fi hardware."
  3. When prompted for updates, select "Skip" โ€” the machine won't have internet access.
  4. Complete installation and reboot. Remove the USB drive when prompted.

Step 4: Install NVIDIA Drivers Offline

GPU Driver Setup Without Internet

  1. Insert your software USB drive and copy the NVIDIA .run file to the desktop.
  2. Before installing, disable the open-source Nouveau driver: sudo bash -c "echo 'blacklist nouveau' >> /etc/modprobe.d/blacklist-nvidia-nouveau.conf" and sudo update-initramfs -u
  3. Reboot, then press Ctrl+Alt+F2 to switch to a text console.
  4. Stop the display manager: sudo systemctl stop gdm
  5. Run the NVIDIA installer: sudo bash NVIDIA-Linux-*.run --no-opengl-files (the --no-opengl-files flag prevents conflicts with the system's Mesa libraries)
  6. Accept the license, allow it to install 32-bit compatibility libraries, and let it update the X configuration.
  7. Reboot: sudo reboot

After reboot, verify with nvidia-smi. You should see your GPU with driver version and CUDA version displayed.

Step 5: Install Ollama and Import Models

AI Engine Setup

  1. Copy the Ollama install script from your USB drive and run it: sudo bash install.sh
  2. Stop the Ollama service: sudo systemctl stop ollama
  3. Copy your pre-downloaded models from the USB drive to ~/.ollama/models/
  4. Restart Ollama: sudo systemctl start ollama
  5. Verify: ollama list should show all your imported models.
  6. Test: ollama run llama3.1:8b "Hello, are you running offline?"

At this point, you have a working command-line AI assistant with zero internet connectivity. This is the core of your offline AI device โ€” everything else builds on this foundation.

Step 6: Set Up the Desktop Interface

Chat Interface Without Internet

Install Open WebUI from your USB drive's Docker image:

  1. Install Docker from the .deb package on your USB drive: sudo dpkg -i docker-*.deb
  2. Load the Open WebUI Docker image: docker load < open-webui.tar
  3. Run the container: docker run -d -p 3000:8080 --add-host=host.docker.internal:host-gateway -v open-webui:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:main

Open Firefox and navigate to http://localhost:3000. Create your admin account. You now have a ChatGPT-style interface backed entirely by your local hardware, with no internet connection whatsoever.

For a more appliance-like experience, a ClawBox private AI device provides this exact setup in a pre-configured box โ€” ideal if you want the privacy benefits of offline AI without the multi-hour build process. But if you've followed this guide, you've built something more powerful and more customizable for less money.

Step 7: Install Development and Productivity Tools

Complete the Environment

Your offline workstation isn't just for chatting โ€” it's a complete development and productivity environment. Install from your USB drive:

  • VS Code: sudo dpkg -i code-*.deb โ€” install the Continue extension (also downloaded offline) for AI-assisted coding entirely on-device.
  • Python environment: Install Python packages from downloaded wheels. Set up Jupyter Lab for interactive AI experimentation.
  • Git: Install from .deb package. Configure local repositories โ€” you won't be pushing to GitHub, but Git is still invaluable for tracking your own work.
  • Image tools: Install Automatic1111 WebUI or ComfyUI from downloaded archives. Pre-download SDXL and Flux Schnell models to get image generation working.

Step 8: Configure for True Air-Gap Operation

Lock It Down

Having built the workstation without internet, now ensure it stays that way:

  • Disable WiFi and Bluetooth in BIOS if your threat model requires it.
  • Remove or disable the Ethernet interface: sudo ip link set eth0 down
  • Block network at the kernel level: sudo ufw default deny incoming && sudo ufw default deny outgoing && sudo ufw enable
  • Disable telemetry: Turn off Ubuntu's error reporting, usage statistics, and any other background services that try to phone home.

Your workstation is now a true air-gapped system. It runs AI completely isolated from any network โ€” the gold standard for running AI offline.

Maintaining an Offline Workstation

An offline machine requires a different maintenance workflow:

  • Update days: Every 1โ€“2 months, reconnect the machine to download OS updates, new models, and updated software packages. This is when you refresh your software USB drive for future offline installs.
  • Model rotation: As better models are released, download them during update days and remove old ones to free space. Keep the previous generation backed up on your external drive.
  • Backup discipline: Without cloud sync, backup is entirely your responsibility. Automate it: write a cron job that copies your work and configurations to the external drive nightly.

For a networked alternative that still prioritizes privacy, see our home AI server setup guide. For help picking the right components, check the hardware selection guide. And if you want to understand what software to run on this beast, the software and models guide has you covered.

Building an offline AI workstation is the ultimate project for anyone serious about private AI hardware. It's more work than buying a pre-built box or cloud subscription, but the result is something no company can take away from you: an AI that is truly, completely, permanently yours.

Build Summary
  • Type: Air-gapped desktop
  • GPU: RTX 3090/4090 24GB
  • OS: Ubuntu Desktop 24.04
  • Engine: Ollama (offline)
  • Interface: Open WebUI + VS Code
  • Total cost: ~$2,800โ€“4,000
  • Build time: 6โ€“8 hours
Offline Tips

Always have a software USB: Keep a dedicated USB drive with drivers, models, and tools. Update it during your maintenance windows.

Test before air-gapping: Verify everything works while still connected. Troubleshooting is much harder offline.

Document everything: Write down your configuration in a local text file. You can't Google solutions from an air-gapped machine.