Esta página se muestra en inglés. Una traducción al español está en curso.
SkillsMay 13, 2026·2 min de lectura

magic-cli — LLM Command Suggestion for Terminals

magic-cli is a Rust CLI that suggests commands, semantically searches shell history, and works with local or cloud LLM providers.

Listo para agents

Instalación con revisión previa

Este activo requiere revisión. El prompt copiado pide dry-run, muestra escrituras y continúa solo tras confirmación.

Needs Confirmation · 64/100Política: confirmar
Superficie agent
Cualquier agent MCP/CLI
Tipo
Skill
Instalación
Single
Confianza
Confianza: Established
Entrada
Asset
Comando con revisión previa
npx -y tokrepo@latest install baef23fa-bdf3-53b0-92b6-6329937bdf93 --target codex

Primero dry-run, confirma las escrituras y luego ejecuta este comando.

Introducción

magic-cli is a Rust CLI that suggests commands, semantically searches shell history, and works with local or cloud LLM providers.

Best for: People who live in terminals and want faster ‘what was that flag?’ recovery

Works with: macOS/Linux/Windows (via installers), Ollama/OpenAI/Anthropic

Setup time: 4-12 minutes

Key facts (verified)

  • GitHub: 746 stars · 19 forks · pushed 2026-04-21.
  • License: MIT · owner avatar + repo URL verified via GitHub API.
  • README-verified entrypoint: brew install guywaldman/tap/magic-cli.

Main

  • Use suggest when you know the goal but not the flags; use search when you think you’ve run the command before.

  • Be cost-aware: README warns history embeddings can get expensive with non-local LLMs; start with Ollama for local-first usage.

  • Add shell helper functions (README shows examples) so you can prompt without quotes and keep muscle memory friendly.

Source-backed notes

  • README lists features: suggest commands, generate commands (‘ask’), and semantic search across shell history.
  • README Installation section provides curl-based installer scripts plus Homebrew and PowerShell options.
  • README documents configuration at ~/.config/magic_cli/config.json and supported providers.

FAQ

  • Is it stable?: README marks it early development; expect breaking changes and keep an eye on releases.
  • Can it run fully locally?: Yes — README lists Ollama as a supported local provider for both chat and embeddings.
  • Where are secrets stored?: README says API keys live in config under your home directory; treat it like any CLI credential store.
🙏

Fuente y agradecimientos

Source: https://github.com/guywaldman/magic-cli > License: MIT > GitHub stars: 746 · forks: 19

Discusión

Inicia sesión para unirte a la discusión.
Aún no hay comentarios. Sé el primero en compartir tus ideas.

Activos relacionados