Use terminal with natural language.
larpshell translates natural language into shell commands using AI, then executes them in your terminal (not without asking for confirmation of course). You can also edit the commands before running, or ask for an explanation of what they do. Both prompt templates for command generation and explanation are customizable.
Important
Always review generated commands before running them! larpshell makes this easy with editing and explanation features, but you own what executes on your machine.
From crates.io (recommended):
cargo install larpshellFrom source:
curl -sSL https://raw.githubusercontent.com/uwuclxdy/larpshell/mommy/install.sh | shFrom AUR (bin; latest release, no Rust needed): yay -S larpshell
From AUR (git; latest commit): yay -S larpshell-git
Configure your AI provider:
larpshell apiPick a provider and enter credentials. Config is saved in ~/.config/larpshell/config.toml.
| Provider | About |
|---|---|
| Gemini | Free API key at aistudio.google.com/apikey |
| OpenRouter | Free models available with openrouter/auto (default, free models list) |
| Ollama | API key optional |
| OpenAI-compatible | any compatible API (custom base URL support) |
$ larpshell show disk usage
> df -h
Run this?
[Y/Enter] to execute, [E] to explain, [Arrow Up] to edit, [N] to cancel
$ larpshell
larpshell> show disk usage
> df -h
Run this?
[Y/Enter] to execute, [E] to explain, [Arrow Up] to edit, [N] to cancel
$ larpshell explain df -h
> df -h
✅ Displays free disk space of mounted filesystems in a human readable format.
Run this?
[Y/Enter] to execute, [Arrow Up] to edit, [N] to cancel
Press Arrow Up at the confirmation prompt. Full cursor control with left/right, home/end, backspace/delete.
> df -h --total▉
[Enter] to confirm, [Ctrl+C] to quit
Let the LLM gather context before producing a command. It can call built-in tools (read_file, list_files, search_files, run_command) and any MCP servers you configure. Every tool call asks for confirmation before it runs.
Toggle it on:
larpshell agent on # or `/agent` in the REPLThen ask as usual:
$ larpshell what's the largest file in this repo
tool Allow listing files in .?
result (14 lines)
tool Allow running du -ah --max-depth=2?
result (28 lines)
> du -ah . | sort -rh | head -n 1
Run this?
[Y/Enter] to execute, [E] to explain, [Arrow Up] to edit, [N] to cancel
MCP servers go in ~/.config/larpshell/mcp.json using the standard mcpServers format:
{
"mcpServers": {
"git": {
"command": "mcp-server-git",
"args": ["--repository", "."]
}
}
}| Command | Description |
|---|---|
larpshell api |
Configure AI provider |
larpshell agent [on|off] |
Toggle agent mode (tools + MCP) |
larpshell explain <cmd> |
Explain a command with safety rating |
larpshell prompt [system|explain] [show|edit] |
View or edit prompt templates |
larpshell uninstall |
Remove larpshell |
larpshell --help |
Show help |
- You describe what you want in plain language
- An AI provider translates your request into a shell command
- You review the command, edit it if needed, or ask for an explanation
- Press Enter to run it in your shell