Lightweight, Python-first model manager for local LLMs (the package manager for local AI models).
Project description
ModelDock
The lightweight, Python-first model manager for local AI models — the package manager for local LLMs.
ModelDock discovers, downloads, caches, verifies, and loads local LLMs through
pluggable runtime adapters. It does not run inference itself; it orchestrates
runtimes (starting with Ollama). No more manual ollama pull commands — just
write md.load("llama3") and ModelDock handles the rest.
Features
- Python-first API —
md.load("llama3")auto-installs if missing and returns a ready client. - Searchable registry — browse models, categories, capabilities, and sizes without leaving Python.
- Bulk installation —
md.install_category("coding")pulls recommended models at once. - Smart caching — never re-download installed models; content-addressed offline cache.
- Extensible runtimes — Ollama ships first; LM Studio, llama.cpp, Jan AI, GPT4All, vLLM are drop-in adapters.
- Cross-platform — Windows, macOS, Linux via
platformdirs. - Zero-config, beginner-friendly — works offline with a bundled catalog.
Quick Start
Prerequisites
- Python 3.9–3.12
- A local Ollama install (for the first runtime)
Installation
pip install modeldock
# with the Ollama backend helper (optional):
pip install modeldock[ollama]
Basic Usage
import modeldock as md
# Auto-installs if missing, then returns a ready-to-use client
client = md.load("llama3")
print(client.chat(model="llama3", messages=[{"role": "user", "content": "Hi!"}]))
Installation
From PyPI
pip install modeldock
From Source
git clone https://github.com/OpenAgentHQ/modeldock.git
cd modeldock
python -m venv .venv && source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install -e ".[dev,ollama]"
Usage
Discover and manage models
import modeldock as md
md.list() # browse the catalog
md.search("coding") # search by name / capability / category
md.installed() # what's already local
md.info("qwen3") # sizes, capabilities, variants
md.recommend(task="vision") # guided pick
md.install("llama3") # explicit download
md.install_category("coding") # bulk install
md.update("llama3") # pull newer tag
md.remove("llama3") # uninstall
md.verify("llama3") # integrity check
Command line
modeldock load llama3
modeldock install-category coding
modeldock list
modeldock search vision
modeldock cache status
See QUICKSTART.md for the full CLI/SDK reference.
Architecture
ModelDock follows Clean Architecture with SOLID principles. Dependencies point
inward: cli → core → ports ← adapters. The domain and ports layers
are pure (no I/O); concrete runtimes implement the RuntimePort protocol.
Interface: modeldock/__init__.py (SDK) + modeldock/cli (Typer)
Application: modeldock/core/ (services, LifecycleOrchestrator, ModelManager)
Domain: modeldock/domain/ (pure entities, no I/O)
Ports: modeldock/ports/ (typing.Protocol interfaces)
Adapters: modeldock/adapters/ (runtimes, registry, downloaders, cache, progress)
Common: modeldock/common/ (config, logging, platform, http, errors)
Data: modeldock/data/catalog.json (bundled model registry)
See Architecture.md for the full design contract.
Configuration
Config lives at ~/.config/modeldock/config.toml (Linux/macOS) or
%APPDATA%\modeldock\config.toml (Windows). Env vars MODELDOCK_* override.
default_backend = "ollama"
auto_install = true
log_level = "INFO"
progress_style = "rich"
| Variable | Description | Default |
|---|---|---|
MODELDOCK_LOG_LEVEL |
DEBUG/INFO/WARNING/ERROR |
ERROR |
MODELDOCK_DEFAULT_BACKEND |
Runtime backend | ollama |
MODELDOCK_AUTO_INSTALL |
Auto-download missing models | false |
MODELDOCK_CACHE_DIR |
Override cache location | platform default |
Supported Runtimes
| Runtime | Status |
|---|---|
| Ollama | Shipped (first) |
| LM Studio, llama.cpp, Jan AI, GPT4All, vLLM | Planned adapters |
Documentation
| File | Purpose |
|---|---|
| PROJECT.MD | Product vision, pain points, roadmap |
| Architecture.md | Design contract |
| AGENT.md | Agent/contributor rules + coding standards |
| QUICKSTART.md | 30-second user start |
| Development.md | Build, test, CI, release setup |
| CONTEXT.md | Orientation hub |
| INSTRUCTIONS.md | How to work in this repo |
| RELEASE.md | Release process |
Contributing
Contributions are welcome! See CONTRIBUTING.md for setup, branch naming, coding standards, and the PR process.
You can claim an issue to work on by commenting /claim on it — a maintainer
will assign it to you.
Support
- Issues: GitHub Issues
- Documentation: see the links above
See SUPPORT.md for more options.
Security
To report security vulnerabilities, see SECURITY.md. Do not open public issues for security problems.
Changelog
See CHANGELOG.md for a list of changes.
License
ModelDock is licensed under the MIT License — see LICENSE for details.
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 modeldock-0.1.0.tar.gz.
File metadata
- Download URL: modeldock-0.1.0.tar.gz
- Upload date:
- Size: 38.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ade40565407a20a9d238085de3b4db6f35e3248c1b915e999307f46d2f7838d2
|
|
| MD5 |
628c12b6a81832582f26156f4a736751
|
|
| BLAKE2b-256 |
024eeb48138eb1dd93552cf351c6abe6c5e0e41d5484009f4af626e05ad06ce3
|
Provenance
The following attestation bundles were made for modeldock-0.1.0.tar.gz:
Publisher:
release.yml on OpenAgentHQ/modeldock
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
modeldock-0.1.0.tar.gz -
Subject digest:
ade40565407a20a9d238085de3b4db6f35e3248c1b915e999307f46d2f7838d2 - Sigstore transparency entry: 2191901106
- Sigstore integration time:
-
Permalink:
OpenAgentHQ/modeldock@e346bed28c067de9adf7d99f4d6266e458693e5b -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/OpenAgentHQ
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@e346bed28c067de9adf7d99f4d6266e458693e5b -
Trigger Event:
push
-
Statement type:
File details
Details for the file modeldock-0.1.0-py3-none-any.whl.
File metadata
- Download URL: modeldock-0.1.0-py3-none-any.whl
- Upload date:
- Size: 58.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9968f5b5ebb6cd96df1ccc199c5bf77a21967163ca3c359adcaa45ac5c6dca36
|
|
| MD5 |
ccb5446bc470b727c49864b2c44f2ad2
|
|
| BLAKE2b-256 |
da7e43a1ff2bfc49d314a57326f25067f9cbdb19b47ba7b137102ec07a3cff65
|
Provenance
The following attestation bundles were made for modeldock-0.1.0-py3-none-any.whl:
Publisher:
release.yml on OpenAgentHQ/modeldock
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
modeldock-0.1.0-py3-none-any.whl -
Subject digest:
9968f5b5ebb6cd96df1ccc199c5bf77a21967163ca3c359adcaa45ac5c6dca36 - Sigstore transparency entry: 2191901114
- Sigstore integration time:
-
Permalink:
OpenAgentHQ/modeldock@e346bed28c067de9adf7d99f4d6266e458693e5b -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/OpenAgentHQ
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@e346bed28c067de9adf7d99f4d6266e458693e5b -
Trigger Event:
push
-
Statement type: