magic-command
v1.0.0
Published
Generate commands using AI without leaving your terminal
Maintainers
Readme
Version française ici.
Magic Command
Get an AI-generated command instantly from your terminal. Use any model available on OpenRouter, you'll need your own API key.
https://github.com/user-attachments/assets/5f0e0a14-6a9e-4e96-b46a-2c3fcdb4cd52
Installation
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 │
# │ │
# ╰───────────────────────────────────────╯Configuration
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-miniLicence
MIT © Johan. Support this project via Ko-Fi or PayPal if you want to help me 💙
