CLI tool adds AI functionality to Fish shell
Top 84.2% on sourcepulse
fish-ai enhances the Fish shell with Large Language Model (LLM) capabilities, enabling users to convert natural language comments into shell commands, generate explanations for existing commands, and receive intelligent command autocompletions. It targets Fish shell users seeking to reduce time spent on documentation and debugging, offering a streamlined workflow via keyboard shortcuts.
How It Works
The plugin integrates with various LLM providers (OpenAI, Azure OpenAI, Hugging Face, Mistral, Anthropic, Cohere, DeepSeek, Groq, Google, OpenRouter, and self-hosted models) via an OpenAI-compatible API. It leverages Fish shell's scripting capabilities and the fzf
fuzzy finder for interactive command completion and refinement. Key features include command generation from comments, command explanation, typo correction (similar to thefuck
), and context-aware autocompletion, optionally using command history or pipe output.
Quick Start & Requirements
fisher install realiserad/fish-ai
.git
and either uv
or Python with pip
and venv
.~/.config/fish-ai.ini
to specify LLM provider and API keys.Highlighted Details
fzf
for interactive completions.Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
13 hours ago
1 day