Vercel AI CLI
The Vercel AI CLI (`ai-cli`, by Vercel Labs) is a lightweight, agent-native command-line tool for generating images, video, and text from the terminal. It uses the Vercel AI SDK and AI Gateway for unified access to hundreds of models across providers.
Canonical version: Vercel AI CLI.
The Vercel AI CLI (ai-cli, by Vercel Labs) is a lightweight, agent-native command-line tool for generating images, video, and text from the terminal. It uses the Vercel AI SDK and AI Gateway for unified access to hundreds of models across providers.
Key points
- Commands —
ai image,ai video,ai text(with vision),ai models. Model IDs followcreator/model-name. - Providers — OpenAI, Google, Anthropic, and more via the AI Gateway.
- Unix-style piping — chain operations (e.g. generate an image, pipe it straight into a video); accepts local files, URLs, and stdin.
- Multi-model compare — run one prompt across several models with
-m a,b,cfor side-by-side output. - Inline preview — renders generated images/video inline in terminals supporting the Kitty graphics protocol.
- Agent-friendly — predictable output, JSON metadata mode, composable piping; "designed to be used by both humans and agents."
- Install —
npm install -g ai-cli, setAI_GATEWAY_API_KEY. - Stack & license — TypeScript, Bun runtime; Apache-2.0.
A media/text generation counterpart to coding-focused CLIs — same AI SDK foundation, but aimed at composable generation pipelines rather than codebase agents.
References
- Repository: https://github.com/vercel-labs/ai-cli
- Website: https://ai-cli.dev/
- Docs: https://ai-cli.dev/docs
Related
About Sébastien
I'm Sébastien Dubois, and I'm on a mission to help knowledge workers escape information overload. After 20+ years in IT and seeing too many brilliant minds drowning in digital chaos, I've decided to help people build systems that actually work. Through the Knowii Community, my courses, products & services and my Website/Newsletter, I share practical and battle-tested systems.
I write about Knowledge Work, Personal Knowledge Management, Note-taking, Lifelong Learning, Personal Organization, Productivity, and more. I also craft lovely digital products and tools.
If you want to follow my work, then become a member and join our community.
Ready to get to the next level?
If you're tired of information overwhelm and ready to build a reliable knowledge system:
- 📚 KM for Beginners — 10+ hours of structured video lessons
- 🚀 Obsidian Starter Kit — Ready-made vault with 40+ templates
- 💼 Knowledge Worker Kit — Complete guides + lifetime community
- 🦉 1-on-1 Coaching — Personalized guidance
- 🎯 Join Knowii — Community + ALL courses & tools
Found this valuable? Share it with someone who needs it.