CLI tool for LLM-powered command-line assistance
Top 47.5% on sourcepulse
Magic CLI is a command-line utility designed to enhance terminal efficiency by leveraging Large Language Models (LLMs). It assists users in discovering, generating, and executing shell commands, acting as an AI pair programmer for the command line. The tool is targeted at developers and power users who frequently interact with the terminal and can benefit from intelligent command suggestions and history search.
How It Works
Magic CLI integrates with LLMs to provide its core functionalities. It supports both local LLM providers like Ollama and cloud-based services such as OpenAI. The tool can suggest commands based on natural language prompts, search through shell history semantically, and even attempt to execute multi-step tasks by generating and potentially running sequences of commands. This approach aims to reduce the cognitive load of remembering complex command syntax and arguments.
Quick Start & Requirements
curl ... | sh
) or Homebrew (brew install guywaldman/tap/magic-cli
). PowerShell installation is also supported.~/.config/magic_cli/config.json
.Highlighted Details
.bashrc
or .zshrc
.Maintenance & Community
The project is in early development, with a caution for breaking changes and bugs. Contributions are welcomed via pull requests linked to issues.
Licensing & Compatibility
The repository does not explicitly state a license in the README.
Limitations & Caveats
The project is in early development, with potential for breaking changes and bugs. Windows support is noted as untested, though PowerShell installation is available. Sensitive data like OpenAI API keys are stored in plain text configuration files, with plans for more secure storage. The local embedding index is stored naively as JSON, with future plans for SQLite.
1 year ago
1 day