π¦ ClawHub
Stitch Design
by @rasimme
Official Google Stitch SDK wrapper for OpenClaw. Requires only STITCH_API_KEY. Generate UI screens from text, apply targeted edits, branch variants, export H...
π‘ Examples
Runtime Scope
STITCH_API_KEY onlyruns/, state/, latest-screen.jsonThe CLI is at scripts/stitch.mjs. All output is JSON on stdout.
node scripts/stitch.mjs [args] [--flags]
βοΈ Configuration
Required: Node.js 18+ and STITCH_API_KEY env var.
Get a key at: https://stitch.withgoogle.com β Profile β API Keys
Configure the key in your OpenClaw skill env settings or in the shell used to run the CLI.
# Install dependencies (one-time, from skill root)
cd scripts && npm install
Install scope: this installs the Node dependency declared in scripts/package.json (@google/stitch-sdk) plus its npm transitive dependencies.
Troubleshooting:
STITCH_API_KEY not set β ensure the env var is configured in OpenClaw skill settings or shellECONNRESET / timeouts β Stitch API calls take 1-5 min; the CLI retries automaticallyCorrupt names.json β run node scripts/stitch.mjs rebuild --project to reconstruct from event logTERMINAL
clawhub install stitch-design