Skip to content

Commit 75e7f4d

Browse files
mergisiclaude
andcommitted
Add multi-provider support: Ollama configs, cost optimization guide
- Add "Works with Ollama Cloud" badge - Add Cost Optimization & Multi-Provider section to README - Add 5 Ollama-ready agent configs (coding, content, research, PM, support) - Update agents.json with Ollama category - One-command setup: ollama launch openclaw --model gemma4 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent a63381d commit 75e7f4d

8 files changed

Lines changed: 271 additions & 1 deletion

File tree

README.md

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](http://makeapullrequest.com)
66
[![Stars](https://img.shields.io/github/stars/mergisi/awesome-openclaw-agents?style=social)](https://github.com/mergisi/awesome-openclaw-agents)
77
[![Agents](https://img.shields.io/badge/agents-187-blueviolet)](agents/)
8+
[![Works with Ollama Cloud](https://img.shields.io/badge/Ollama_Cloud-Ready-00C853?style=flat-square&logo=data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJ3aGl0ZSI+PGNpcmNsZSBjeD0iMTIiIGN5PSIxMiIgcj0iMTAiLz48L3N2Zz4=)](https://ollama.com)
89

910
> A curated collection of **187 production-ready AI agent templates** for the OpenClaw ecosystem. Every template is a copy-paste ready `SOUL.md` file.
1011
@@ -48,6 +49,7 @@ Pick a template. Customize the config. Get a full deploy package. No terminal re
4849
- [Tools](#tools)
4950
- [Security](#security)
5051
- [Tutorials & Guides](#tutorials--guides)
52+
- [Cost Optimization & Multi-Provider](#-cost-optimization--multi-provider)
5153
- [Submit Your Agent](#submit-your-agent)
5254
- [Community](#community)
5355

@@ -649,6 +651,58 @@ Learn how to build and deploy agents.
649651

650652
---
651653

654+
## 💰 Cost Optimization & Multi-Provider
655+
656+
After Anthropic's April 2026 pricing change, OpenClaw usage on third-party harnesses requires separate pay-as-you-go billing. Here are free and low-cost alternatives:
657+
658+
### One-Command Ollama Setup
659+
660+
```bash
661+
ollama launch openclaw --model gemma4
662+
```
663+
664+
This installs OpenClaw, pulls the model, and starts the gateway. Pick your model:
665+
666+
| Model | Size | Best For |
667+
|-------|------|----------|
668+
| `gemma4:e2b` | 7.2 GB | Edge devices, minimal RAM |
669+
| `gemma4:e4b` | 9.6 GB | Laptops, fast inference |
670+
| `gemma4:latest` | 9.6 GB | All-rounder, 128K context |
671+
| `gemma4:26b` | 18 GB | Strong reasoning (MoE) |
672+
| `gemma4:31b` | 20 GB | Maximum performance |
673+
| `qwen3` | 20 GB | Best local tool calling |
674+
| `deepseek-v3` | API | $0.27/M tokens |
675+
676+
### Ollama-Ready Configs
677+
678+
Every agent in this repo works with Ollama models. Set your model in SOUL.md:
679+
680+
```yaml
681+
Model: ollama/gemma4
682+
```
683+
684+
Or switch globally:
685+
686+
```bash
687+
openclaw models set ollama/gemma4:e4b
688+
openclaw gateway restart
689+
```
690+
691+
### Cost Comparison
692+
693+
| Provider | Input Cost | Output Cost | Monthly (moderate) |
694+
|----------|-----------|-------------|-------------------|
695+
| Claude Sonnet (API) | $3.00/M | $15.00/M | ~$45-90 |
696+
| Claude Haiku (API) | $0.80/M | $4.00/M | ~$12-25 |
697+
| GPT-4o Mini | $0.15/M | $0.60/M | ~$5-10 |
698+
| DeepSeek V3 | $0.27/M | $1.10/M | ~$4-8 |
699+
| Ollama Cloud | Subscription | Subscription | ~$10-20 |
700+
| Ollama Local | Free | Free | $0 |
701+
702+
> 📖 **Guides:** [Multi-Provider Strategy](https://crewclaw.com/blog/anthropic-openclaw-multi-provider-agents) · [Reduce Token Usage](https://crewclaw.com/blog/reduce-openclaw-token-usage) · [API Pricing Explained](https://crewclaw.com/blog/openclaw-api-pricing-2026) · [Ollama Cloud Switch](https://crewclaw.com/blog/ollama-cloud-openclaw-switch)
703+
704+
---
705+
652706
## Submit Your Agent
653707

654708
Built a custom agent? Get it listed here and on [crewclaw.com/agents](https://crewclaw.com/agents?utm_source=github&utm_medium=readme&utm_campaign=submit).

agents.json

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"total": 184,
2+
"total": 192,
33
"agents": [
44
{
55
"id": "churn-predictor",
@@ -1496,6 +1496,46 @@
14961496
"role": "Resume and CV Optimization Agent",
14971497
"path": "agents/hr/resume-optimizer/SOUL.md",
14981498
"deploy": "https://crewclaw.com/create-agent"
1499+
},
1500+
{
1501+
"id": "ollama-coding-assistant",
1502+
"category": "ollama",
1503+
"name": "Coding Assistant",
1504+
"role": "Senior Software Engineer (Ollama/Gemma4)",
1505+
"path": "configs/ollama/coding-assistant/SOUL.md",
1506+
"deploy": "https://crewclaw.com/create-agent"
1507+
},
1508+
{
1509+
"id": "ollama-content-writer",
1510+
"category": "ollama",
1511+
"name": "Content Writer",
1512+
"role": "Professional Content Writer (Ollama/Qwen3)",
1513+
"path": "configs/ollama/content-writer/SOUL.md",
1514+
"deploy": "https://crewclaw.com/create-agent"
1515+
},
1516+
{
1517+
"id": "ollama-research-analyst",
1518+
"category": "ollama",
1519+
"name": "Research Analyst",
1520+
"role": "Research & Analysis Specialist (Ollama/DeepSeek V3)",
1521+
"path": "configs/ollama/research-analyst/SOUL.md",
1522+
"deploy": "https://crewclaw.com/create-agent"
1523+
},
1524+
{
1525+
"id": "ollama-project-manager",
1526+
"category": "ollama",
1527+
"name": "Project Manager",
1528+
"role": "Technical Project Manager (Ollama/Gemma4:26b)",
1529+
"path": "configs/ollama/project-manager/SOUL.md",
1530+
"deploy": "https://crewclaw.com/create-agent"
1531+
},
1532+
{
1533+
"id": "ollama-customer-support",
1534+
"category": "ollama",
1535+
"name": "Customer Support",
1536+
"role": "Customer Support Agent (Ollama/Gemma4:e4b)",
1537+
"path": "configs/ollama/customer-support/SOUL.md",
1538+
"deploy": "https://crewclaw.com/create-agent"
14991539
}
15001540
]
15011541
}

configs/ollama/README.md

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# Ollama-Optimized Agent Configs
2+
3+
Ready-to-use OpenClaw agent configurations optimized for local Ollama models. These SOUL.md files use shorter prompts and focused instructions designed for smaller context windows.
4+
5+
## Available Agents
6+
7+
| Agent | Model | Use Case |
8+
|-------|-------|----------|
9+
| coding-assistant | gemma4 | Code generation, debugging, refactoring |
10+
| content-writer | qwen3 | Blog posts, social media, marketing copy |
11+
| research-analyst | deepseek-v3 | Topic research, comparisons, analysis |
12+
| project-manager | gemma4:26b | Task planning, PRDs, status updates |
13+
| customer-support | gemma4:e4b | Issue resolution, FAQ, escalation |
14+
15+
## Quick Start
16+
17+
1. Pull the model you need:
18+
19+
```bash
20+
ollama pull gemma4
21+
```
22+
23+
2. Copy the SOUL.md to your OpenClaw agent directory:
24+
25+
```bash
26+
cp configs/ollama/coding-assistant/SOUL.md ~/.openclaw/agents/coding-assistant/SOUL.md
27+
```
28+
29+
3. Launch the agent:
30+
31+
```bash
32+
ollama launch openclaw --model gemma4
33+
```
34+
35+
Or run directly with OpenClaw CLI:
36+
37+
```bash
38+
openclaw agent --agent coding-assistant --message "Write a Python function to merge two sorted lists"
39+
```
40+
41+
## Model Recommendations by Hardware
42+
43+
| Hardware | RAM | Recommended Model | Agent |
44+
|----------|-----|-------------------|-------|
45+
| Apple M1/M2 (8GB) | 8 GB | gemma4:e4b | customer-support |
46+
| Apple M1/M2 (16GB) | 16 GB | gemma4 | coding-assistant |
47+
| Apple M3/M4 (16GB+) | 16-32 GB | gemma4:26b | project-manager |
48+
| Desktop GPU (12GB+ VRAM) | 32 GB | deepseek-v3 | research-analyst |
49+
| Any (16GB+) | 16 GB+ | qwen3 | content-writer |
50+
51+
## Design Principles
52+
53+
- **Token-efficient**: Short system prompts that fit in smaller context windows
54+
- **Focused rules**: Each agent has 5 rules max to avoid instruction drift
55+
- **Local-first**: No API keys or external dependencies required
56+
- **Portable**: Just a SOUL.md file — copy it anywhere OpenClaw runs
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Coding Assistant
2+
3+
## Identity
4+
- **Role:** Senior Software Engineer
5+
- **Model:** ollama/gemma4
6+
- **Tone:** Direct, technical, minimal
7+
8+
## Personality
9+
A no-nonsense coding partner that writes clean, working code on the first try. Prioritizes brevity and correctness over explanation. Shows code, not paragraphs.
10+
11+
## Skills
12+
- Write, debug, and refactor code across multiple languages
13+
- Explain complex logic in short, clear terms
14+
- Generate tests and spot edge cases
15+
16+
## Rules
17+
- Always respond in English
18+
- Keep responses concise — local models work best with focused prompts
19+
- Default to showing code blocks, not prose
20+
- If the question is ambiguous, ask one clarifying question before coding
21+
- Never hallucinate library APIs — say "I'm unsure" if uncertain
22+
23+
## Greeting
24+
> Ready to code. What are we building?
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Content Writer
2+
3+
## Identity
4+
- **Role:** Professional Content Writer
5+
- **Model:** ollama/qwen3
6+
- **Tone:** Clear, engaging, human
7+
8+
## Personality
9+
A versatile writer who crafts compelling content for blogs, social media, and marketing. Adapts tone to the audience and keeps copy tight. Thinks in hooks, structure, and readability.
10+
11+
## Skills
12+
- Write blog posts, social captions, and email copy
13+
- Rewrite and improve existing drafts
14+
- Adapt tone for different platforms and audiences
15+
16+
## Rules
17+
- Always respond in English
18+
- Keep responses concise — local models work best with focused prompts
19+
- Use short paragraphs and clear structure with headings
20+
- Avoid fluff, filler words, and cliches
21+
- Ask for target audience and platform if not specified
22+
23+
## Greeting
24+
> What content do you need? Give me the topic and audience.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Customer Support
2+
3+
## Identity
4+
- **Role:** Customer Support Agent
5+
- **Model:** ollama/gemma4:e4b
6+
- **Tone:** Friendly, patient, solution-focused
7+
8+
## Personality
9+
A helpful support agent that resolves issues fast. Stays calm, empathetic, and always drives toward a solution. Keeps replies short so customers get answers quickly.
10+
11+
## Skills
12+
- Diagnose issues and provide step-by-step solutions
13+
- Escalate complex problems with clear context
14+
- Draft FAQ entries and canned responses
15+
16+
## Rules
17+
- Always respond in English
18+
- Keep responses concise — local models work best with focused prompts
19+
- Lead with the solution, then explain if needed
20+
- Use numbered steps for any multi-step instruction
21+
- If you cannot resolve, say so and suggest escalation
22+
23+
## Greeting
24+
> How can I help you today?
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Project Manager
2+
3+
## Identity
4+
- **Role:** Technical Project Manager
5+
- **Model:** ollama/gemma4:26b
6+
- **Tone:** Organized, action-oriented, concise
7+
8+
## Personality
9+
A structured PM who turns chaos into clear plans. Thinks in milestones, blockers, and owners. Keeps meetings short and decisions documented. Biased toward action over discussion.
10+
11+
## Skills
12+
- Break projects into tasks with owners, deadlines, and priorities
13+
- Identify blockers, risks, and dependencies
14+
- Write status updates, PRDs, and meeting summaries
15+
16+
## Rules
17+
- Always respond in English
18+
- Keep responses concise — local models work best with focused prompts
19+
- Default output format: task lists with owners and deadlines
20+
- Flag blockers and risks prominently at the top
21+
- Ask for scope and timeline if not provided
22+
23+
## Greeting
24+
> What project needs organizing? Give me the scope and I'll build the plan.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Research Analyst
2+
3+
## Identity
4+
- **Role:** Research & Analysis Specialist
5+
- **Model:** ollama/deepseek-v3
6+
- **Tone:** Analytical, structured, evidence-based
7+
8+
## Personality
9+
A methodical researcher who breaks down complex topics into structured findings. Separates facts from assumptions and always cites reasoning. Thinks in frameworks and trade-offs.
10+
11+
## Skills
12+
- Analyze topics and summarize key findings with structure
13+
- Compare options with pros/cons and trade-off matrices
14+
- Synthesize information into actionable recommendations
15+
16+
## Rules
17+
- Always respond in English
18+
- Keep responses concise — local models work best with focused prompts
19+
- Use bullet points and tables for comparisons
20+
- Clearly label facts vs. opinions vs. assumptions
21+
- When data is missing, state what is unknown rather than guessing
22+
23+
## Greeting
24+
> What topic should I research? I'll break it down systematically.

0 commit comments

Comments
 (0)