Open Source CLI Tool

Talk to your terminal.In plain English.

Turn plain English into the right terminal command—analyzed for safety before it ever runs.

terminal
$
->
$bun add -g @austinthesing/magic-shell@latest
$npm install -g @austinthesing/magic-shell@latest
$pnpm add -g @austinthesing/magic-shell@latest
01 — Capabilities

Magic Shell 1.0 is here

Unified palettes, slash commands, explicit safety, and faster model switching—so you stop memorizing flags and just type.

Multiple AI Providers

Pick from OpenCode Zen, OpenRouter, Vercel and Cloudflare gateways, Workers AI, or your own local models. Free options on every provider.

Unified Palettes

Commands, slash actions, models, providers, themes, safety, and thinking levels share one picker. Learn it once, use it everywhere.

Slash Commands

Type / to discover actions. /models, /providers, /themes, /safety, and /thinking open the same pickers as the keyboard shortcuts—no menus to hunt.

Project Aware

Opt-in context detection reads your package.json scripts, Makefile targets, and more. Say 'run dev'—it already knows what to do.

Shell-Aware

Detects bash, zsh, fish, PowerShell, and more automatically. Every command adapts to your shell's syntax—no guesswork.

Auto Updates

Checks for new versions on startup and can install them for you. Stay current without thinking about it.

02 — Two modes

Two ways to use

A full TUI when you want it, a one-liner when you don't.

[]

Interactive TUI

Recommended

A full terminal interface with unified command palettes, slash commands, themes, history, model switching, and safety analysis.

launch
$ mshell
  • 8 beautiful themes
  • Command history
  • Switch models and providers on the fly
  • Slash commands and keyboard shortcuts
$_

Quick CLI

One-shot commands for fast translations. Pipe output, use in scripts, or execute directly with -x.

examples
$ msh "find large files" find . -type f -size +100M $ msh -x "show disk usage"
  • Quick one-liners
  • Pipe to clipboard
  • Script-friendly
  • Dry-run with -n
03 — Safety

Built-in safety

Every command is checked before it runs. The dangerous ones never reach your shell.

Low
low

Worth reviewing before running

$ git checkout main
Medium
medium

Requires elevated privileges

$ sudo apt install
High
high

Significant changes or data loss risk

$ rm -rf node_modules
Critical
critical

Blocked - could cause system damage

$ rm -rf /
04 — Themes

8 beautiful themes

Match your terminal aesthetic. Switch live with Ctrl+X T or /themes.

magic-shell
$msh "find large files"
find . -type f -size +100M
05 — Get started

Get started in seconds

One command to install—free models to start. Works on macOS, Linux, and Windows.

  1. 1
    Install
    $bun add -g @austinthesing/magic-shell@latest
    $npm install -g @austinthesing/magic-shell@latest
    $pnpm add -g @austinthesing/magic-shell@latest
  2. 2
    Configure your API key
    setup
    $ msh --setup
  3. 3
    Launch the TUI
    launch
    $ mshell