Bundle Ollama models into single portable archives for transfer between machines.
Project description
ollamazip
Bundle Ollama models into single portable archives for transfer between machines.
Installation
pip install ollamazip
# With zstd compression support (recommended):
pip install ollamazip[zstd]
# With the graphical interface:
pip install ollamazip[gui]
# GUI in a native desktop window (via pywebview):
pip install ollamazip[gui-native]
Usage
# Pack a model into a portable .ollamazip file
ollamazip pack llama3:8b
ollamazip pack mymodel:latest -o mymodel.ollamazip
ollamazip pack qwen3:27b --compress gzip
# Unpack on another machine
ollamazip unpack llama3-8b.ollamazip
ollamazip unpack mymodel.ollamazip --name newname:v2
ollamazip unpack mymodel.ollamazip --verify
# Inspect an archive without unpacking
ollamazip list mymodel.ollamazip
# List installed Ollama models
ollamazip models
# Launch the graphical interface (opens in browser)
ollamazip gui
ollamazip gui --native # open in a native window (requires gui-native extra)
Graphical interface
ollamazip gui starts a small local web app (NiceGUI) that lets you:
- Browse installed Ollama models with sizes
- Pack any local model into a
.ollamaziparchive - Rename or delete local models (with orphaned-blob pruning)
- Browse a folder of
.ollamaziparchives, inspect metadata, unpack, move, or delete them
By default it opens http://127.0.0.1:8734 in your browser. Pass --native to
run in a standalone desktop window instead.
| Local models | Archives |
|---|---|
| Browse, pack, rename, delete | Inspect, unpack, move, delete |
Features
- Single-file bundles: Packs the manifest and all content-addressed blobs into one archive
- Smart compression: Auto-selects zstd (if available) or gzip; override with
--compress - Blob deduplication: Skips blobs already present on the target machine during unpack
- SHA256 verification:
--verifyvalidates every blob against manifest digests - Model renaming:
--name newmodel:newtagimports under a different name - Cross-platform: Works on macOS, Linux, and Windows; respects
OLLAMA_MODELSenv var - No dependencies: Core functionality uses only the Python standard library; zstd is optional
How it works
Ollama stores models as a JSON manifest referencing content-addressed blobs (SHA256).
ollamazip pack reads the manifest, collects all referenced blobs, and bundles them
into a tar archive. ollamazip unpack extracts them into the target machine's Ollama
model store (~/.ollama/models/).
License
Copyright © Horst Herb.
Licensed under the GNU Affero General Public License v3.0 or later. AGPL-3.0 means you are free to use, modify, and redistribute this software, but any modified network-facing deployment must make the corresponding source available to its users.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ollamazip-0.1.1.tar.gz.
File metadata
- Download URL: ollamazip-0.1.1.tar.gz
- Upload date:
- Size: 1.6 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0086ef1d172dca9d32988f8933d0549d378547a0a5e21e905ddd8f0d1a8e4cc8
|
|
| MD5 |
aabf6a9cd97803538b5c7d2b4edfba65
|
|
| BLAKE2b-256 |
1bd7e78f6cd6d9c7068d2997b0842905dbd5664202bb083b095a6d2bc5e09fe1
|
File details
Details for the file ollamazip-0.1.1-py3-none-any.whl.
File metadata
- Download URL: ollamazip-0.1.1-py3-none-any.whl
- Upload date:
- Size: 28.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
33e3c75fb3df6cd4e3687ccfa035fd0e2ab284ccc29e3f50188564b5e340866d
|
|
| MD5 |
87133a0a39dfe05f9d1c282ed1711f32
|
|
| BLAKE2b-256 |
9cca0bf2e568dab7dc3d50c37790a15bad30f5ba4f02f9368684f53443771f04
|