Claude Code Plugins

Community-maintained marketplace

Feedback

ollama-service-persistence

@Cloudhabil/AGI-Server
1
0

Create, update, and validate a persistent Windows service for Ollama (auto-start on boot), including setting OLLAMA_MODELS and managing the service lifecycle. Use when Ollama must be always-on or models must live in a custom directory.

Install Skill

1Download skill
2Enable skills in Claude

Open claude.ai/settings/capabilities and find the "Skills" section

3Upload to Claude

Click "Upload skill" and select the downloaded ZIP file

Note: Please verify skill by going through its instructions before using it.

SKILL.md

name ollama-service-persistence
description Create, update, and validate a persistent Windows service for Ollama (auto-start on boot), including setting OLLAMA_MODELS and managing the service lifecycle. Use when Ollama must be always-on or models must live in a custom directory.

Ollama Service Persistence (Windows)

Use this skill to install or update a Windows Service that runs ollama serve with a fixed OLLAMA_MODELS path.

Quick start (admin PowerShell)

  1. Install/update persistence (try Task Scheduler first; Startup fallback if tasks are blocked) and point models to the repo store:
.\skills\operations\ollama-service-persistence\scripts\ollama_service_manager.ps1 -Action Install -Mode Task -TaskScope Auto -ModelsDir "C:\Users\usuario\Business\CLI_A1_GHR\CLI-main\models" -OllamaHost "127.0.0.1:11435"

Startup fallback (no Task Scheduler needed):

.\skills\operations\ollama-service-persistence\scripts\ollama_service_manager.ps1 -Action Install -Mode Startup -ModelsDir "C:\Users\usuario\Business\CLI_A1_GHR\CLI-main\models" -OllamaHost "127.0.0.1:11435"
  1. Check status:
.\skills\operations\ollama-service-persistence\scripts\ollama_service_manager.ps1 -Action Status -Mode Task

Startup status:

.\skills\operations\ollama-service-persistence\scripts\ollama_service_manager.ps1 -Action Status -Mode Startup
  1. Verify models:
ollama list

Notes

  • Requires admin privileges (service create/config + system env var).
  • The script writes/updates scripts\ollama_service.ps1 in the repo root and uses it as the service runner.
  • If sc.exe returns 1053, use -Mode Task (Task Scheduler). ollama.exe is not a native Windows service.
  • -TaskScope Auto tries SYSTEM at boot, then falls back to USER at logon if SYSTEM is denied.
  • If Task Scheduler is blocked, use -Mode Startup to drop a user logon launcher in the Startup folder.
  • If sc.exe returns “Access denied,” run the command in an elevated PowerShell session.
  • Manual fallback: ollama serve is non-persistent and must be started after reboot.

Removal

.\skills\operations\ollama-service-persistence\scripts\ollama_service_manager.ps1 -Action Remove