首页openclaw插件 › Draw Things Image Generation — Draw Things — 本地图像生成

代码插件 安全

Draw Things Image Generation — Draw Things — 本地图像生成

v1.1.13

OpenClaw本地图像生成提供商插件,调用受信任的Draw Things CLI,不请求密钥且不联系外部端点,实现安全的本地AI图像生成。

0· 11·0 当前
by @acwilan·Links
下载插件包 项目主页
License
Links
最后更新
2026/4/11
安全扫描
VirusTotal
无害
查看报告
OpenClaw
安全
该插件的代码、manifest和运行时指令与本地图像生成提供商一致,调用受信任的Draw Things CLI;不请求密钥且不联系外部端点。
安全有层次,运行前请审查代码。

License

Links

请查看许可证条款了解详情。

版本

latestv1.1.132026/4/8
● 无害

安装命令 点击复制

官方npx clawhub@latest install openclaw-draw-things
镜像加速npx clawhub@latest install openclaw-draw-things --registry https://cn.clawhub-mirror.com

插件文档

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
`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`number1024Default output width (multiple of 64)
`defaultHeight`number1024Default output height (multiple of 64)
`defaultSteps`number20Sampling steps (higher = better quality, slower)
`defaultCfg`number7CFG 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

数据来源:ClawHub ↗ · 中文优化:龙虾技能库
OpenClaw 技能定制 / 插件定制 / 私有工作流定制

免费技能或插件可能存在安全风险,如需更匹配、更安全的方案,建议联系付费定制

了解定制服务