Version française ici.
Get an AI-generated command instantly from your terminal. Use any model available on OpenRouter, you'll need your own API key.
Init.Vite.App.downscaled.mp4
Magic Command only supports recent versions of NodeJS (v20+).
# With npm
npm i -g magic-command
# Or with pnpm
pnpm i -g magic-command
$ magiccommand --version
$ magiccommand --help
$ magiccommand "Init Vite App"
# ╭ Magic Command ────────────────────────╮
# │ │
# │ npm init vite@latest │
# │ │
# │ Usage: 417 tokens, took 1.10 secs │
# │ │
# ╰───────────────────────────────────────╯
You will need to add your OpenRouter API key to your environment variables, this is usually done through the .bashrc
or .zshrc
file on macOS and Linux.
# Authentication, required
MAGICCOMMAND_OPENROUTER_KEY=sk-or-...
# Customization, optional
MAGICCOMMAND_OPENROUTER_MODEL=openai/gpt-4o-mini
MIT © Johan. Support this project via Ko-Fi or PayPal if you want to help me 💙