magic-cli

Из публичных источников

Утилита командной строки, которая превращает вас в фокусника в терминале

Машинный перевод · Показать оригинал

Command line utility to make you a magician in the terminal

AI-инструментКатегория: AI-инструментыOpen sourceданные проверены 15 окт. 2026 г.

Обзор

  • ai
  • cli
  • llm
  • rust

Установка

Команды только показываются, маркетплейс их не выполняет. Сверяйтесь с официальной документацией.
  • Официальный сайтИз публичных источниковиз метаданных каталога
    guywaldman.com/posts/introducing-magic-cli ↗
  • Файлы официального релизаИз публичных источниковиз последнего официального релиза
    github.com/guywaldman/magic-cli/releases/tag/0.0.6 ↗
  • Реестр пакетов языкаИз публичных источниковиз манифеста пакета — публикация в реестре не проверена
    cargo install magic-cli

    Не проверено: перед установкой убедитесь, что пакет в реестре принадлежит этому проекту.

    crates.io/crates/magic-cli ↗
  • Сборка из исходниковИз публичных источниковиз метаданных каталога

    Сборка из исходников: проверенного рецепта сборки нет — следуйте инструкциям репозитория.

    github.com/guywaldman/magic-cli ↗

Совместимость

«Неизвестно» значит, что доказательств не найдено, а не что продукт несовместим.
ПлатформаСтатусАрхитектураДоказательствоУверенность
WindowsСовместимоx86_64официальная сборка в релизе 0.0.6: magic-cli-x86_64-pc-windows-msvc.zip0.70
macOSСовместимоarm64официальная сборка в релизе 0.0.6: magic-cli-aarch64-apple-darwin.tar.xz0.70
Совместимоx86_64официальная сборка в релизе 0.0.6: magic-cli-x86_64-apple-darwin.tar.xz0.70
LinuxСовместимоx86_64официальная сборка в релизе 0.0.6: magic-cli-x86_64-unknown-linux-gnu.tar.xz0.70
Web browserНеизвестно———
Server / self-hostedНеизвестно———
Container (OCI)Неизвестно———

Релизы

проверено 29 окт. 2026 г.
v0.0.6Последний27 июл. 2024 г.Официальный источник ↗

Файлы версии 0.0.6

Маркетплейс не хранит эти файлы: загрузка идёт из официального источника. Мы их не сканировали.
ФайлПлатформаРазмерSHA-256Скачать из официального источника
magic-cli-aarch64-apple-darwin.tar.xzmacos · arm64 · tarball1,4 MB—Официальный источник ↗
magic-cli-x86_64-apple-darwin.tar.xzmacos · x86_64 · tarball1,6 MB—Официальный источник ↗
magic-cli-x86_64-pc-windows-msvc.zipwindows · x86_64 · zip5 MB—Официальный источник ↗
magic-cli-x86_64-unknown-linux-gnu.tar.xzlinux · x86_64 · tarball1,7 MB—Официальный источник ↗
magic-cli-aarch64-apple-darwin.tar.xz.sha256контрольные суммы104 B—Официальный источник ↗
magic-cli-x86_64-apple-darwin.tar.xz.sha256контрольные суммы103 B—Официальный источник ↗
magic-cli-x86_64-pc-windows-msvc.zip.sha256контрольные суммы103 B—Официальный источник ↗
magic-cli-x86_64-unknown-linux-gnu.tar.xz.sha256контрольные суммы108 B—Официальный источник ↗
source.tar.gz.sha256контрольные суммы80 B—Официальный источник ↗
dist-manifest.jsonдругое18,8 KB—Официальный источник ↗
magic-cli-installer.ps1другое13,6 KB—Официальный источник ↗
magic-cli-installer.shдругое30,9 KB—Официальный источник ↗
magic-cli.rbдругое2 KB—Официальный источник ↗
source.tar.gzисходный код318 KB—Официальный источник ↗

История релизов

Профиль качества

алгоритм quality-v1.0 · оценено 15 окт. 2026 г.
Оценка качества82
Оценка риска0
Уверенность 1.00
Оценка качества и оценка риска — разные показатели. Высокое качество не гарантирует безопасность.

Составляющие оценки

Поддержка · 2012
last activity 177 days ago
Документация · 1515
README 7310 chars, description present
Готовность к использованию · 1515
install instructions: yes; releases: yes
Метаданные · 1010
4/4 of description, homepage, license, topics
Релизы · 106
6 release(s), latest 810 days ago
Точность категории · 107
classifier confidence 0.65
Популярность · 107
745 stars (log-dampened, 10k = max)
Ясность лицензии · 55
SPDX MIT
Сообщество · 55
issues enabled, 19 forks

Лицензия

MIT
Лицензия известнапо данным хостинга репозитория

Это статус политики каталога, а не юридическое заключение.

Источники

github.com/guywaldman/magic-cliОсновной★ 745 звёздактивность 21 апр. 2026 г.Основной репозиторий · Уверенность 1.00

Отзывы

Войдите, чтобы написать отзыв

Отзывов пока нет.

Альтернативы

README

Из guywaldman/magic-cli · лицензия MIT · загружено 29 окт. 2026 г.

Magic CLI

[Magic CLI logo]

[GitHub Actions CI]

Magic CLI is a command line utility which uses LLMs to help you use the command line more efficiently, inspired by projects such as Amazon Q (prev. Fig terminal) and GitHub Copilot for CLI.

magic-cli relies on the orch library for LLM interactions (execution, orchestration, model alignment, etc.).

Read the announcement blog post.

[!CAUTION]

This project is still in early development.
Expect breaking changes and bugs, and please report any issues you encounter.
Thank you!


Features

  • Suggest a command (see section)
  • Ask to generate a command to perform a task (see section)
  • Semantic search of commands across your shell history
  • Use a local or remote LLM (see section)

Installation

[!NOTE]

For more options on how to install Magic CLI, see the releases page for the version you wish to install.

Shell

curl -LsSf https://github.com/guywaldman/magic-cli/releases/download/0.0.6/magic-cli-installer.sh | sh

Homebrew

brew install guywaldman/tap/magic-cli

PowerShell

powershell -c "irm https://github.com/guywaldman/magic-cli/releases/download/0.0.6/magic-cli-installer.ps1 | iex"

Binaries

See the releases page for binaries for your platform.

Usage Tip

Add functions to your ~/.bashrc or ~/.zshrc to make formatting the prompts in the terminal easier (not requiring quotes).

For example:

function mcs {
  model_prompt="$*"
  magic-cli suggest "$model_prompt"
}

function mcf {
  model_prompt="$*"
  magic-cli search "$model_prompt"
}

function mca {
  model_prompt="$*"
  magic-cli ask "$model_prompt"
}

Suggest a command

Supply a prompt to get a suggestion for the command to run.
This is useful in scenarios where you know approximately what you want (and perhaps even the tool) but don't remember the exact arguments or their order.
This is especially useful with CLI tools like ffmpeg or kubectl.

[Suggest subcommand]

magic-cli suggest "Resize test_image.png to 300x300 with ffmpeg"
Usage: magic-cli suggest <PROMPT>

Arguments:
  <PROMPT>  The prompt to suggest a command for (e.g., "Resize image to 300x300 with ffmpeg")

Search across your command history (experimental)

Search a command across your shell history, and get a list of the top results.

[Search subcommand]

magic-cli search "zellij attach"
Usage: magic-cli search [OPTIONS] <PROMPT>

Arguments:
  <PROMPT>  The prompt to search for

[!IMPORTANT]

Word to the wise: If you're using a non-local LLM, be wary about the cost of the embeddings, especially for long shell histories.

Ask to generate a command (experimental)

Supply a prompt with a task you want the model to perform, and watch it try to suggest a command to run to achieve the goal. It may prompt you along the way to run commands if it needs more context.

magic-cli ask "Set up the dev environment as described in the README"
Usage: magic-cli ask <PROMPT>

Arguments:
  <PROMPT>  The prompt to ask for (e.g., "Set up the development environment")

Use different LLMs

Magic CLI supports two LLM providers:

  • ollama: Ollama is a local LLM provider. The command expects Ollama to be installed and running on your local machine.
  • openai: OpenAI is a cloud LLM provider. You configure an API token, and Magic CLI uses it with the OpenAI APIs.

Configuration

Magic CLI stores configurations in ~/.config/magic_cli/config.json.

Use magic-cli config (to see the options, use magic-cli config --help) to set the configuration options:

Usage: magic-cli config <COMMAND>

Commands:
  set    Set a value
  get    Get a value
  list   List the configurations
  reset  Reset the configurations to the default values
  path   Get the path to the configuration file

The currently suppprted configuration options are:

  • llm: The LLM to use for generating responses. Supported values: "ollama", "openai"
  • ollama.base_url: The base URL of the Ollama API (default: "http://localhost:11434")
  • ollama.embedding_model: The model to use for generating embeddings (default: "nomic-embed-text:latest")
  • ollama.model: The model to use for generating responses (default: "codestral:latest")
  • openai.api_key (secret): The API key for the OpenAI API
  • openai.embedding_model: The model to use for generating embeddings (default: "text-embedding-ada-002")
  • openai.model: The model to use for generating responses (default: "gpt-4o")
  • suggest.add_to_history: Whether to add the suggested command to the shell history (default: false)
  • suggest.mode: The mode to use for suggesting commands. Supported values: "clipboard" (copying command to clipboard), "unsafe-execution" (executing in the current shell session) (default: "unsafe-execution")

    Note: unsafe-execution is named as such to make it clear that the CLI executes the command in the current shell session. Please be extremely careful when using this mode - Magic CLI is not responsible for the execution of commands suggested.

Roadmap

  • Windows support (PowerShell is supported, but Windows has not been tested properly)

  • Support for more LLM providers (e.g., Anthropic)

  • Improve local embedding index (currently stored naively as a JSON, looked into SQLLite with vector extensions)

  • More test coverage


Security

Security is taken seriously and all vulnerabilities will be handled with utmost care and priority.

In terms of data stored, the sensitive data that is currently handled by Magic CLI is:

  • OpenAI API key, which is stored in the configuration within the user home directory (~/.config/magic_cli).

    There are plans to store this token in the system's secure key storage, but this is not yet implemented.

  • Embeddings of the shell history for the magic-cli search command, which are stored in the configuration within the user home directory (~/.config/magic_cli) and are generated using the LLM provider of choice.

Please see SECURITY.md for more information, and instructions on how to report potential vulnerabilities.

Contributing

Contributions are welcome!

Please see CONTRIBUTING.md for more information.

My only request is that pull requests follow an issue, such that we avoid situations of your hard work not being accepted due to a lack of context or necessity.

Открыть репозиторий ↗