Skip to content

civitai-hub v0.1.0

Choose a tag to compare

@mr8bit mr8bit released this 16 Jun 16:02
· 15 commits to main since this release

huggingface_hub, but for CivitAI — inspect a model and download its checkpoint/LoRA into a deduplicated managed cache, as a CLI and an importable library.

Highlights

  • civitai info <url|id> — model type, base/parent model, versions, and a file table (--json too).
  • civitai download <url|id> — smart version/file selection (--fp16/--fp32, --pruned/--full, --format, --file, --all), content-addressed dedup cache, range-resume, SHA256 verify, progress bar, --local-dir, --dry-run.
  • civitai base <url|id> — find the base checkpoints a LoRA runs on (its baseModel family), with --download N.
  • Library API: model_info, download, find_base_models.

Install

  • pipx install civitai-hub (PyPI)
  • docker run --rm ghcr.io/mr8bit/civit-ai-cli info 580857

See the README and docs/usage.md for the full reference.