You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

@vargai/sdk

Package Overview
Dependencies
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vargai/sdk

latest
npmnpm
Version
0.4.0-alpha.1
Version published
Maintainers
2
Created
Source

varg

AI video generation from your terminal.

Quick Start

bun install @vargai/sdk
varg run image --prompt "cyberpunk cityscape at night"
varg run video --prompt "camera flies through clouds" --duration 5
varg run voice --text "Hello world" --voice rachel

Commands

CommandDescription
varg run <action>Run an action
varg listList all available actions
varg find <query>Search actions by keyword
varg which <action>Show action details and options
varg helpShow help

Actions

ActionDescriptionExample
imageGenerate image from textvarg run image --prompt "sunset"
videoGenerate video from text or imagevarg run video --prompt "ocean waves" --image ./photo.jpg
voiceText-to-speechvarg run voice --text "Hello" --voice sam
musicGenerate musicvarg run music --prompt "upbeat electronic"
transcribeAudio to text/subtitlesvarg run transcribe --audio ./speech.mp3
captionsAdd subtitles to videovarg run captions --video ./clip.mp4
syncLipsync audio to videovarg run sync --video ./face.mp4 --audio ./voice.mp3
trimTrim videovarg run trim --input ./video.mp4 --start 0 --end 10
cutRemove section from videovarg run cut --input ./video.mp4 --start 5 --end 8
mergeCombine videosvarg run merge --inputs ./a.mp4 ./b.mp4
splitSplit video at timestampsvarg run split --input ./video.mp4 --timestamps 10,20,30
fadeAdd fade in/outvarg run fade --input ./video.mp4 --type both
transitionAdd transitions between clipsvarg run transition --inputs ./a.mp4 ./b.mp4
uploadUpload file to S3varg run upload --file ./video.mp4

Use varg run <action> --help for all options.

Environment Variables

Required API keys
# AI Providers
FAL_API_KEY=fal_xxx
REPLICATE_API_TOKEN=r8_xxx
ELEVENLABS_API_KEY=xxx
GROQ_API_KEY=gsk_xxx
FIREWORKS_API_KEY=fw_xxx
HIGGSFIELD_API_KEY=hf_xxx
HIGGSFIELD_SECRET=secret_xxx

# Storage (Cloudflare R2)
CLOUDFLARE_R2_API_URL=https://xxx.r2.cloudflarestorage.com
CLOUDFLARE_ACCESS_KEY_ID=xxx
CLOUDFLARE_ACCESS_SECRET=xxx
CLOUDFLARE_R2_BUCKET=bucket-name

Contributing

See CONTRIBUTING.md for development setup.

License

Apache-2.0 — see LICENSE.md

FAQs

Package last updated on 22 Jan 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts