据 AlphaMoat 统计,截至 2026-10,Ollama Local 累计下载 16,582 次、获 13 个星标,按累计下载量在本次参与排名的 10,914 个 AI 技能中排名第 1,702 位,在「AI 智能体」分类(1,632 个)中排名第 236 位。
列表默认按累计下载量排序,也可按星标排序;详情页排名按累计下载量计算。
| 平台 | 累计下载 | 星标 | 评论 |
|---|---|---|---|
| ClawHub ↗ | 7,533 | 11 | - |
| SkillHub ↗ | 1.7万 | 13 | — |
各平台的计数口径不同,统计时间不一致。
这个技能是做什么的
管理本地 Ollama 模型并用于对话、补全、嵌入和工具调用,也介绍 OpenClaw 子代理集成与模型选择。可用能力取决于本机已安装模型及资源;拉取或删除模型前检查名称与存储空间。
资料发布于 2026-10-27
可以用来做什么
- 管理本地模型和推理任务
- 使用本地模型生成嵌入或调用工具
什么时候用
- 需要在本机运行 Ollama 模型时
- 下载或删除模型前
示例提示词
以下是根据技能文档生成的示例,不代表实际运行结果。
月度数据趋势
2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。
| 月份 | 累计下载 | 环比 | 星标 |
|---|---|---|---|
| 2026-10 | 1.7万 | — | 13 |
| 2026-09 | 7,309 | — | 11 |
| 2026-08 | 8,701 | +25.0% | 13 |
| 2026-07 | 6,962 | -15.9% | 11 |
| 2026-06 | 8,275 | +2.9% | 12 |
| 2026-05 | 8,039 | — | 11 |
| 2026-03 | 6,819 | — | 10 |
SKILL.md 原文
以下是作者发布的原始文件,按纯文本显示,本站未做修改或审核;其中的链接不可点击,命令请核实后再运行。抓取于 2026-10-23。
--- name: ollama-local description: Manage and use local Ollama models. Use for model management (list/pull/remove), chat/completions, embeddings, and tool-use with local LLMs. Covers OpenClaw sub-agent integration and model selection guidance. --- # Ollama Local Work with local Ollama models for inference, embeddings, and tool use. ## Configuration
展开全部(共 149 行)收起
Set your Ollama host (defaults to `http://localhost:11434`):
```bash
export OLLAMA_HOST="http://localhost:11434"
# Or for remote server:
export OLLAMA_HOST="http://192.168.1.100:11434"
```
## Quick Reference
```bash
# List models
python3 scripts/ollama.py list
# Pull a model
python3 scripts/ollama.py pull llama3.1:8b
# Remove a model
python3 scripts/ollama.py rm modelname
# Show model details
python3 scripts/ollama.py show qwen3:4b
# Chat with a model
python3 scripts/ollama.py chat qwen3:4b "What is the capital of France?"
# Chat with system prompt
python3 scripts/ollama.py chat llama3.1:8b "Review this code" -s "You are a code reviewer"
# Generate completion (non-chat)
python3 scripts/ollama.py generate qwen3:4b "Once upon a time"
# Get embeddings
python3 scripts/ollama.py embed bge-m3 "Text to embed"
```
## Model Selection
See [references/models.md](references/models.md) for full model list and selection guide.
**Quick picks:**
- Fast answers: `qwen3:4b`
- Coding: `qwen2.5-coder:7b`
- General: `llama3.1:8b`
- Reasoning: `deepseek-r1:8b`
## Tool Use
Some local models support function calling. Use `ollama_tools.py`:
```bash
# Single request with tools
python3 scripts/ollama_tools.py single qwen2.5-coder:7b "What's the weather in Amsterdam?"
# Full tool loop (model calls tools, gets results, responds)
python3 scripts/ollama_tools.py loop qwen3:4b "Search for Python tutorials and summarize"
# Show available example tools
python3 scripts/ollama_tools.py tools
```
**Tool-capable models:** qwen2.5-coder, qwen3, llama3.1, mistral
## OpenClaw Sub-Agents
Spawn local model sub-agents with `sessions_spawn`:
```python
# Example: spawn a coding agent
sessions_spawn(
task="Review this Python code for bugs",
model="ollama/qwen2.5-coder:7b",
label="code-review"
)
```
Model path format: `ollama/<model-name>`
### Parallel Agents (Think Tank Pattern)
Spawn multiple local agents for collaborative tasks:
```python
agents = [
{"label": "architect", "model": "ollama/gemma3:12b", "task": "Design the system architecture"},
{"label": "coder", "model": "ollama/qwen2.5-coder:7b", "task": "Implement the core logic"},
{"label": "reviewer", "model": "ollama/llama3.1:8b", "task": "Review for bugs and improvements"},
]
for a in agents:
sessions_spawn(task=a["task"], model=a["model"], label=a["label"])
```
## Direct API
For custom integrations, use the Ollama API directly:
```bash
# Chat
curl $OLLAMA_HOST/api/chat -d '{
"model": "qwen3:4b",
"messages": [{"role": "user", "content": "Hello"}],
"stream": false
}'
# Generate
curl $OLLAMA_HOST/api/generate -d '{
"model": "qwen3:4b",
"prompt": "Why is the sky blue?",
"stream": false
}'
# List models
curl $OLLAMA_HOST/api/tags
# Pull model
curl $OLLAMA_HOST/api/pull -d '{"name": "phi3:mini"}'
```
## Troubleshooting
**Connection refused?**
- Check Ollama is running: `ollama serve`
- Verify OLLAMA_HOST is correct
- For remote servers, ensure firewall allows port 11434
**Model not loading?**
- Check VRAM: larger models may need CPU offload
- Try a smaller model first
**Slow responses?**
- Model may be running on CPU
- Use smaller quantization (e.g., `:7b` instead of `:30b`)
**OpenClaw sub-agent falls back to default model?**
- Ensure `ollama:default` auth profile exists in OpenClaw config
- Check model path format: `ollama/modelname:tag`
「AI 智能体」分类下的热门技能
把开发过程中的经验、错误与纠正记录为 Markdown 文件,供后续复用并晋升为工作区记忆。
用自然语言描述需求,在本地与远程技能市场里找技能并给出推荐的技能。
给 AI agent 用的浏览器自动化命令行技能。
把用户纠正与自我复盘沉淀成分层记忆、并按使用情况升降级的技能。
一份为 AI 代理规划主动跟进、工作记忆与复盘流程的工作区配置指南。
指导如何创建与更新有效 Claude 技能的写作指南。
在安装第三方技能之前,按清单审查来源、权限与危险模式的技能。
把盛唐诗人李白的诗学观、意象系统与口吻,蒸馏成 AI 可调用的角色包。
数据月份:2026-10 · 下载/星标数聚合自公开技能注册库(ClawHub、SkillHub),按月更新。口径说明见数据方法。