Skip to content

How to Run Offline AI from a USB Drive on Windows with KoboldCpp

Share:

The Problem at a Glance

You can carry KoboldCpp and a compatible GGUF model on a USB drive and run local AI on a Windows PC. The USB stores the files, while the host computer provides the RAM, CPU, and optional GPU power needed for inference.

Diagram of how to run offline AI from a USB drive with KoboldCpp on a Windows PC

You can run offline AI from a USB drive on a Windows PC by keeping KoboldCpp and a compatible GGUF model on the drive. After you download the required files, the AI can run locally without sending prompts to an online AI service.

The important detail is that the USB drive is mainly portable storage. The actual AI processing happens on the computer you plug it into, using that PC’s RAM, CPU, and, when supported, GPU.

This makes the setup useful for carrying a local AI environment between compatible Windows computers, but it does not turn the USB drive itself into an AI processor.

Run Offline AI from a USB Drive: How the Setup Works

KoboldCpp is a self-contained local AI application designed to run GGUF models. On Windows, the official project provides prebuilt executables that do not require a traditional installation.

A portable setup normally contains two main items:

  • the KoboldCpp executable
  • one compatible .gguf model file

You can store both on a USB drive, open KoboldCpp from that drive, select the model, and launch the local interface.

The model is then loaded using the host computer’s memory and processing hardware.

For the official project documentation, see the KoboldCpp GitHub repository and KoboldCpp wiki.

Before You Start

To run offline AI from a USB drive, you will need:

  • a Windows PC
  • a USB flash drive or external SSD with enough free space
  • the official KoboldCpp Windows executable
  • a compatible GGUF model
  • enough system RAM for the model you choose
  • internet access for the initial downloads

A dedicated GPU is optional. KoboldCpp can run on CPU, while supported GPU acceleration can improve performance.

Check the USB File System

GGUF model files can be several gigabytes in size.

FAT32 cannot store a single file larger than 4 GiB. If your chosen model exceeds that limit, use a USB drive formatted with a file system that supports larger files, such as exFAT or NTFS.

Warning: Formatting a USB drive erases the files already stored on it. Back up anything important before changing the file system.

You can check the current file system in Windows:

  1. Open File Explorer.
  2. Select This PC.
  3. Right-click the USB drive.
  4. Select Properties.
  5. Check File system on the General tab.

If the drive is already exFAT or NTFS, you normally do not need to reformat it just for this setup.

1. Download KoboldCpp from the Official GitHub Release

Use the official project rather than a third-party download site.

Open the latest KoboldCpp releases page.

For a typical Windows PC, choose the Windows executable listed in the release assets.

The main project documentation currently distinguishes between builds such as:

  • koboldcpp.exe for the standard Windows build
  • koboldcpp-nocuda.exe when NVIDIA CUDA support is not needed

The exact assets can change between releases, so read the release notes before downloading.

Save the executable to a temporary folder on your computer or directly to the USB drive.

Do not disable Windows security protections just to run a file from an unknown mirror. If Windows warns about the application, first confirm that you downloaded it from the official LostRuins/koboldcpp GitHub repository.

Download KoboldCpp and models only from official sources, and check if a website is fake before you download anything.

2. Download a Compatible GGUF Model

KoboldCpp does not include a text model by default. You need a compatible GGUF model separately.

The official KoboldCpp documentation recommends GGUF models and points users to repositories on Hugging Face and other compatible model sources.

For a first portable setup, choose a model small enough for the computers you expect to use.

Model requirements depend on several factors, including:

  • parameter count
  • quantization
  • context size
  • GPU offloading
  • available RAM and VRAM

KoboldCpp’s wiki gives rough memory examples for older Q4-class models at a relatively small context size: around 4 GB RAM for a 3B model, 8 GB for a 7B model, and 16 GB for a 13B model. Treat these only as approximate guidance because newer models, larger contexts, and different quantizations can change memory use.

A smaller quantized GGUF model is usually a better starting point for a portable USB setup.

Download only models from sources you trust, and check the model’s license before using or redistributing it.

3. Copy KoboldCpp and the Model to the USB Drive

Create a folder on the USB drive, for example:

Offline-AI

Inside it, you can keep:

Offline-AI
├── koboldcpp.exe
└── model.gguf

The actual model filename will normally be much longer.

Keeping the executable and model in one folder makes the portable setup easier to manage.

After copying, safely eject the USB drive and reconnect it to confirm the files can be read normally.

An external SSD will usually load large model files faster than a basic USB flash drive, but either can work as portable storage if it has enough capacity.

4. Open KoboldCpp and Select the GGUF Model

Connect the USB drive to the Windows computer where you want to run the AI.

Then:

  1. Open File Explorer.
  2. Open the USB drive.
  3. Open the folder containing KoboldCpp.
  4. Double-click the KoboldCpp Windows executable.
  5. In the launcher, locate the GGUF Text Model field.
  6. Select the .gguf model stored on the USB drive.

The official KoboldCpp quick-start instructions say that launching the Windows executable opens a GUI where you can select the model and configure the main launch settings.

If the executable does not start on a very old PC, check the current release notes for compatibility builds instead of downloading modified copies from unofficial websites.

5. Review the Preset and GPU Layers

For many users, the default settings are a reasonable place to start.

KoboldCpp’s documentation highlights Presets and GPU Layers as two of the main settings users may need to change.

If you have a compatible GPU, GPU layer offloading can move part of the model workload to VRAM and improve generation speed.

If you are unsure:

  • start with the default or automatic settings
  • avoid setting an aggressive GPU layer value immediately
  • reduce GPU layers if the model fails because of insufficient VRAM

A dedicated GPU is not required. CPU-only operation is possible, although generation can be slower.

Do not assume that a powerful USB drive will compensate for limited RAM or a slow CPU. The host computer still determines most of the actual inference performance.

6. Launch the Model

After selecting the model and reviewing the settings, select Launch.

KoboldCpp will begin loading the GGUF model.

Large models can take time to load, especially when they are being read from slower flash storage.

Wait until KoboldCpp reports that the model has loaded and the local server is ready.

The official project uses a local web interface and normally makes it available at:

http://localhost:5001

Keep KoboldCpp running while you use the local AI interface.

If the browser does not open automatically, enter the local address manually in your browser after the model finishes loading.

7. Disconnect the Internet and Test the Offline AI

Once KoboldCpp and the local GGUF model are fully downloaded, you can test whether the setup works without internet access.

  1. Make sure the model has loaded successfully.
  2. Disconnect Wi-Fi or Ethernet.
  3. Open the local KoboldCpp interface.
  4. Enter a simple prompt.
  5. Generate a response.

If the response is generated while the PC is offline, the local model is working without an online inference service.

This applies to a locally loaded GGUF model. KoboldCpp can also connect to external AI providers in other configurations, and those modes require network access.

For a genuinely offline setup, keep the workflow limited to the local model and local interface.

Once your offline AI is running, try these ChatGPT prompts for daily life for ideas.

What the USB Drive Does — and Does Not Do

The phrase “AI on a pen drive” can be misleading when you run offline AI from a USB drive.

The USB drive can carry:

  • KoboldCpp
  • the GGUF model
  • configuration or related files

But the USB drive does not perform the AI calculations by itself.

When the model runs, the Windows computer provides:

  • system RAM
  • CPU processing
  • optional GPU acceleration
  • VRAM when GPU layers are offloaded

This is why the same USB setup can feel fast on one computer and very slow on another.

USB Drive vs Internal SSD

A USB setup is useful when portability matters.

An internal SSD is usually the better choice when maximum speed and convenience matter more than portability.

USB Drive

Useful for:

  • carrying a local AI setup between PCs
  • keeping models separate from internal storage
  • experimenting without a traditional software installation

Possible drawbacks:

  • slower model loading on lower-speed flash drives
  • limited capacity
  • large GGUF files may not fit on FAT32

Internal SSD

Useful for:

  • faster model loading
  • keeping frequently used models available
  • running larger local AI setups more comfortably

You can also keep a backup copy on USB and copy the model to the PC’s SSD before launching it.

What If KoboldCpp Runs Very Slowly?

Slow performance when you run offline AI from a USB drive does not necessarily mean the setup is broken.

Common causes include:

  • the model is too large for the PC
  • insufficient RAM
  • too little GPU VRAM for the selected GPU layers
  • CPU-only generation
  • a large context size
  • a slow USB drive increasing model load time

Try a smaller GGUF model first.

You can also reduce GPU layers if the model fails to load because of VRAM limitations, or use a more suitable preset for the hardware.

What If the Model Will Not Load?

Check these points:

  • confirm the model is actually a .gguf file
  • confirm the model download completed successfully
  • make sure the PC has enough RAM
  • reduce GPU offloading if VRAM is insufficient
  • test the same model from an internal drive
  • update to a current stable KoboldCpp release

If only one model fails while another compatible GGUF model loads correctly, the problem may be specific to that model file or its compatibility.

Can You Put ChatGPT on a USB Drive?

Not in the literal sense of copying the official ChatGPT service onto a USB drive.

ChatGPT is an online service provided by OpenAI.

A USB-based KoboldCpp setup instead runs a separate local GGUF model on your own computer.

The experience can provide a chatbot-style interface, but it should not be described as the official ChatGPT service unless you are actually using an OpenAI service.

The same distinction applies to other commercial AI services and their official hosted products.

For research and slides, you can also generate a PowerPoint with NotebookLM online.

Is Offline AI More Private?

Running a local model can reduce the need to send prompts to an external AI inference service.

However, privacy still depends on the complete setup.

Consider:

  • where the model came from
  • which applications are running on the PC
  • whether the computer is connected to a network
  • whether browser extensions or other software can access local data
  • whether you intentionally enable remote or external-provider features

Do not assume that “offline AI” automatically makes the entire computer private or secure.

Quick Checklist

Before using offline AI from a USB drive:

  • Download KoboldCpp only from the official project.
  • Use a compatible GGUF model.
  • Check the model’s license and source.
  • Make sure the USB drive has enough free space.
  • Avoid FAT32 if the model file is larger than 4 GiB.
  • Confirm the host PC has enough RAM.
  • Select the model in KoboldCpp.
  • Start with conservative GPU settings.
  • Launch the local server.
  • Open the local interface.
  • Disconnect the internet and test a prompt.
  • Use an SSD instead if USB loading is too slow.

For more local AI and software guides, visit the FixMyDigital AI & Software section.

Frequently Asked Questions

Can I run offline AI from a USB drive?

Yes. You can store KoboldCpp and a compatible GGUF model on a USB drive and launch them from a Windows PC.

The computer still provides the RAM, CPU, and optional GPU resources needed for inference.

Does KoboldCpp need to be installed?

The official Windows version is distributed as a self-contained executable, so a traditional Windows installation is not required for the normal prebuilt workflow.

Do I need internet after the model is downloaded?

Not for normal local inference with a local GGUF model.

You need internet initially to download KoboldCpp and the model. External-provider modes and online services still require network access.

How much RAM do I need?

It depends on the model, quantization, and context size.

As a rough starting point, smaller local models can work with modest RAM, while larger models may require 16 GB, 32 GB, or more.

Choose a model that fits comfortably within the hardware you intend to use.

Can I use any AI model with KoboldCpp?

No. KoboldCpp is designed around supported local model formats, particularly GGUF for current text-model workflows.

Do not assume that a model distributed only as another format will load directly.

Is a USB flash drive better than an SSD for local AI?

Usually not for speed.

A USB drive is useful for portability, while an internal or external SSD generally provides faster access to large model files.

Final Thoughts

You can run offline AI from a USB drive with KoboldCpp, but the most accurate way to think about the setup is portable local AI storage rather than an AI computer inside a pen drive.

Keep the official KoboldCpp executable and a compatible GGUF model on the USB drive, connect it to a capable Windows PC, select the model, launch the local interface, and test it without an internet connection.

For the best experience, choose a model that matches the host computer’s RAM and GPU resources, use trusted download sources, and move the model to faster SSD storage when loading from a flash drive becomes a bottleneck.

Was this guide useful? Add a comment

Share what worked or where you got stuck.