CLI utilities for Renderify.
@renderify/cli is the fastest way to run prompts, inspect generated RuntimePlan JSON, probe plan dependencies, execute plan files, and open the browser playground.
pnpm add -D @renderify/cli
# or
npm i -D @renderify/cliRun directly from your project:
npx renderify helprenderify run <prompt> # Render prompt and print HTML
renderify plan <prompt> # Print RuntimePlan JSON
renderify probe-plan <file> # Probe plan dependencies and policy compatibility
renderify render-plan <file> # Execute RuntimePlan JSON file and print HTML
renderify playground [port] [--host <host>] [--debug] [--no-llm-log] # Start browser playground server
renderify auth codex login|status|logout # Manage OpenAI Codex OAuth# Generate and render HTML from a prompt
renderify run "build a KPI dashboard with a chart"
# Generate RuntimePlan JSON
renderify plan "build a todo app"
# Probe and execute a local plan file
renderify probe-plan ./examples/runtime/recharts-dashboard-plan.json
renderify render-plan ./examples/runtime/recharts-dashboard-plan.json
# Use OpenAI Codex without installing Codex CLI
renderify auth codex login
RENDERIFY_LLM_PROVIDER=openai-codex renderify playgroundRENDERIFY_LLM_API_KEYRENDERIFY_LLM_PROVIDER(openai,openai-codex,anthropic,google,ollama,lmstudio)RENDERIFY_LLM_MODELRENDERIFY_LLM_BASE_URLRENDERIFY_LLM_REASONING_EFFORT(model-dependent; Spark supportslow,medium,high,xhigh)RENDERIFY_CODEX_ACCESS_TOKEN(optional direct token override)RENDERIFY_CODEX_AUTH_FILE(defaults to~/.renderify/auth.json)RENDERIFY_CODEX_BASE_URL(defaults tohttps://chatgpt.com/backend-api/codex)RENDERIFY_LLM_MAX_RETRIES(e.g.0for single-attempt HTTP calls)RENDERIFY_LLM_STRUCTURED_RETRY(true,false)RENDERIFY_LLM_STRUCTURED_FALLBACK_TEXT(true,false)RENDERIFY_SECURITY_PROFILE(strict,balanced,trusted,relaxed)RENDERIFY_PLAYGROUND_DEBUG(1,true,yes,on)RENDERIFY_PLAYGROUND_LLM_LOG(true,false, defaulttrue)RENDERIFY_PLAYGROUND_HOST(defaults to127.0.0.1)
Playground listens only on 127.0.0.1 by default. To opt in to network access,
pass --host 0.0.0.0 or set RENDERIFY_PLAYGROUND_HOST=0.0.0.0; use a
non-loopback binding only on a trusted network.
Playground prints outbound LLM request/response metadata summaries to the
terminal by default ([playground-llm]). Prompt, generated content, unknown
header values, and oversized bodies are not printed.
When debug mode is enabled, playground also prints key inbound/outbound request summaries, exposes /api/debug/stats, and renders an in-page Debug Stats panel with manual/auto refresh.
The playground server validates every plan first. Accepted
source.runtime: "preact" plans are additionally prepared and mounted in the
browser with the matching React or Preact renderer so hooks, CSS-in-JS, and
events remain interactive. Other source modes display the HTML returned by the
server-side runtime. Source hash links use the same policy checks and cannot
bypass the configured security profile.
See ../../docs/getting-started.md and ../../docs/security.md for runtime and policy options.
- Node.js
>=22is required. - The CLI composes
@renderify/core,@renderify/runtime,@renderify/security,@renderify/llm, and@renderify/ir.