Installation
The CLI is included with thevargai package:
bunx:
Authentication Commands
Login
Sign in to varg.ai and save your API key:- Email — enter email, receive a 6-digit code, verify. Creates account + API key automatically.
- API key — paste an existing key from the dashboard.
~/.varg/credentials.
Logout
Clear saved credentials:Check Balance
View your credit balance:Top Up
Open the billing page to add credits:Project Commands
Initialize Project
Set up a new varg project:hello.tsx, output directories, and .gitignore.
Create Hello World
Generate the hello world starter:hello.tsx with a minimal working example.
Render Video
Render a TSX file to video:
Examples:
Generation Commands
Run individual generation actions:Generate Image
Generate Video
Generate Voice
Generate Music
Transcribe Audio
List Actions
Environment
The CLI readsVARG_API_KEY from:
- Environment variable:
export VARG_API_KEY=varg_xxx .envfile:VARG_API_KEY=varg_xxx- Global credentials:
~/.varg/credentials