OpenClaw
OpenClaw is an agentic coding assistant and runtime that can load workspace-specific skills. Mold's CLI-native interface makes it a natural agent tool: commands remain inspectable and reproducible outside the agent, while the same local or remote engine is also available through MCP and REST/SSE.
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:
export MOLD_HOST=http://gpu-host:7680Then normal mold commands work from the OpenClaw environment:
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.
