Skip to main content

Shell Completions

vai provides tab completion for Bash and Zsh. Completions cover commands, subcommands, flags, model names, and topic names.

Bash

# Generate and source completions
vai completions bash >> ~/.bashrc
source ~/.bashrc

Zsh

# Generate and source completions
vai completions zsh >> ~/.zshrc
source ~/.zshrc

What Gets Completed

  • All vai commands and their subcommands, including vai nano
  • Command flags and options
  • Model names (e.g., voyage-4-large, voyage-4-lite, voyage-4-nano)
  • Topic names for vai explain
  • Chunking strategies for --strategy

Usage

After setup, press Tab to complete:

vai qu<Tab>        # → vai query
vai bench<Tab> # → vai benchmark
vai explain emb<Tab> # → vai explain embeddings