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

  • Commandsai image, ai video, ai text (with vision), ai models. Model IDs follow creator/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,c for 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."
  • Installnpm install -g ai-cli, set AI_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


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:

Found this valuable? Share it with someone who needs it.

Join 6,000+ readers. Get practical systems for knowledge & AI. Free.

Subscribe ✨

Free: Knowledge System Checklist

A clear roadmap to building your own knowledge system. Subscribe and get it straight to your inbox.

6,000+ readers. No spam. Unsubscribe anytime.