ai-cli
v0.0.1
Published
AI CLI using OpenAI's open source model.
Readme
ai-cli
AI CLI using OpenAI's open source model.
Installation
npm install -g ai-cliSetup
Set your AI Gateway API key in your shell configuration:
# Add to ~/.zshrc or ~/.bashrc
export AI_GATEWAY_API_KEY=your-api-keyGet 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"