Skip to main content

Bundle Ollama models into single portable archives for transfer between machines.

Project description

ollamazip logo

ollamazip

Bundle Ollama models into single portable archives for transfer between machines.

PyPI Python License: AGPL-3.0-or-later

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 .ollamazip archive
  • Rename or delete local models (with orphaned-blob pruning)
  • Browse a folder of .ollamazip archives, 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
Local models tab Archives tab
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: --verify validates every blob against manifest digests
  • Model renaming: --name newmodel:newtag imports under a different name
  • Cross-platform: Works on macOS, Linux, and Windows; respects OLLAMA_MODELS env 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ollamazip-0.1.0.tar.gz (1.6 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ollamazip-0.1.0-py3-none-any.whl (28.1 kB view details)

Uploaded Python 3

File details

Details for the file ollamazip-0.1.0.tar.gz.

File metadata

  • Download URL: ollamazip-0.1.0.tar.gz
  • Upload date:
  • Size: 1.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.10

File hashes

Hashes for ollamazip-0.1.0.tar.gz
Algorithm Hash digest
SHA256 04d450d17fe877de04bb56bc9cf68311a7e6b68a6dcc5b8f42efd1d82147173e
MD5 683ed176c27fcd962d326336eeb908fc
BLAKE2b-256 b06f8d9388a329da8baa32915a7a1a5c8e7ce055eae590d8f78180de3337d6ed

See more details on using hashes here.

File details

Details for the file ollamazip-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: ollamazip-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 28.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.10

File hashes

Hashes for ollamazip-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e21096afe60a31585d5988133306f7367455997526135c6fd62b773346c04d82
MD5 ee15a94d8184acd960be22f2842e3bb1
BLAKE2b-256 5f29933156d8e63da75a7fdc8de44bfe663ca24fb9d9fa226ce23717cd7afde3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page