Socket
Book a DemoInstallSign in
Socket

ai-cli

Package Overview
Dependencies
Maintainers
2
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ai-cli

AI CLI using OpenAI's open source model.

latest
npmnpm
Version
0.0.1
Version published
Maintainers
2
Created
Source

ai-cli

AI CLI using OpenAI's open source model.

Installation

npm install -g ai-cli

Setup

Set your AI Gateway API key in your shell configuration:

# Add to ~/.zshrc or ~/.bashrc
export AI_GATEWAY_API_KEY=your-api-key

Get your API key at https://vercel.com/docs/ai-gateway

Usage

ai "whats up bro"
ai hello
echo "explain this code" | ai
ai -m openai/gpt-oss-120b "who is rauchg"

Options

  • -m, --model - Specify AI model (default: openai/gpt-oss-120b)
  • -h, --help - Show help message

Switching Models

You can use any model available through Vercel AI Gateway by using the -m flag:

ai -m claude-4-sonnet "who am i"
ai -m openai/gpt-4o "count to 3"
ai -m anthropic/claude-4.1-opus "spend my money"

FAQs

Package last updated on 05 Aug 2025

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