Capabilities
Compatibility
Verification
Tags
OpenClaw Draw Things
Local AI image generation for OpenClaw using Draw Things CLI on Apple Silicon. Generate images with Stable Diffusion, FLUX, and other models without API costs.
Features
- 🖼️ Local image generation - No API keys needed
- 🍎 Apple Silicon optimized - Uses Core ML for fast inference
- 🤖 Multiple models - SD, FLUX, and more
- ⚡ OpenClaw integration - Native tool support
Prerequisites
- macOS with Apple Silicon (M1/M2/M3/M4)
- Draw Things app installed from Mac App Store
- Draw Things CLI installed via Homebrew:
brew tap drawthingsai/draw-things brew install draw-things-cli - OpenClaw 2026.4.0 or later
- AI Models downloaded in Draw Things app (see Models section below)
Installation
From ClawHub (Recommended)
openclaw plugins install openclaw-draw-things
Manual Installation
git clone https://github.com/acwilan/openclaw-draw-things.git
cd openclaw-draw-things
npm install
npm run build
openclaw plugins install "$(pwd)"
Configuration
Add to your ~/.openclaw/openclaw.json:
{
"plugins": {
"entries": {
"draw-things": {
"enabled": true,
"config": {
"cliPath": "draw-things-cli",
"outputDir": "~/Downloads/draw-things-output",
"defaultModel": "realistic_vision_v5.1_f16.ckpt",
"defaultWidth": 1024,
"defaultHeight": 1024,
"defaultSteps": 20,
"defaultCfg": 7
}
}
}
},
"agents": {
"defaults": {
"imageGenerationModel": {
"primary": "draw-things/realistic_vision_v5.1_f16.ckpt"
}
}
}
}
Config Options
| Option | Type | Default | Description |
|---|---|---|---|
cliPath | string | draw-things-cli | Path to Draw Things CLI binary |
modelsDir | string | - | Optional override for models directory |
outputDir | string | ~/Downloads/draw-things-output | Where to save generated images |
defaultModel | string | - | Default model file (e.g., flux_2_klein_4b_q6p.ckpt) |
defaultWidth | number | 1024 | Default output width (multiple of 64) |
defaultHeight | number | 1024 | Default output height (multiple of 64) |
defaultSteps | number | 20 | Sampling steps (higher = better quality, slower) |
defaultCfg | number | 7 | CFG guidance scale (higher = stricter prompt adherence) |
Models
Download models from the Draw Things model browser (open Draw Things app → Models → Download Models):
| Model | Description |
|---|---|
realistic_vision_v5.1_f16.ckpt | Photorealistic images (recommended default) |
flux_2_klein_4b_q6p.ckpt | FLUX.2 Klein 4-bit quantized (fast, good quality) |
flux_1_schnell_4b_q8p.ckpt | FLUX.1 Schnell for fast generation |
sd_xl_base_1.0_f16.ckpt | Stable Diffusion XL |
Models are stored in:
~/Library/Containers/com.liuliu.draw-things/Data/Documents/Models/
Or specify a custom modelsDir in the plugin config.
Usage
Once installed and configured, OpenClaw can generate images:
Generate an image of a sunset over mountains
Or use explicit tool calls:
Use image_generate to create a cartoon cat
Troubleshooting
"No image-generation provider registered"
Make sure the imageGenerationModel.primary is set correctly:
"imageGenerationModel": {
"primary": "draw-things/your-model.ckpt"
}
"Model not found"
- Verify the model file exists in Draw Things
- Check the exact filename in the Models directory
- Ensure
modelsDirconfig matches your setup if using custom location
"draw-things-cli command not found"
Install the CLI via Homebrew:
brew tap drawthingsai/draw-things
brew install draw-things-cli
Plugin not loading
Check the plugin is enabled:
openclaw plugins list
If needed, restart the gateway:
openclaw gateway restart
Development
# Install dependencies
npm install
# Build
npm run build
# Watch mode
npm run dev
# Run tests
npm test
Releasing
# Patch version (1.0.0 → 1.0.1)
npm run release:patch
# Minor version (1.0.0 → 1.1.0)
npm run release:minor
# Major version (1.0.0 → 2.0.0)
npm run release:major
This handles version bump, manifest sync, changelog, commit, tag, and push automatically.
License
MIT © Andres Rovira
