butterfish-shell

butterfish-shell

Butterfish Shell is an AI-powered command line shell wrapper that integrates OpenAI's GPT models to provide contextual command suggestions, debugging help, and goal-oriented automation directly within bash or zsh shells on MacOS and Linux.

butterfish-shell is developer tools software teams evaluate for developer tools. Use this page to review pricing, integration signals, and the best alternatives before you commit.

Free API
#127 in Developer Tools (127 tools)
Added 5 months ago
18113 directory views this week

Quick Overview

Best for: Developer Tools

What it does

Developer Tools software for decision-makers comparing workflow fit and alternatives.

Best fit

Developer Tools

Pricing snapshot

Free

Next step

Compare butterfish-shell with similar tools before you shortlist it.

Compare this tool before you shortlist it

Review alternatives, pricing posture, and workflow fit side by side.

butterfish-shell

Butterfish Shell is designed for command line users who want to enhance their shell experience with AI assistance. It wraps existing shells like bash and zsh, enabling users to start commands with a capital letter to prompt AI-powered suggestions, explanations, and debugging help using OpenAI's GPT models. The AI has access to the shell history, allowing contextual conversations such as understanding why a command failed or generating new commands. It also supports a Goal Mode where the AI acts as an agent to execute commands to achieve user-defined goals. Butterfish is open source, configurable, and aims to be unobtrusive while improving productivity for developers and command line users.

AI-powered command-line tool for shell prompting and autocompletion.

Own this listing?

Claim this page to add pricing, features, screenshots, and verified owner details.

Claim this listing

Key Features

AI-Powered Command Prompting

Start commands with a capital letter to send prompts to OpenAI's GPT models, receiving contextual help and command generation based on shell history.

Goal Mode

An agent mode where the AI suggests and optionally executes commands to accomplish user goals, with options for safe or unsafe execution.

Autosuggest

GitHub Copilot-like autosuggestions for shell commands based on recent history and AI-generated completions, applied with the Tab key.

Customizable Prompts

Users can edit the prompt wrappers in a YAML configuration file to control the instructions sent to the AI.

Multi-Model Support

Supports different OpenAI models like gpt-4-turbo and gpt-3.5-turbo, and can connect to any OpenAI-compatible API endpoint.

Shell Integration

Works seamlessly with bash and zsh on MacOS and Linux, intercepting shell input/output without interfering with normal workflows.

Verbose Logging and Transparency

Enables verbose mode to log full AI prompts and responses for transparency and debugging.

Neovim Plugin

Includes butterfish.nvim plugin for fluent LLM prompting within Neovim.

Pricing

Free Tier Available

Butterfish itself is open source and free to use, but requires an OpenAI API key which may incur costs depending on your OpenAI subscription and usage.

Use Cases

Contextual Command Debugging

Ask why a previous shell command failed and get AI explanations and fixes without leaving the terminal.

Command Generation

Request AI to generate shell commands for specific tasks, such as finding files or installing dependencies.

Goal-Oriented Automation

Use Goal Mode to have the AI suggest and execute sequences of commands to accomplish complex tasks.

Shell Autocompletion

Receive AI-powered autosuggestions for commands as you type, improving efficiency and reducing errors.

General ChatGPT Interface

Use the shell as a ChatGPT interface for non-shell related queries, like asking for recipes.

Neovim Code Rewriting

Use the butterfish.nvim plugin to prompt LLMs for code rewriting and other programming tasks inside Neovim.

Integrations

OpenAI API

Uses OpenAI's ChatGPT API for AI-powered command suggestions and interactions.

OpenAI-Compatible APIs

Supports any server with an OpenAI-compatible API endpoint, enabling use with local or alternative AI models.

Neovim

Provides a Neovim plugin (butterfish.nvim) for LLM prompting inside the editor.

Benefits

Improves command line productivity with AI-powered contextual assistance.
Reduces the need to switch contexts or copy-paste between terminal and browser.
Customizable and transparent AI prompts for user control and trust.
Supports multiple AI models and local OpenAI-compatible endpoints.
Open source and actively maintained with community feedback.
Seamless integration with existing shells without disrupting workflows.

Limitations

Goal Mode can be hit or miss and may struggle with complex or large file manipulations.
AI suggestions depend on the quality and recency of shell history within token limits.
Requires an OpenAI API key and usage may incur costs.
Unsafe Goal Mode (!!) can execute commands without confirmation and should be used with caution.
History and command outputs are truncated to fit within API token limits, limiting context size.

Frequently Asked Questions

What shells does Butterfish support?
Butterfish supports bash and zsh shells on MacOS and Linux.
How do I prompt the AI in Butterfish Shell?
Start your command with a capital letter to send it as a prompt to the AI.
What is Goal Mode?
Goal Mode allows the AI to suggest and optionally execute commands to accomplish a user-defined goal, triggered by starting a command with '!' or '!!'.
Is Butterfish free to use?
Butterfish is open source and free, but requires an OpenAI API key which may have associated costs.
Can I customize the AI prompts?
Yes, prompts are stored in a YAML file (~/.config/butterfish/prompts.yaml) and can be edited to customize AI behavior.
Does Butterfish interfere with normal shell usage?
Butterfish is designed to be unobtrusive and does not interfere with normal shell workflows, except for adding a prompt emoji and intercepting input starting with capital letters.

Getting Started

  1. 1 Install Butterfish Shell via Homebrew on MacOS or using 'go install' on MacOS/Linux.
  2. 2 Run 'butterfish shell' to start the shell wrapper.
  3. 3 On first run, provide your OpenAI API key when prompted.
  4. 4 Optionally alias 'butterfish' to a shorter command like 'bf' in your shell config.
  5. 5 Start using AI prompts by typing commands starting with a capital letter.
  6. 6 Explore Goal Mode by starting commands with '!' or '!!' for agent-driven automation.

Support

docs

Documentation and usage instructions are available on the GitHub repository.

issue tracker

Users can submit issues and feature requests via the GitHub repository at https://github.com/bakks/butterfish.

API

Available: Yes
Documentation:

Butterfish uses the OpenAI ChatGPT API and supports any OpenAI-compatible API endpoint configurable via the --base-url flag.

Rate Limits:

Butterfish respects OpenAI API token limits (e.g., 4096 tokens for GPT-3.5) and truncates shell history accordingly to fit requests.

Compare butterfish-shell with similar tools

See how it stacks up against alternatives

Related Tools

View all 127 →
Contact for pricing
defang

defang

Defang is a platform that enables instant deployment of agentic applications to any cloud using simple Docker Compose files, supporting multiple frameworks and languages with built-in security and scalability.

Developer Tools
Contact for pricing
prompts

prompts

Weights & Biases is a platform designed to help machine learning teams track experiments, visualize results, and collaborate effectively.

Developer Tools
Contact for pricing
AISentinel SDKs

AISentinel SDKs

Information about AISentinel SDKs is currently unavailable due to access restrictions on the source page.

Developer Tools API
Contact for pricing
infrabase-ai

infrabase-ai

Infrabase.ai is a comprehensive directory dedicated to discovering and exploring AI infrastructure tools across various categories, helping developers and organizations build world-class AI products.

Developer Tools
Contact for pricing
Kiro

Kiro

Kiro is an AI-powered integrated development environment (IDE) designed to streamline the process from prototype to production, helping developers accelerate their workflow.

Developer Tools AI Tools
Contact for pricing
aptori

aptori

Aptori is an AI-driven autonomous application security platform that detects, prioritizes, and remediates vulnerabilities across code, APIs, applications, and cloud environments, enabling faster, secure software releases and continuous compliance.

Developer Tools
Contact for pricing
equixly

equixly

Equixly is an AI-powered continuous security testing platform designed to scan APIs for vulnerabilities, enabling faster and more secure code releases by identifying and addressing security flaws early.

Developer Tools
Enterprise-ready
Freemium
code-gpt

code-gpt

CodeGPT is an AI-powered software development platform that accelerates coding, onboarding, and codebase understanding for individuals and enterprises through intelligent AI agents integrated into popular IDEs.

Developer Tools

Premium Alternatives

Paid
Moreseo

Moreseo

MoreSEO was an AI-driven platform that generated, optimized, scheduled, and auto-published SEO blog posts across multiple CMS and sites with manual or fully-autopilot modes. (Note: MoreSEO is discontinued and not available for new users.)

SEO
Enterprise-ready
Paid
Bot9

Bot9

Bot9 is a code-free AI chatbot platform that automates customer support and sales by training a secure assistant on your company data, providing 24/7 multilingual support and integrations to streamline workflows.

Chatbots & Assistants
Enterprise-ready
Paid
Bestaiprompts

Bestaiprompts

BestAIPrompts is a curated, one-time-purchase bundle of advanced image-generation prompts for Midjourney and other generative AIs, offering 2,203+ prompts across multiple creative categories for professionals and amateurs.

Image & Design
Paid
Palettebrain

Palettebrain

PaletteBrain is a macOS productivity app that brings ChatGPT-style AI to any app or website via a global shortcut. It uses your own OpenAI or Azure API keys, supports custom commands and templates, and is sold as a lifetime license with no recurring fees.

Productivity
Paid
Momentum AI

Momentum AI

Momentum AI is a production-ready Retrieval-Augmented Generation (RAG) starter kit that provides a complete full-stack application for building AI chatbots capable of understanding documents. It offers a fast setup, free local LLM integration, and comprehensive documentation, designed for developers, indie hackers, companies, and students.

Chatbots & Assistants Productivity
Paid
Smart AI Offer Builder

Smart AI Offer Builder

Smart AI Offer Builder is an AI-powered platform designed to help businesses create compelling offers that increase sales by up to 10x without changing the product. It enables users to design offers, optimize pricing, and leverage urgency and bonuses to boost conversions.

Marketing Marketing
Paid
Whispertranscribe

Whispertranscribe

WhisperTranscribe converts any audio into full transcripts, summaries, timestamps and blog-post-ready content with a one-click workflow, aimed at creators, podcasters, journalists and teams needing fast audio-to-text conversion.

Transcription
Paid
Candlestick AI

Candlestick AI

Candlestick AI is an AI-powered investing platform that uses advanced models to analyze global business and financial news, helping regular investors customize portfolios and automate investing with transparency and ease.

Finance Finance

Explore Related Categories

Explore by Outcome