Quick Start

Setup

Option 1: Local AI (Ollama)

# Install Ollama
curl -fsSL https://ollama.ai/install.sh | sh

# Pull a model
ollama pull mistral

# Configure CLIAI
cliai select mistral

Option 2: Cloud AI

# Set your API key
cliai set-key openai sk-your-key-here

# Or use Anthropic
cliai set-key anthropic your-key-here

# Select model
cliai select gpt-4

First Commands

# Ask for help
cliai "how do I list all files including hidden ones?"

# System administration
cliai "check disk usage"

# File operations
cliai "find all Python files modified in the last week"

# Git operations
cliai "show me the last 5 commits"

Custom Prefix

Set a custom command prefix:

cliai set-prefix ai
# Now use: ai "your question"