Type plain English in any terminal. Get the right shell command.
Built by Fisarum. Works on macOS, Linux, and Windows.
$ root find all python files modified in the last 3 days
β Risk level: safe
find . -name "*.py" -mtime -3
[r]un [q]uit >
No cloud. No API key. Runs entirely on your machine using a small local model (~500MB).
Root is now an intelligent CLI agent that learns from your interactions and adapts to your workflow.
- Memory & Learning: Remembers successful commands and learns your preferences
- Risk Assessment: Automatically evaluates command danger levels (safe/moderate/dangerous)
- Dual Modes: Cautious mode for safety, Turbo mode for speed
- Self-Aware: Responds to identity queries like "what are you?"
- Session Intelligence: Tracks success rates and adapts to your patterns
pip install root-cliThen run setup once (downloads the model via Ollama):
root setuproot list all files bigger than 100MB
root kill the process using port 3000
root show disk usage sorted by size
root create a tar.gz of the src folder
root undo the last git commit but keep changesOr use the -p flag when your query starts with a word that could conflict:
root -p setup my git config with my name and email
root -p config nginx to redirect http to httpsAfter translation you get simplified choices:
| Key | Action |
|---|---|
r |
Run the command immediately |
q |
Abort |
Risk Assessment: Root automatically evaluates command risk levels:
- β Safe: Common read-only commands (ls, cat, find, etc.)
- β Moderate: Commands that modify files or use sudo
- β‘ Dangerous: Destructive commands (rm -rf, format, etc.)
- Python 3.9+
- Ollama installed and running (
ollama serve)
First-time setup pulls the model automatically:
root setuproot config # view current config
root config --backend openai --model gpt-4o-mini
root config --api-key sk-...root mode cautious # switch to cautious mode (default)
root mode turbo # switch to turbo mode (auto-run all commands)Cautious Mode: Asks for permission on dangerous commands Turbo Mode: Auto-runs all commands without confirmation
root memory # view memory configuration
root memory --stats # show learning statistics
root memory --clear # clear all learning data
root memory --disable # disable learning system
root memory --enable # enable learning systemroot version # show the installed version and check for updates
root update # update Root to the latest released version
root update -y # update without confirmationRoot checks for new releases once per week. If an update is available, it prints a suggestion to run root update. The check result is also logged to ~/.root/version.log.
When in interactive mode, you can use:
help # show help and available commands
status # show current session status
cautious / turbo # switch modes instantly
clear # clear the screen
exit / quit # end the sessionConfig is stored at ~/.root/config.toml.
backend = "openai"
[openai]
base_url = "https://api.openai.com/v1"
model = "gpt-4o-mini"
api_key = "sk-..."Works with any OpenAI-compatible endpoint (Groq, Together, Mistral, local llama-server, etc.).
- Context Detection: Detects your OS, shell, and current directory automatically
- Self-Awareness: Checks if you're asking about Root's identity
- Pattern Learning: Looks for learned patterns from your previous commands
- Translation: Sends your query + context to a local 0.5B model via Ollama
- Risk Assessment: Evaluates command danger level automatically
- Memory Storage: Stores successful commands for future learning
- Smart Execution: Auto-runs safe commands or asks for confirmation based on mode
The model never sends data anywhere. Everything runs locally, including your memory and learning data.
Root can identify itself and explain its capabilities:
$ root what are you
I am Root, a native CLI micro agent
Capabilities: I translate natural language to shell commands | Currently in cautious mode | I learn from your interactions | I assess command risk levelsRoot learns from your interactions:
- Command Patterns: Remembers successful command patterns for similar queries
- User Preferences: Adapts to your preferred command styles
- Risk Awareness: Learns which commands you consider safe vs dangerous
- Session Statistics: Tracks success rates and provides insights
Root is an open-source project by Fisarum. Contributions are welcome.
- Read the Contributing Guide to get started.
- Follow the Code of Conduct.
- Report security issues privately per the Security Policy.
- Use GitHub Issues for bugs and feature requests.
- Join GitHub Discussions for questions and feedback.
MIT β see LICENSE
root is an open-source project by Fisarum