Install
openclaw skills install local-ai-stackTransform your Mac into an offline AI workstation with Ollama and OpenCode, running curated local models for coding and reasoning without internet or API costs.
openclaw skills install local-ai-stackTransform any Mac into a powerful offline AI workstation. Installs Ollama (local model runner) + OpenCode (terminal coding agent) with the best pre-selected models. Fully offline — no API costs, no internet required.
curl -fsSL https://ollama.com/install.sh | sh
Or download from: https://ollama.com/download
ollama pull qwen2.5-coder # Best for coding
ollama pull mistral # Fast tasks
ollama pull gemma3 # Reasoning
ollama pull llama3.2 # General purpose
brew install opencode
# Test free built-in model
opencode run "Hello" --model opencode/big-pickle
# Run a local model
ollama run qwen2.5-coder "Write a Python function..."
# List installed models
ollama list
# Pull latest model version
ollama pull qwen2.5-coder
# Remove a model
ollama rm mistral
# Interactive coding session
opencode
# Single command
opencode run "Write a React component" --model opencode/big-pickle
# List available models
opencode models
# Help
opencode --help
| Model | Size | Best For |
|---|---|---|
| qwen2.5-coder | 4.7GB | Coding (primary) |
| mistral | 4.4GB | Fast responses |
| gemma3 | 3.3GB | Reasoning |
| llama3.2 | 2.0GB | General purpose |
Add to cron for automatic model updates:
# Edit crontab
crontab -e
# Add this line (1st and 15th of each month at 9 AM)
0 9 1,15 * * /path/to/update-models.sh
# Check if running
ps aux | grep ollama
# Start manually
ollama serve
# Check logs
cat ~/.ollama/ollama.log
top | head -20# Find installation
which opencode
# Reinstall if needed
brew reinstall opencode
~/.ollama/models/~/.ollama/config.json~/.ollama/ollama.logOllama: MIT OpenCode: MIT
Built with ❤️ for the OpenClaw community