cd /news/artificial-intelligence/portable-ai-on-a-usb-stick · home topics artificial-intelligence article
[ARTICLE · art-42146] src=dev.to ↗ pub= topic=artificial-intelligence verified=true sentiment=↑ positive

Portable AI on a USB Stick

A developer created a portable AI agent that fits on a USB stick, bundling Python, Ollama, and memory into a 340MB self-contained package for x86_64 Linux. By stripping GPU libraries and using relative paths, the agent runs without system dependencies, offering CPU-only inference and memory persistence across sessions.

read1 min views1 publishedJun 27, 2026

#

Portable AI on a USB Stick

Package an AI agent with bundled Python, Ollama, and memory into a 340MB self-contained package that runs on any x86_64 Linux machine.

#

Structure

#

Key Decisions

  • CPU-only Ollama — stripped GPU libs, saves 5GB
  • Bundled venv — no system Python needed
  • Relative paths — works from any mount point
  • Model download on first run

#

Results

  • Full agent runtime with memory, tools, HTTP API
  • Ollama inference (CPU mode)
  • Memory persistence across sessions
  • No system dependencies required

Portable AI is possible today. Bundle the runtime, strip the GPU libs, use relative paths.

── more in #artificial-intelligence 4 stories · sorted by recency
── more on @ollama 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/portable-ai-on-a-usb…] indexed:0 read:1min 2026-06-27 ·