av/harbor/run-llms
Claude Code and agent skill by av/harbor
- community
- ext:[{"type":"config","description":"Configuration overrides"}]
Checking that the SKILL.md file is still in the repository.
Comprehensive guide for setting up and running local LLMs using Harbor. Use when user wants to run LLMs locally, set up or troubleshoot Ollama, Open WebUI, llama.cpp, vLLM, SearXNG, Open Terminal, or similar local AI services. Covers full setup from Docker prerequisites through running models, per-service configuration, VRAM optimization, GPU troubleshooting, web search integration, code execution, profiles, tunnels, and advanced features. Includes decision trees for autonomous agent workflows and step-by-step troubleshooting playbooks.
Install
npx vskill@latest install av/harbor/run-llmsSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as av/harbor/run-llms.
Run LLMs Locally with Harbor
Harbor is a containerized LLM toolkit. This skill enables autonomous setup, configuration, troubleshooting, and operation of local LLM infrastructure.
Agent Decision Trees
Use these decision trees to determine what action to take for common user requests.
User wants to run an LLM
User has GPU issues
User wants web search in chat
User wants to change the model
User wants code execution in chat
User wants to expose Harbor to network/internet
Initial Setup Workflow
- Check prerequisites
- Install Harbor CLI
- Start default services (Open WebUI + llama.cpp)
- Pull a model
- Verify the setup
Step 1: Check Prerequisites
If Docker missing:
- Linux: Install via official Docker repo
- macOS: Install Docker Desktop
- Windows: Install Docker Desktop + WSL2 (run all commands in WSL2)
If Docker Compose too old:
Linux permission fix (if docker commands fail):
Step 2: Install Harbor
Verify:
Step 3: Start Harbor
First run downloads images (may take several minutes). Wait for healthy output:
Open UI: harbor open
First launch requires creating a local admin account in the browser.
Step 4: Pull a Model
Step 5: Verify
harbor open— opens UI in browser- Select the pulled model from dropdown
- Send a test message
Core Commands
⚠️ CRITICAL WARNING FOR AI AGENTS:harbor logstails indefinitely by default (passes-f). If you use this in your Bash tool, it will hang your execution until timeout. ALWAYS use `docker logs harbor.<service>` instead to read logs safely.
| Command | Purpose | ||
|---|---|---|---|
harbor up [services...] | Start services (defaults + specified) | ||
harbor up --no-defaults <svc> | Start only specified services | ||
harbor down | Stop all services | ||
harbor ps | Show running services | ||
harbor logs [service] | ⚠️ TAILS INDEFINITELY (HANGS AGENTS). Use docker logs instead | ||
docker logs harbor.<service> | Non-tailing logs (SAFE FOR AGENTS) | ||
harbor open [service] | Open in browser | ||
harbor url [service] | Print service URL | ||
harbor url --lan <service> | Print LAN URL | ||
harbor url -i <service> | Print Docker-internal URL | ||
| `harbor pull <model\ | service>` | Download model or pull Docker image | |
harbor restart [service] | Restart service(s) | ||
harbor build <service> | Build service image | ||
harbor shell <service> | Interactive shell in container | ||
harbor exec <service> <cmd> | Run command in container | ||
harbor run <service> <cmd> | One-off command in fresh container | ||
harbor doctor | System diagnostics | ||
harbor fixfs | Fix file system ACLs for service volumes | ||
harbor top | GPU monitoring via nvtop | ||
harbor size | Show disk usage | ||
harbor find <pattern> | Find files in caches | ||
harbor eject | Export standalone docker-compose config | ||
harbor qr <service> | Generate QR code for service URL |
Model Management
Pull Sources
Pull routing logic: specs with / are tried against HuggingFace first (HEAD request, 5s timeout), then fall through to Ollama if unreachable.
Cross-Source Model Management
HuggingFace Tools
Service: Ollama
Handle:ollama| Port: 33821
Ergonomic wrapper around llama.cpp with model management, auto-pull, and OpenAI-compatible API.
Ollama CLI
Ollama Model Sources
From Ollama registry:
From HuggingFace (hf.co prefix):
Ollama Custom Modelfiles
Modelfiles in $(harbor home)/services/ollama/modelfiles/ can be referenced as:
Ollama Context Length
Note: harbor ollama ctx syncs to env, but not vice versa.
Ollama Configuration
| Config Key | Default | Purpose | |
|---|---|---|---|
OLLAMA_CACHE | ~/.ollama | Cache location (absolute or relative to harbor home) | |
OLLAMA_HOST_PORT | 33821 | Host port | |
OLLAMA_VERSION | latest | Docker image tag | |
OLLAMA_INTERNAL_URL | http://ollama:11434 | URL given to connected services (change to use external Ollama) | |
OLLAMA_DEFAULT_MODELS | mxbai-embed-large:latest | Comma-separated models to pull on startup | |
OLLAMA_CONTEXT_LENGTH | 4096 | Global default context length |
Switching to External Ollama
Ollama Troubleshooting
Model loading failures:
Slow first inference: Expected — model is loading into memory. Subsequent requests are fast.
Context length issues:
Model not found after pull:
Service: llama.cpp
Handle:llamacpp| Port: 33831 | Default service (starts withharbor up)
LLM inference in C/C++. Bypasses Ollama's release cycle for access to latest models and features.
llama.cpp Modes
Single-model mode — set a specific model, server loads it on start:
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/run-llms/SKILL.md
Popularity
- Repository stars
- 2,953
- Repository forks
- 200
- Repository npm downloads, 7 days
- 9
- 7-day trend score
- 51
Stars and forks are for the whole GitHub repository, not this skill alone. Downloads are for the repository's npm package. Refreshed 20 May 2026, 6 months ago.
Extension points
configConfiguration overrides
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/av/harbor/run-llms)