惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

小众软件
小众软件
N
News and Events Feed by Topic
A
About on SuperTechFans
aimingoo的专栏
aimingoo的专栏
The Cloudflare Blog
H
Heimdal Security Blog
Schneier on Security
Schneier on Security
Engineering at Meta
Engineering at Meta
Google Online Security Blog
Google Online Security Blog
宝玉的分享
宝玉的分享
AI
AI
The GitHub Blog
The GitHub Blog
MongoDB | Blog
MongoDB | Blog
www.infosecurity-magazine.com
www.infosecurity-magazine.com
The Last Watchdog
The Last Watchdog
T
Troy Hunt's Blog
S
Security @ Cisco Blogs
H
Hacker News: Front Page
F
Fortinet All Blogs
博客园_首页
S
Secure Thoughts
N
News and Events Feed by Topic
P
Proofpoint News Feed
Microsoft Azure Blog
Microsoft Azure Blog
I
InfoQ
Spread Privacy
Spread Privacy
Hacker News - Newest:
Hacker News - Newest: "LLM"
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
C
Check Point Blog
Hugging Face - Blog
Hugging Face - Blog
Hacker News: Ask HN
Hacker News: Ask HN
C
CXSECURITY Database RSS Feed - CXSecurity.com
酷 壳 – CoolShell
酷 壳 – CoolShell
Stack Overflow Blog
Stack Overflow Blog
L
LINUX DO - 最新话题
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
S
Schneier on Security
Know Your Adversary
Know Your Adversary
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Scott Helme
Scott Helme
P
Privacy & Cybersecurity Law Blog
S
Securelist
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
O
OpenAI News
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
PCI Perspectives
PCI Perspectives
L
LangChain Blog
雷峰网
雷峰网
Security Archives - TechRepublic
Security Archives - TechRepublic
V2EX - 技术
V2EX - 技术

Blogs

From OpenClaw to the One-Person Company · Blogs From OpenClaw to the One-Person Company · Blogs Using npx skills to Supercharge Your AI Agents · Blogs Using npx skills to Supercharge Your AI Agents · Blogs Why I Didn’t Use KMP for the Whole App · Blogs Why I Didn’t Use KMP for the Whole App · Blogs How I Privately Analyzed Baby Tracking Data Using OpenClaw + Ollama + OnlyBaby · Blogs How I Privately Analyzed Baby Tracking Data Using OpenClaw + Ollama + OnlyBaby · Blogs Clawdbot/OpenClaw + Ollama as your personal assistant · Blogs The God in the Cracks · Blogs The God in the Cracks · Blogs The World That Was Heard · Blogs The World That Was Heard · Blogs Building a Cross-Platform AI Chat App With Cursor + Kotlin Multiplatform (KMP) · Blogs Building a Cross-Platform AI Chat App With Cursor + Kotlin Multiplatform (KMP) · Blogs Run LLMs Locally on Mac Studio with Ollama, Cherry Studio, and RAGFlow · Blogs Run LLMs Locally on Mac Studio with Ollama, Cherry Studio, and RAGFlow · Blogs The Fissioned City · Blogs The Fissioned City · Blogs
Clawdbot/OpenClaw + Ollama as your personal assistant · Blogs
2026-01-29 · via Blogs

Original on Medium

Getting Started with Clawdbot: A Complete Onboarding Guide with Ollama

Clawdbot is an open-source AI assistant that runs on your infrastructure. Unlike cloud-only assistants, it keeps your data local, works across multiple messaging platforms (WhatsApp, Telegram, Discord, Signal), and gives you full control over which AI models power your conversations.

This guide walks you through setting up Clawdbot for the first time and configuring it to use Ollama as your local model provider — keeping everything on your machine while maintaining access to powerful AI capabilities.

What You’ll Need

•⁠ ⁠macOS, Linux, or Windows (WSL recommended for Windows)

•⁠ ⁠Node.js 20+ and npm

•⁠ ⁠Ollama installed locally

•⁠ ⁠A reasonably powerful machine (16GB+ RAM recommended; GPU optional but helpful)

Step 1: Install Clawdbot

The quickest way to get started is via npm:

npm install -g clawdbot

Or use the installer script:

curl -fsSL https://clawd.bot/install | bash

Verify the installation:

clawdbot --version

Step 2: Run the Onboarding Wizard

Clawdbot includes an interactive wizard that sets up your configuration and agent workspace:

clawdbot onboard

You’ll be guided through:

•⁠ ⁠Gateway setup: The daemon that connects to messaging platforms •⁠ ⁠Authentication: Generate or provide a gateway token •⁠ ⁠Workspace creation: Where your agent’s files, memory, and configuration live For a minimal setup, use the quickstart flow:

clawdbot onboard --flow quickstart

This auto-generates everything needed to start chatting immediately.

Step 3: Install and Configure Ollama

Before connecting Clawdbot, ensure Ollama is running with a suitable model:

Install Ollama (macOS/Linux)

curl -fsSL https://ollama.com/install.sh | sh

Pull a capable model (Mistral, Llama 3.1, or similar)

ollama pull mistral:latest

Start the Ollama server (if not already running)

ollama serve

By default, Ollama runs on ⁠ http://127.0.0.1:11434 ⁠ and exposes an OpenAI-compatible API.

Step 4: Configure Clawdbot to Use Ollama

Edit your Clawdbot configuration file (located at ⁠ ~/.clawdbot/moltbot.json ⁠ or your workspace):

{
"agents": {
"defaults": {
"model": {
"primary": "ollama/mistral:latest"
},
"models": {
"ollama/mistral:latest": {
"alias": "Mistral Local"
}
}
}
},
"models": {
"mode": "merge",
"providers": {
"ollama": {
"baseUrl": "http://127.0.0.1:11434/v1",
"apiKey": "ollama",
"api": "openai-responses",
"models": [
{
"id": "mistral:latest",
"name": "Mistral Local",
"reasoning": false,
"input": ["text"],
"cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },
"contextWindow": 32000,
"maxTokens": 4096
}
]
}
}
}
}

Key configuration points:

•⁠ ⁠⁠ baseUrl ⁠: Ollama’s OpenAI-compatible endpoint (default: ⁠ http://127.0.0.1:11434/v1 ⁠)

•⁠ ⁠⁠ api ⁠: Use ⁠ “openai-responses” ⁠ for cleaner output handling

•⁠ ⁠⁠ contextWindow ⁠: Set based on your model’s actual limits

•⁠ ⁠⁠ mode: “merge” ⁠: Allows fallback to cloud providers if Ollama becomes unavailable

Besides, Ollama also provides a specific command to set it up:

  • ollama launch clawdbot — Configures Clawdbot to use Ollama AND starts the gateway in one step
  • ⁠ollama launch clawdbot --config — Just configures without launching

Step 5: Connect a Messaging Channel

WhatsApp (Recommended for Mobile Access)

clawdbot gateway start --channel whatsapp

A QR code will appear. Scan it with WhatsApp on your phone (Linked Devices → Link a Device). Your personal WhatsApp account now messages with your local AI.

Telegram Bot

Create a bot via @BotFather, then:

clawdbot gateway start --channel telegram --token YOUR_BOT_TOKEN

Discord

Create a bot in the Discord Developer Portal, enable Message Content Intent, and:

clawdbot gateway start --channel discord --token YOUR_BOT_TOKEN

Step 6: Verify Everything Works

1.⁠ ⁠Check gateway status:

⁠ clawdbot gateway status

⁠ 2.⁠ ⁠Test model connectivity:

⁠ curl http://127.0.0.1:11434/v1/models

⁠ 3.⁠ ⁠Send a test message via your connected channel. You should see responses powered by your local Ollama model.

Pro Tips for Local Model Usage

Hybrid Setup: Local Primary, Cloud Fallback

Keep cloud models as backups for when Ollama is offline or overwhelmed:

{
"agents": {
"defaults": {
"model": {
"primary": "ollama/mistral:latest",
"fallbacks": ["anthropic/claude-sonnet-4", "openai/gpt-4o-mini"]
}
}
}
}

Performance Optimization

•⁠ ⁠Keep models loaded: Ollama unloads models after a timeout. For faster responses, set ⁠ OLLAMA_KEEP_ALIVE=24h ⁠ when running ⁠ ollama serve⁠.

•⁠ ⁠Context management: Lower ⁠ contextWindow ⁠ if you experience slowdowns. Start with 8K-16K tokens.

•⁠ ⁠Quantization: Use ⁠ q4_K_M ⁠ or ⁠ q5_K_M ⁠ quantized models for good quality with lower memory usage.

Security Considerations

Local models bypass cloud safety filters. To mitigate risks:

•⁠ ⁠Keep agent capabilities narrow (limit tool access via ⁠capabilities ⁠config)

•⁠ ⁠Enable session compaction to prevent context window attacks

•⁠ ⁠Review the agent’s ⁠ SOUL.md ⁠ to define appropriate boundaries

Troubleshooting

“Connection refused” to Ollama •⁠ ⁠Solution: Verify ⁠ ollama serve ⁠ is running and listening on the correct port

Gateway won’t start •⁠ ⁠Solution: Check ⁠ clawdbot doctor ⁠ for diagnostic output

Slow responses •⁠ ⁠Solution: Use a smaller model, enable GPU acceleration, or reduce ⁠ contextWindow ⁠

Model not found •⁠ ⁠Solution: Ensure you’ve run ⁠ ollama pull modelname ⁠ and the model ID matches in config

No messages received •⁠ ⁠Solution: Verify channel token/QR code and check ⁠ clawdbot gateway logs ⁠

Next Steps

•⁠ ⁠Customize your agent: Edit files in your workspace (⁠ ~/clawd ⁠ by default) to shape personality and capabilities

•⁠ ⁠Add skills: Run ⁠ clawdbot skills ⁠ to browse installable capabilities like weather, web search, or home automation

•⁠ ⁠Explore the dashboard: Run ⁠ clawdbot dashboard ⁠ for a web-based control interface

•⁠ ⁠Set up cron jobs: Use ⁠ clawdbot cron ⁠ for scheduled tasks and proactive notifications

Resources:

•⁠ ⁠Clawdbot Documentation

•⁠ ⁠Ollama Model Library

•⁠ ⁠Ollama Clawdbot Integration

•⁠ ⁠GitHub: clawdbot/clawdbot

Enjoy your fully private, locally-powered AI assistant! 🤖