Install
openclaw skills install open-ralphRun an autonomous Open Ralph Wiggum coding loop using OpenCode Zen with free models and automatic fallback.
openclaw skills install open-ralphThis skill runs an autonomous Ralph Wiggum coding loop using the ralph CLI with OpenCode as the agent provider.
It repeatedly executes the same coding prompt until:
The loop is optimized for free OpenCode Zen models and includes a fallback chain in case models are rate-limited, disabled, or removed.
Use this skill when you want autonomous coding execution such as:
You MUST be inside a git repository before running Ralph.
Always attempt models in this order:
opencode/kimi-k2.5-free ← Best coding performance (limited time free)opencode/minimax-m2.1-freeopencode/glm-4.7-freeopencode/big-pickle ← Free stealth model fallbackIf a model fails due to availability or quota, immediately retry using the next model without changing the prompt or loop parameters.
Fallback if you encounter errors like:
Run:
ralph "<TASK PROMPT>
Success criteria:
Completion promise:
<promise>COMPLETE</promise>"
--agent opencode
--model opencode/kimi-k2.5-free
--completion-promise "COMPLETE"
--max-iterations 20
If attempt #1 fails due to model issues, rerun with:
--model opencode/minimax-m2.1-free
If attempt #2 fails:
--model opencode/glm-4.7-free
If attempt #3 fails:
--model opencode/big-pickle
For multi-step execution:
ralph "<BIG TASK PROMPT>"
--agent opencode
--model opencode/kimi-k2.5-free
--tasks
--max-iterations 50
Fallback model order still applies.
If OpenCode plugins interfere with loop execution, rerun with:
--no-plugins
If free model availability changes, check:
https://opencode.ai/zen/v1/models
Update fallback order if needed.
Fix failing TypeScript errors:
ralph "Fix all TypeScript errors in the repo.
Success criteria:
Completion promise:
<promise>COMPLETE</promise>"
--agent opencode
--model opencode/kimi-k2.5-free
--completion-promise "COMPLETE"
--max-iterations 20