ollama
Skill by ericrisco
Runs open-weight LLMs locally with Ollama. It covers pulling and tagging models, calling the local API, choosing a quantization, writing Modelfiles, and sizing VRAM and RAM. Built for developers working on a single machine.
Install ollama
Built from the published package, never by AI.
git clone --depth 1 https://github.com/ericrisco/rsc-harness /tmp/rsc-harness && mkdir -p ~/.claude/skills && cp -r /tmp/rsc-harness/skills/ollama ~/.claude/skills/ollamaRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/ericrisco/rsc-harness /tmp/rsc-harness && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/rsc-harness/skills/ollama ~/.gemini/antigravity-cli/skills/ollamaAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill guides an assistant through running open-weight LLMs on one local machine with Ollama. It covers serving the daemon at localhost:11434, pulling and tagging models, and calling both the native HTTP API and the OpenAI-compatible /v1 layer. It also covers picking a quantization or GGUF, writing Modelfiles, and estimating the VRAM and RAM a model needs.
It is meant for developers who run models on their own hardware. When a model will not fit on one box, the skill points to remote GPU services such as runpod or modal, and to huggingface for downloading raw weights. The source includes a rule-of-thumb weights formula, a VRAM table by memory size, and a verify script that lints Modelfiles.
Written from the project's SKILL.md and checked against it.
What it can do
- Model managementPull, run, list, show and remove models, and check which models are loaded in memory.
- Quantization guidanceCompares Q4_K_M, Q8_0 and fp16 by memory use and quality loss.
- VRAM sizingGives a rule-of-thumb formula and a table of comfortable model choices by memory size.
- Native chat APICalls /api/chat with options such as num_ctx and keep_alive.
- OpenAI-compatible layerPoints an OpenAI SDK at localhost:11434/v1 with a dummy key.
- Structured outputPasses a JSON schema as the format field so replies follow valid JSON.
- ModelfilesBuilds a named model from a base model with a system prompt and parameters.
- Quantize on createUses ollama create with --quantize when the source model is fp16 or fp32.
- Modelfile verificationRuns scripts/verify.sh to lint a Modelfile and check for local endpoint use.
What you need
- Ollama installed, or ollama serve available
- Enough VRAM or unified memory for the chosen model
- Python with the OpenAI SDK for the compatibility example
Try asking
- Which Ollama model and quant fit my 12 GB GPU for coding help?
- Write a Modelfile that sets a code reviewer system prompt on qwen3:8b.
- Point my OpenAI Python script at my local Ollama server.
Good to know
- The sizing formula is a rule of thumb. Verify with ollama show.
- One daemon with limited parallelism. Not built for fleet serving.
- The MLX backend applies only to Macs with more than 32 GB unified memory.
- --quantize only works from an fp16 or fp32 source model.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/ollama/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to ollama
All alternatives →Aligns a Qwen Code feature with a Codex or Claude Code reference agent. It runs both under the same scenario, captures HTTP and terminal traces, and compares them until behavior matches.
Searches, views, creates, updates, and deletes the user's Google Contacts from an AI assistant. It is for people who want to manage their address book through conversation. A one-time Google connect is required before it returns data.
Guides an AI assistant on error handling choices. It covers when to use Result, Option, ? propagation, unwrap, expect and panic, plus anyhow and thiserror.
Caveman is an agent skill that makes an AI assistant reply in a terse style. It cuts filler and keeps technical facts, code, commands and errors exact. It is built for users who want shorter, cheaper replies.
docs-sync audits or updates English SDK documentation against the requested implementation scope. It is for maintainers who want docs to match main branch features, configuration options, and defaults.
Guides an AI assistant through setting up and running monorepos with pnpm workspaces, Turborepo and Nx. Aimed at developers who need faster builds, shared code and managed dependencies across multiple packages.
Compare with agent-reproduce-align, google_contacts or m06-error-handling
ollama: common questions
Does this skill send requests to remote servers?
The skill targets local use at localhost:11434. It says remote or managed GPU serving belongs to other skills, such as runpod.
Why does a pulled model use no VRAM?
Pulled models sit on disk. A model uses VRAM only after a request loads it, and it unloads after keep_alive, which defaults to 5 minutes.
What should I do if a model does not fit my machine?
The source advises against dropping below Q4, since quality falls and it still runs out of memory at real context. It suggests moving the work to a remote GPU.
How do I install ollama?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is ollama free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is ollama safe to use?
It scores 72 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to ollama?
Similar skills: agent-reproduce-align, google_contacts, m06-error-handling, caveman.
