A Fish shell function that provides convenient shortcuts for running AI models via GitHub's CLI models command.
This tool simplifies the process of interacting with various AI models through GitHub's gh models run
command. It provides short aliases for different AI models and handles the command construction for you.
- Ensure you have the GitHub CLI installed and configured
- Make sure the GitHub CLI models plugin is installed:
gh extension install github/gh-models
- Copy the
mrun.fish
file to your Fish functions directory:cp mrun.fish ~/.config/fish/functions/
- Reload your Fish shell or run:
source ~/.config/fish/functions/mrun.fish
Basic usage:
mrun [model_shortcut] "your prompt here"
Without any arguments (launches interactive GitHub Models interface):
mrun
Without specifying a model (defaults to gpt-4o):
mrun "What is the capital of France?"
With a specific model:
mrun 4om "Explain quantum computing briefly"
4o
: gpt-4o4om
: gpt-4o-minio1
: o1o1m
: o1-minio1p
: o1-previewo3m
: o3-mini
m3b
: Ministral-3Bml
: Mistral-largeml24
: Mistral-Large-2411mnemo
: Mistral-Nemoms
: Mistral-small
l3.2-11v
: Llama-3.2-11B-Vision-Instructl3.2-90v
: Llama-3.2-90B-Vision-Instructl3.3-70
: Llama-3.3-70B-Instructml3-70
: Meta-Llama-3-70B-Instructml3-8
: Meta-Llama-3-8B-Instructml3.1-405
: Meta-Llama-3.1-405B-Instructml3.1-70
: Meta-Llama-3.1-70B-Instructml3.1-8
: Meta-Llama-3.1-8B-Instruct
ccr
: Cohere-command-rccr08
: Cohere-command-r-08-2024ccrp
: Cohere-command-r-plusccrp08
: Cohere-command-r-plus-08-2024
j15l
: AI21-Jamba-1.5-Largej15m
: AI21-Jamba-1.5-Mini
dsr1
: DeepSeek-R1dsv3
: DeepSeek-V3
jais30
: jais-30b-chat
c25
: Codestral-2501
p3m-128
: Phi-3-medium-128k-instructp3m-4k
: Phi-3-medium-4k-instructp3mi-128
: Phi-3-mini-128k-instructp3mi-4k
: Phi-3-mini-4k-instructp3s-128
: Phi-3-small-128k-instructp3s-8k
: Phi-3-small-8k-instructp3.5mi
: Phi-3.5-mini-instructp3.5moe
: Phi-3.5-MoE-instructp3.5vi
: Phi-3.5-vision-instructp4
: Phi-4p4mi
: Phi-4-mini-instructp4mm
: Phi-4-multimodal-instruct
MIT
fish-shell
shell-script
github-cli
ai-models
command-line-tool
cli-wrapper
productivity
developer-tools
llm-interface
openai
mistral
llama
cohere
ai21
deepseek
phi
ai-assistant