ollama-task-orchestrator

Other

Manage and execute Ollama tasks via SSH on a remote worker, providing queue status, exclusive task locking, and code generation commands.

Install

openclaw skills install ollama-task-orchestrator

Ollama Task Orchestrator — Skill Specification

Overview

Manage Ollama task queue and code generation on a remote worker machine via SSH. Provides queue health checks and task execution with exclusivity locking.

Commands

ollama status [clean] [--force] [--kill-ollama]

Check queue status and Ollama server health.

  • No args: show status only
  • clean: remove stale locks (prompts if Ollama is busy)
  • clean --force: remove stale locks without prompting
  • clean --kill-ollama: stop and restart Ollama server to cancel active generation

ollama run <task>

Execute a task on the worker machine. Available tasks:

TaskUsageDescription
pingollama run pingCheck runner is alive
codegenollama run codegen <instruction>Generate code via Ollama
writeollama run write <file> <instruction>Generate and write code to file
testollama run test [suite]Run project tests
execollama run exec <command>Run arbitrary shell command
list-projectsollama run list-projectsList available projects

Configuration

VariableDefaultDescription
OLLAMA_WORKER_HOSTworker-macSSH host alias
OLLAMA_RUNNER_PATH~/worker/runnerRunner scripts path on worker
WORKER_ROOT$HOME/workerWorker root directory
PROJECTS_DIR$WORKER_ROOT/projectsProjects directory
DEFAULT_PROJECT(none)Default project for context
OLLAMA_MODELqwen2.5-coder:32bOllama model
OLLAMA_URLhttp://localhost:11434/api/generateOllama API endpoint

Files

skill.py                  OpenClaw skill entry point
runner/
  queue_status.sh         Queue and server health checker
  run_task.sh             Task executor with Ollama integration
README.md                 Setup and usage guide
SKILL.md                  This file