Skip to content
PluginStats

ai-cli weekly downloads statistics

By vercel-labs (8 listings) · npm · AI SDKs

Generate anything from your terminal

View on npm Fresh · Dec 6, 2026

ai-cli has 2,596 recorded weekly downloads on npm, a decrease of 5.8% over the past 30 days, ranking #1798 of 3,247 tracked listings.

Weekly downloads
2,596
Official API · Dec 5, 2026
7-day growth
+3.3%
+83 weekly downloads
30-day growth
-5.8%
-160 weekly downloads
90-day growth
+63.6%
+1K weekly downloads
Rank
#1798
▼ 84 in 7 days

About ai-cli

ai

<p> <a href="https://vercel.com/labs#active-experiments"><img alt="Vercel Labs Experiment" src="https://img.shields.io/badge/LABS-EXPERIMENT-0a0a0a.svg?style=for-the-badge&amp;logo=Vercel&amp;labelColor=000000" height="28"></a> <a href="https://www.npmjs.com/package/ai-cli"><img alt="npm version: ai-cli" src="https://img.shields.io/npm/v/ai-cli.svg?style=for-the-badge&amp;labelColor=000000" height="28"></a> <a href="https://www.apache.org/licenses/LICENSE-2.0"><img alt="License: Apache-2.0" src="https://img.shields.io/npm/l/ai-cli.svg?style=for-the-badge&amp;labelColor=000000" height="28"></a> </p>

Generate anything from your terminal

Create text, images, video, and audio, and make typed decisions with composable commands, stdin support, and predictable outputs. Built with the Vercel AI SDK and AI Gateway for access to hundreds of models.

Install

npm install -g ai-cli

Requires Node.js 22+ and an AI Gateway API key.

ai login

ai login opens the API keys page, checks the key you paste, and saves it to ~/.config/ai-cli/auth.json. You can also pipe it in (echo "$KEY" | ai login) or set AI_GATEWAY_API_KEY, which takes priority. ai logout deletes the saved key.

Usage

ai image "a cute dog"
ai video "a spinning triangle"
ai text "explain quantum computing"
ai audio speak "Thanks for trying ai-cli"
ai audio transcribe recording.mp3
ai decide --boolean "refund=Refund requested?" < ticket.txt
ai models                          # list available models
ai mcp --profile all               # start MCP server
Piping and References
ai image "a dragon" | ai video "animate this"
ai video -i input.png "animate this"
ai image --images reference.png "make a sticker in this style"
ai image -i sketch.png -i palette.jpg "render this product concept"
ai text --image screenshot.png "what is broken in this UI?"
cat photo.png | ai text "describe this image"
cat notes.txt | ai text "summarize this"
git diff | ai text "explain these changes"
echo "Ship the changelog" | ai audio speak -o changelog.mp3
cat recording.mp3 | ai audio transcribe
Common Options

Generation commands support:

-m, --model <id>         Model ID (creator/model-name), comma-separated for multi-model
-o, --output <path>      Output file path or directory
-n, --n <n>              Image/video outputs per model (default: 1)
-n, --count <n>          Text/audio generations per model (default: 1)
-p, --concurrency <n>    Max parallel generations (default: 4, video: 2)
--timeout <seconds>      Request timeout in seconds (default: text/audio 120, image 300, video 600)
-q, --quiet              Suppress progress output
--json                   Output metadata as JSON

When using --json, stdout contains only metadata. Generated text, image, video and audio outputs are written to files even when stdout is piped. For image and video --n, fewer returned outputs than requested are reported as an incomplete result with a nonzero exit code. Available media is still saved. When a batching limit or generateText --n splits generation into calls, successful calls are saved even if another call fails. For generateImage and video generation, JSON results include successful call diagnostics in batches. For generateText with --n above 1, they are in calls. Failed call or download details are in failures. For image/video generation, exit 1 means every model result is unsuccessful, including a partial result that saved files. Exit 2 means some models succeeded and others did not. Input validation errors also exit 1.

Model IDs can be specified as creator/model-name or just model-name (resolved against models fetched from the gateway):

ai text -m gpt-5.5 "hello"          # resolves to openai/gpt-5.5
ai image -m flux-2-pro "a sunset"   # resolves to bfl/flux-2-pro
ai audio speak -m tts-1 "hello"     # resolves to openai/tts-1

Model IDs must contain printable ASCII characters without spaces. This applies to both --model values and the AI_CLI_*_MODEL environment variables.

decide

ai evaluate remains available as a backward-compatible alias for ai decide.

Make decisions with named Boolean, Choice, and Score questions using AI SDK evaluation models:

cat ticket.txt |
  ai decide \
    --boolean "refund=Refund requested?" \
    --choice "team=Which team?" \
    --choices "team=billing,support" \
    --score "tone=How positive?" \
    --levels "tone=angry,neutral,happy"

All questions share one unchanged input. Text keeps its line breaks; JSON objects and arrays keep their shape. Each question has an explicit type and a unique ID. Choices and levels bind to that ID regardless of flag order. Repeat the flags to ask more questions in the same request.

  • Boolean returns probability: P(true) from 0 to 1, including strong no answers near zero.
  • Choice returns one supplied option and its distribution when available.
  • Score returns a fractional position on ordered levels, starting at zero, and a distribution when available. Jev uses the probability-weighted mean.

The command calls AI SDK's experimental_decide: stdin maps to state, and typed flags build its named questions. --choices creates a Choice criteria map; --levels creates a Score criteria array. The file form uses the SDK question schema directly. Jev is the default evaluation model; other supported evaluation models use the same interface. Gateway connection options (--base-url, --scope, --headers) and the matching AI_GATEWAY_BASE_URL and AI_GATEWAY_TEAM_ID_OR_SLUG variables apply, with flags winning over environment variables.…

Description from the npm listing.

  • ai
  • cli
  • generative
  • image
  • video
  • audio
  • speech
  • transcription
  • text
  • ai-sdk
  • vercel

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

ai-cli weekly downloads on npm, last 90 days: 2,596 weekly downloads as of Dec 5, 2026, +63.6% over 90 days.ai-cliWeekly downloads on npm · Last 90 days2,596downloads / week+63.6% over 90 days05001K1.5K2K2.5K3K3.5KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
ai-cli weekly downloads on npm, last 90 days: 2,596 weekly downloads as of Dec 5, 2026, +63.6% over 90 days.

7/30/90-day growth

ai-cli weekly downloads growth on npm: +3.3% over 7 days, -5.8% over 30 days, +63.6% over 90 days.ai-cliWeekly downloads growth on npm2,596downloads / week now7-day growth+83 weekly downloads+3.3%30-day growth-160 weekly downloads-5.8%90-day growth+1,009 weekly downloads+63.6%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
ai-cli weekly downloads growth on npm: +3.3% over 7 days, -5.8% over 30 days, +63.6% over 90 days.

Ranking history

ai-cli npm ranking history: currently #1798 (by weekly downloads).ai-clinpm ranking · by weekly downloads · Last 90 days#1798current rank#1300#1400#1500#1600#1700#1800Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 44 observations · Updated Dec 5, 2026pluginstats.com
ai-cli npm ranking history: currently #1798 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,083 shown · page 90, #18 (overall #1,798)
All npm: every listing in weekly downloads order

Listing placement

AI SDKs378 listings · 19 pages · page 8, #20 (overall #160)
AI SDKs: every listing in weekly downloads order

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

Recent observations

Full history (170)
Recent weekly downloads observations for ai-cli
Date (UTC)Weekly downloadsChange vs. previous
2,596+133
2,463+84
2,379+104
2,275-36
2,311-109
2,420-22
2,442-71
2,513-110
2,623-70
2,693-96
2,789+8
2,781+45
2,736-138
2,874—

Similar npm AI SDKs plugins

All 20 ai-cli alternatives

Data source

Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.

Listing: https://www.npmjs.com/package/ai-cli. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.