ollama-migrator
PassAudited by VirusTotal on May 11, 2026.
Overview
Type: OpenClaw Skill Name: ollama-migrator Version: 1.0.0 The ollama-migrator skill is designed to move Ollama model files to a different disk to free up space. It includes scripts to check disk usage (check_ollama_status.py) and perform the migration (migrate_ollama.py), which involves stopping the Ollama service, copying files, and updating the OLLAMA_MODELS environment variable via the Windows Registry. While the scripts perform sensitive operations like process termination and registry modification, these actions are directly related to the stated purpose and include user confirmation prompts for destructive actions like cleanup.
Findings (0)
Artifact-based informational review of SKILL.md, metadata, install specs, static scan signals, and capability signals. ClawScan does not execute the skill or run runtime probes.
A failed or incomplete migration could still lead to deletion of the original Ollama model files, requiring re-download or recovery from backup.
When --cleanup is used, the script deletes the original ~/.ollama/models directory even if verification fails, contradicting the documented safety expectation that cleanup happens only after successful verification.
if not self.verify_migration():
print("警告:验证失败,但迁移可能成功")
...
if cleanup:
...
shutil.rmtree(self.source)Do not use --cleanup until you have manually verified the migrated models with `ollama list` and a test run; consider backing up the model directory first.
Future Ollama commands will use the new model directory until the environment variable is changed or removed.
The script persistently changes the user's OLLAMA_MODELS environment variable so future Ollama sessions use the new model path.
winreg.OpenKey(winreg.HKEY_CURRENT_USER, "Environment", 0, winreg.KEY_SET_VALUE) winreg.SetValueEx(key, "OLLAMA_MODELS", 0, winreg.REG_EXPAND_SZ, str(self.target))
Confirm the target path is correct and keep a note of the previous model location before running the migration.
A referenced verification helper may be unavailable, so users may need to verify migration manually.
SKILL.md lists `scripts/verify_ollama.py` as a script tool, but the complete manifest only includes two scripts. This looks like incomplete or inconsistent packaging rather than hidden code.
3 file(s): SKILL.md scripts/check_ollama_status.py scripts/migrate_ollama.py
Use the built-in `ollama list` and a manual model run to verify success, and treat the missing helper as a documentation/package issue.
