Originally published byDev.to
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
norax-portable/
โโโ norax.sh # Launcher
โโโ python/ # Standalone venv (252MB)
โโโ bin/ollama # Ollama binary (42MB)
โโโ lib/ollama/ # GGML CPU libs (6.4MB)
โโโ norax/ # Agent source (2.1MB)
โโโ memory/ # Memory database (35MB)
โโโ config/ # Runtime config
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 news from United StatesUnited States
NORTH AMERICA
Related News
Secret Claude Tracker Shocks Users After Anthropic's Anti-Surveillance Stance
12h ago
EV Batteries Defy Expectations, Last Hundreds of Thousands of Miles
1d ago
GBase 8a Performance Anomaly Case Study: How a Single Parameter Change Sparked a Chain Reaction
1d ago
Who Else Has Inherited a Codebase With Zero Comments and a Prayer?
1d ago
ๅฎ็พ็ๅนณๅบธ
4h ago