OpenClaw
OpenClaw is an agentic coding assistant and runtime that can load workspace-specific skills. mold can be exposed to it as a skill so agent flows can generate images through your local or remote mold server.
How It Fits Together
The usual setup is:
- Run
mold serveon the machine with the GPU. - Configure
MOLD_HOSTwherever OpenClaw is running. - Install the mold skill into the workspace so agents can call the CLI or API.
That keeps image generation on the GPU host while the rest of your agent work happens from a laptop, devbox, or remote shell.
Install the Skill
Copy the mold skill into your OpenClaw workspace according to the OpenClaw skill layout you use today. The repository already keeps the shared mold skill definition in .claude/skills/mold/SKILL.md, which is intended to stay in sync with the codebase and docs.
Configure the Connection
Point OpenClaw at a running mold server:
bash
export MOLD_HOST=http://gpu-host:7680Then normal mold commands work from the OpenClaw environment:
bash
mold list
mold run flux-schnell:q8 "a cinematic product shot"Notes
- If the server is remote,
HF_TOKENmust be set on the server side for gated model pulls. mold psis the quickest way to confirm the OpenClaw environment can reach the server.- The same setup works well for agent workflows that want prompt expansion, gallery generation, or remote batch jobs.
