

Butterfish Shell: AI-Powered Command Line Assistant
Butterfish brings Copilot-style AI prompting straight into your bash or zsh shell, letting you generate commands, debug errors, and automate tasks without leaving the terminal.
Overview
Butterfish Shell transforms your everyday terminal into an AI-augmented workspace by wrapping bash or zsh with LLM capabilities powered by OpenAI or compatible APIs. Instead of switching between a browser and your terminal to ask an AI for help, you can type natural language prompts directly into your shell session and get instant, context-aware suggestions, explanations, and command completions.
Beyond simple autocompletion, Butterfish introduces Goal Mode, a feature that lets an AI agent autonomously execute a sequence of shell commands to accomplish a stated objective, with an 'Unsafe' variant for power users who want fewer guardrails. Combined with customizable prompt templates, this makes Butterfish a flexible tool for engineers who want to speed up repetitive command-line work, troubleshoot failures faster, or offload multi-step automation to an AI agent.
Because it integrates at the shell level rather than as a separate chat interface, Butterfish keeps your workflow uninterrupted—you stay inside bash or zsh, and the AI simply becomes another capability of the environment you already use every day.
Capabilities & Features
- CLI
- AI
- LLM
- Shell
- Bash
- Zsh
- OpenAI
- Command-line tools
- Autocompletion
- Goal Mode
- Software engineering
- Productivity
Core Features
- In-shell AI prompting for bash and zsh
- Context-aware command autocompletion
- Goal Mode for autonomous multi-step task execution
- Unsafe Goal Mode for less restricted automation
- Customizable prompt templates via YAML config
- Compatibility with OpenAI and other compatible APIs
Use Cases
- Getting instant command suggestions without leaving the terminal
- Debugging failed commands with AI-generated explanations
- Automating repetitive multi-step tasks using Goal Mode
- Converting natural language prompts into executable shell commands
- Summarizing text or log output directly from the command line
Best For
- Software engineers
- DevOps engineers
- System administrators
- Data scientists
- Power users who live in the terminal
Pros
- •Keeps AI assistance inside the terminal, avoiding context switching
- •Goal Mode enables hands-off automation of multi-step tasks
- •Customizable prompts allow tailoring AI behavior to specific workflows
- •Works with OpenAI and other compatible API providers for flexibility
- •Lightweight installation via Homebrew or go install
Cons
- •Unsafe Goal Mode could execute unintended or risky commands without careful oversight
- •Requires an OpenAI or compatible API key, adding external dependency and potential cost
- •Limited to bash and zsh, excluding users of other shells
- •Effectiveness depends heavily on the quality of the underlying LLM
How to Use
Install Butterfish using Homebrew (on macOS) or via `go install`. Launch an AI-enabled shell session by running `butterfish shell`. To prompt the AI, simply start a command with a capital letter. For automated task execution, prefix your command with `!` to enter Goal Mode, or `!!` for Unsafe Goal Mode where the agent executes commands with fewer restrictions. Prompt templates can be customized by editing the configuration file at `~/.config/butterfish/prompts.yaml`.
Frequently Asked Questions
Open in AI Studio
Ask our AI to evaluate if Butterfish Shell fits your specific workflow.
Connect & Contact
Pricing
Butterfish itself is a free, open-source command-line tool; however, usage requires your own OpenAI or compatible API key, meaning costs depend on your chosen provider's rates.
Pricing data is provided as a summary. Visit the vendor website for full tier details.