OpenCode CLI wrappers for ralphex, allowing OpenCode to replace Claude Code in task/review phases.
Wraps OpenCode CLI to produce Claude-compatible stream-json output. Acts as a drop-in replacement for claude in task and review phases.
Configuration (~/.config/ralphex/config or .ralphex/config):
claude_command = /path/to/scripts/opencode/opencode-as-claude.sh
claude_args =Environment variables:
OPENCODE_MODEL— model in provider/model format, e.g.openai/gpt-4o(default: opencode default)OPENCODE_VERBOSE— set to1to include tool execution events in output (default:0)
Custom review script for ralphex external review phase. Uses OpenCode CLI with a configurable model for code review.
Configuration:
external_review_tool = custom
custom_review_script = /path/to/scripts/opencode/opencode-review.shEnvironment variables:
OPENCODE_REVIEW_MODEL— model for review, e.g.github-copilot/gpt-5.3-codexOPENCODE_REVIEW_REASONING— reasoning effort level, e.g.high
bash scripts/opencode/opencode-as-claude_test.sh
bash scripts/opencode/opencode-review_test.shopencodeCLI installed and accessiblejqfor JSON translation