@acwilan

Openclaw Draw Things

OpenClaw tool for Draw Things CLI - local AI image generation on Apple Silicon

当前版本
v1.1.8
code-plugin社区source-linked

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

Installation

Prerequisites

  • macOS with Apple Silicon (M1/M2/M3)
  • Draw Things app installed
  • OpenClaw 2026.4.0 or later

Install from ClawHub

openclaw plugins install 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

OptionTypeDefaultDescription
cliPathstringdraw-things-cliPath to Draw Things CLI binary
modelsDirstring-Optional override for models directory
outputDirstring~/Downloads/draw-things-outputWhere to save generated images
defaultModelstring-Default model file (e.g., flux_2_klein_4b_q6p.ckpt)
defaultWidthnumber1024Default output width (multiple of 64)
defaultHeightnumber1024Default output height (multiple of 64)
defaultStepsnumber20Sampling steps (higher = better quality, slower)
defaultCfgnumber7CFG guidance scale (higher = stricter prompt adherence)

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

Models

Download models from the Draw Things model browser. Common models include:

  • realistic_vision_v5.1_f16.ckpt - Photorealistic images
  • flux_2_klein_4b_q6p.ckpt - FLUX.2 Klein 4-bit quantized
  • sd_xl_base_1.0_f16.ckpt - Stable Diffusion XL

Place models in ~/Library/Containers/com.liuliu.draw-things/Data/Documents/Models/ or specify a custom modelsDir in config.

Development

npm install
npm run build
npm run dev        # Watch mode
npm test           # Run tests

License

MIT © Andres Rovira

Links

源码与版本

源码仓库

acwilan/openclaw-draw-things

打开仓库

源码提交

42de111a9c14f17d59bfa92f39139129ca4a7f17

查看提交

安装命令

openclaw plugins install clawhub:acwilan-draw-things

元数据

  • 包名: acwilan-draw-things
  • 创建时间: 2026/04/10
  • 更新时间: 2026/04/10
  • 执行代码:
  • 源码标签: 42de111a9c14f17d59bfa92f39139129ca4a7f17

兼容性

  • 构建于 OpenClaw: 2026.4.5
  • 插件 API 范围: >=2026.4.0
  • 标签: latest
  • 文件数: 23