Skip to main content

Install

Commands

Global options

Basic usage

Generate a runbook

Set default model and provider via environment variables instead of passing them on every command. See default model configuration.

Execute a runbook

Self-heal mode

Validate a runbook with aggressive retry and generate repair suggestions:

Apply fixes

Apply AI-generated repair suggestions to update a broken runbook:

AI provider configuration

By default, Refrain uses Anthropic Claude. Set the API key:
For other providers (OpenAI, Google, Azure, Bedrock, Vertex), see the AI provider setup guide for required environment variables and flags.

API key (Plan tiers)

Unlock advanced features by setting an API key:
Or pass it per-command:
See Plan tiers for feature details.