Install
openclaw skills install ollamaRun, tune, and troubleshoot local Ollama models with reliable API patterns, Modelfiles, embeddings, and hardware-aware deployment workflows.
openclaw skills install ollamaUser needs to install, run, integrate, tune, or debug Ollama for local or self-hosted model workflows. Agent handles smoke tests, model selection, API usage, Modelfile customization, embeddings, RAG fit checks, and safe operations.
Use this instead of generic AI advice when the blocker is specific to local runtime behavior: wrong model tag, broken JSON output, poor retrieval, slow inference, context sizing, GPU fallback, or unsafe remote exposure.
Memory lives in ~/ollama/. If ~/ollama/ does not exist, run setup.md. See memory-template.md for structure.
~/ollama/
|-- memory.md # Durable context and activation boundaries
|-- environment.md # Host, GPU, OS, runtime, and service notes
|-- model-registry.md # Approved models, tags, quants, and fit notes
|-- modelfiles.md # Reusable Modelfile patterns and parameter decisions
|-- rag-notes.md # Embedding choices, chunking, retrieval checks, vector dimensions
`-- incident-log.md # Repeated failures, fixes, and rollback notes
Load only the file needed for the current blocker.
| Topic | File |
|---|---|
| Setup guide | setup.md |
| Memory template | memory-template.md |
| Install and smoke-test workflow | install-and-smoke-test.md |
| Local API and OpenAI-compatible patterns | api-patterns.md |
| Modelfile creation and context control | modelfile-workflows.md |
| Embeddings and local RAG checks | embeddings-and-rag.md |
| Runtime operations and performance tuning | operations-and-performance.md |
| Failure recovery and incident triage | troubleshooting.md |
ollama access on the target machine, or permission to guide installation.ollama list, ollama ps, and ollama show.Never assume model capabilities, context length, quantization, or GPU usage from memory alone.
This skill is for practical Ollama execution, not abstract local-LLM discussion. It covers:
http://127.0.0.1:11434/api and OpenAI-compatible usage on /v1Keep only durable operational context in ~/ollama/:
ollama is installed and reachable before proposing any deeper fix.ollama --version, ollama list, ollama ps, and one minimal generation or /api/tags request.ollama show or /api/show before claiming context length, quantization, or capabilities.SYSTEM, TEMPLATE, or PARAMETER settings in the Modelfile are fighting the app prompt.ollama ps to confirm processor split before promising performance.format: "json" or a JSON schema, set low temperature, and validate the parsed result before taking downstream actions./v1 assumptions instead of assuming every feature maps 1:1.11434 without explicit approval and a minimal-risk network plan.latest everywhere -> upgrades silently change behavior and break reproducibility.ollama run -> app integration still fails on /api or /v1.Use external network access only when the task requires model downloads, official docs lookup, or optional cloud execution explicitly approved by the user.
| Endpoint | Data Sent | Purpose |
|---|---|---|
| https://ollama.com/* | model identifiers, optional doc queries, and optional cloud API requests | Official docs, library lookups, model pulls managed by the Ollama runtime, and optional cloud execution |
No other data is sent externally.
Data that leaves your machine:
https://ollama.com/api instead of local inferenceData that stays local:
~/ollama/This skill does NOT:
OLLAMA_API_KEY or other secrets in skill filesBy using this skill, model pulls and optional cloud requests may go to Ollama infrastructure when the user explicitly chooses those paths. Only install if you trust Ollama with that data.
This skill ONLY:
This skill NEVER:
Install with clawhub install <slug> if user confirms:
ai - Frame when local Ollama is the right fit versus cloud inference.models - Compare local model families, sizes, and capability tradeoffs before pinning defaults.api - Reuse robust HTTP request, retry, and parsing patterns around local services.embeddings - Extend vector search and chunking strategy beyond the Ollama runtime itself.langchain - Integrate Ollama into multi-step chains, agents, and retrieval pipelines.clawhub star ollamaclawhub sync