Quickstart
Installation and Setup
Recommended workflow:
npm install -g @telepat/rilo
rilo settings
rilo --project housing-case --story-file ./examples/story.txt
Or run via npx without a global install:
npx @telepat/rilo settings
npx @telepat/rilo --project housing-case --story-file ./examples/story.txt
If you're contributing from source in this repository, see /contributing/development for the npm run dev workflow.
Your First Generation
Step 1: Configure API tokens
Before running your first generation, set up your Replicate API token:
Option A: Interactive settings menu (recommended)
rilo settings
This opens a menu where you can securely enter your Replicate API token and configure other settings.
Option B: Environment variable
export RILO_REPLICATE_API_TOKEN=r8_xxxxxxxxxxxxx
Step 2: Create a new project with a story
Create a simple story file:
cat > wedding-story.txt <<'EOF'
A couple's love story begins at a cozy coffee shop where they first locked eyes
over a shared latte. Years later, they return to the same spot and exchange vows
in an intimate ceremony surrounded by friends and family who witnessed the beginning
of their journey. The video celebrates the beauty of finding forever in familiar places.
EOF
Initialize your project:
rilo --project wedding-case --story-file ./wedding-story.txt
On first run, rilo:
- Creates
projects/wedding-case/directory - Stores
config.json(project generation settings) - Saves
story.md(formatted story) - Begins the generation pipeline
- Outputs
projects/wedding-case/final.mp4when complete
Step 3: Monitor progress
Watch generation progress in the terminal output:
✓ Script generation completed (2.3s)
✓ Voiceover generation completed (8.1s)
Generating keyframes... (1/12)
Generating keyframes... (2/12)
...
✓ Composition completed (15.2s)
Find outputs here:
projects/wedding-case/
├── config.json # Project settings
├── story.md # Your story
├── final.mp4 # Main output video
├── artifacts.json # Generation metadata
├── run-state.json # Checkpoint for resume
├── assets/ # Generated keyframes, audio, etc.
└── logs/ # Detailed generation logs
Common Workflows
Re-run from a specific stage (--force)
If generation fails partway through, use --force to restart from an earlier stage without re-generating completed work:
# Restart from keyframe generation (previous stages reused)
rilo --project wedding-case --force
# Re-run entire pipeline (use with caution)
rilo --project wedding-case --force
See Regeneration and Invalidation for more details.
Update project settings mid-project
If you want to change aspect ratio, duration, or model selections after starting a project:
-
Edit
projects/wedding-case/config.json:{
"aspectRatio": "9:16",
"targetDurationSec": 30,
"models": {
"textToImage": "black-forest-labs/flux-2-pro"
}
} -
Re-run with
--forceto invalidate and regenerate affected stages:rilo --project wedding-case --force
Configure app-wide settings
Adjust timeouts, retries, or binary paths globally:
rilo settings
# Navigate to "Max Retries", "Poll Interval", "ffmpeg Binary", etc.
arrow keys to select → Enter to edit → Enter to save → "Done" to exit
These settings are stored in ~/.rilo/config.json and precedence is:
- Environment variables (highest priority)
~/.rilo/config.json(settings you configure viarilo settings)- Schema defaults (lowest priority)
Use custom story file on subsequent runs
If you want to update the story for an existing project, pass --story-file again:
cat > new-wedding-story.txt <<'EOF'
... updated story text ...
EOF
rilo --project wedding-case --story-file ./new-wedding-story.txt --force
This overwrites projects/wedding-case/story.md and restarts generation from the beginning.
Invocation Patterns
Choose the invocation method that fits your workflow:
| Method | Command | Best for |
|---|---|---|
| Global install | rilo --project <name> --story-file <path> | After npm install -g @telepat/rilo |
| npx | npx @telepat/rilo --project <name> --story-file <path> | No installation required; CI/CD |
| Contributor dev | npm run dev -- --project <name> --story-file <path> | Working from a checked-out repo |
Next Steps
- CLI Reference — All flags and commands
- Configuration — Project settings, models, and options
- Troubleshooting — Common issues and solutions
- Model Catalog — Available models and their capabilities