Skip to content

CLI Quick Start

This guide is for CLI users. It covers workspace setup, API keys, and your first generation run.

For installation instructions, see the Install Page.

Initialize a new Renku workspace:

Terminal window
renku init --root=/path/to/your/workspace

For example:

Terminal window
renku init --root=~/my-creations

This creates:

  • ~/.config/renku/cli-config.json - Configuration file
  • {workspace}/.gitignore - Ignores **/builds/ and **/artifacts/
  • {workspace}/catalog/ containing:
    • models/ - Supported model configurations
    • producers/ - Supported producer definitions
    • blueprints/ - Example blueprints to get started

Renku uses multiple AI providers. You’ll need API keys for the providers used by your chosen blueprint.

Depending on the blueprint and the models you select, you may need keys for the following providers:

ProviderWhat it doesKey name
fal.aiAudio, Image, Video generationFAL_KEY
ReplicateAudio, Image, Video generationREPLICATE_API_TOKEN
ElevenLabsAI voice and audio generationELEVENLABS_API_KEY
OpenAILLM models for story board and prompt generationOPENAI_API_KEY
Vercel AI GatewayUnified gateway to Claude, Gemini, and open-source modelsAI_GATEWAY_API_KEY

For CLI and viewer workflows, Renku reads API keys from ~/.config/renku/.env.

Create or edit this file and add your keys:

Terminal window
REPLICATE_API_TOKEN=your-replicate-api-token-here
FAL_KEY=your-fal-api-key-here
OPENAI_API_KEY=your-openai-api-key-here

You can also provide keys through exported shell variables or a project-local .env in your current working directory.

First go to your workspace that you created earlier:

Terminal window
cd /path/to/your/workspace

Browse available blueprints in the catalog directory:

Terminal window
ls ./catalog/blueprints/

For this tutorial, we’ll use the ken-burns blueprint which generates a video with a Ken Burns effect, audio and background music. Create a new project based on this blueprint:

Terminal window
renku new:blueprint my-first-video --using=ken-burns

This creates a my-first-video/ folder with:

  • my-first-video.yaml - Your blueprint file (copied and renamed from the catalog)
  • input-template.yaml - Template for inputs configuration
  • Any additional files (prompt producers, schemas, etc.)

Note: Always use new:blueprint to create your own copy of a blueprint. Never reference blueprints directly from the catalog - this ensures you can customize them and keeps your projects self-contained.

The input-template.yaml file is already included in your project. Edit it with your desired parameters:

Terminal window
cd my-first-video

Here’s an example configuration which will generate a 20-second video about the Eiffel Tower in a Ghibli style, each segment will have 1 image and there will be 2 segments in total. We are using the Replicate and OpenAI as providers, so you would need to have their API keys set in your environment.

inputs:
InquiryPrompt: 'Tell me about the history of the Eiffel Tower.'
Duration: 20
NumOfSegments: 2
NumOfImagesPerNarrative: 1
Style: 'Ghibli'
Resolution:
width: 1280
height: 720
Audience: 'Adult'
VoiceId: 'Wise_Woman'
Emotion: neutral
models:
- model: gpt-5-mini
provider: openai
producerId: ScriptProducer
- model: gpt-5-mini
provider: openai
producerId: ImagePromptProducer
- model: google/nano-banana
provider: replicate
producerId: ImageProducer
- model: minimax/speech-2.6-hd
provider: replicate
producerId: AudioProducer
- model: timeline/ordered
provider: renku
producerId: TimelineComposer
config:
tracks: ['Image', 'Audio']
masterTracks: ['Audio']
numTracks: 2
audioClip:
artifact: AudioSegments
volume: 0.9
imageClip:
artifact: ImageSegments[Image]

Before using real API credits, validate your setup with a dry run (from within your project directory):

Terminal window
renku generate \
--inputs=./input-template.yaml \
--blueprint=./my-first-video.yaml \
--dry-run

The dry run:

  • Validates your blueprint and inputs
  • Shows the execution plan
  • Creates mock artifacts (no API calls)

When you’re ready, run the full generation:

Terminal window
renku generate \
--inputs=./input-template.yaml \
--blueprint=./my-first-video.yaml

Watch as Renku:

  1. Generates a narration script using OpenAI
  2. Creates audio for each segment using your chosen voice
  3. Saves all artifacts to the build director.

Open the generated content in the viewer:

Terminal window
renku viewer

This auto-detects your blueprint, starts a local viewer server if needed, and opens your browser to preview the generated content.

After generation, your current working directory contains:

{project}/ # Current working directory
├── builds/ # GITIGNORED - build data
│ └── movie-{id}/
│ ├── blobs/ # Generated files (audio, images, etc.)
│ ├── manifests/ # Artifact metadata
│ ├── events/ # Execution logs
│ └── runs/ # Execution plans
└── artifacts/ # GITIGNORED - symlinks to build outputs
└── movie-{id}/
├── Script.txt # Generated narration script
├── Segment_0.mp3 # Audio for segment 0
├── Segment_1.mp3 # Audio for segment 1
└── Segment_2.mp3 # Audio for segment 2

The artifacts/ directory contains human-readable symlinks to your generated content. Use renku list to see all builds in the current project.

You’ve successfully generated your first AI video content with Renku!

Try other example blueprints by browsing the catalog and creating your own copies:

Terminal window
# See available blueprints
ls ./catalog/blueprints/
# Create a new project from any blueprint
renku new:blueprint my-documentary --using=documentary-talkinghead

Each blueprint you create contains an input-template.yaml that documents the required inputs.

You can also create a completely new blueprint without copying from the catalog:

Terminal window
renku new:blueprint my-custom-workflow

This creates a scaffold blueprint with all required sections that you can customize.

If you’re using Claude Code or other AI coding agents that support skills, you can install the Renku plugin to get AI-assisted blueprint creation.

Install the Renku plugin:

Terminal window
/install-plugin https://github.com/keremk/renku/tree/main/renku-plugin

Once installed, you can use the create-blueprint skill to have Claude help you design and create blueprints through natural conversation:

/renku-plugin:create-blueprint

The skill guides you through:

  • Understanding your video requirements
  • Selecting appropriate producers and models
  • Creating the blueprint YAML structure
  • Setting up prompt producers for AI-driven content
  • Validating and testing with dry runs

This is especially useful for complex blueprints with multiple producers and custom prompt logic.

Read the Usage Guide to learn:

  • How to edit and iterate on generated content
  • Using layer-by-layer generation for cost control
  • Browsing available models and producers

For advanced users:

Error: OPENAI_API_KEY not found

Solution: Export your API key, or add it to ~/.config/renku/.env (or a project-local .env in your current working directory).

Error: Blueprint file not found

Solution: Use the full path to the blueprint file. After renku init, blueprints are in {workspace}/catalog/blueprints/.

The providers have rate limits that may depend on your tier or how much you loaded your account with. Setting —concurrency to a higher value than 1 will likely trigger these limits. Concurrency will allow you to parallelize requests, but if you hit rate limits, try lowering the concurrency or upgrading your plan with the provider.

Check that:

  1. All required API keys are set
  2. Check your provider logs to diagnose issues. Sometimes you may be hitting rate limits or safety filters.
  3. Your API accounts have sufficient credits
  4. The model names in the inputs file are valid and currently available.

Run renku producers:list --blueprint=<path> to see available models and check for missing tokens.