
ShellOracle is an innovative terminal utility designed for intelligent shell command generation, bringing a new level of efficiency to your command-line interactions. ShellOracle currently supports Ollama, OpenAI, Deepseek, LocalAI, and Grok!

Show your support for ShellOracle and keep an eye out for exciting new developments by clicking the ⭐ and a 👀!
Key features of ShellOracle include:
Installing ShellOracle is easy!
shelloracle package
shell
pipx install shelloracleshell
shor config initUpgrading to the latest version of ShellOracle is just as simple!
shelloracle package
shell
pipx upgrade shelloracleInstallation with pip is supported, however, pipx is preferred for its automatic environment isolation.
ShellOracle is designed to be used as a BASH/ZSH/fish widget activated by the CTRL+F keyboard shortcut.
The generated command will be inserted into your shell prompt after a brief processing period.
ShellOracle can be run as a Python module with python3 -m shelloracle or using its entrypoint shor, however,
running ShellOracle with this method will not automatically insert the result into your shell prompt.
echo "find all the python files in my cwd" | shorBefore using ShellOracle with Ollama, pull the model you chose in the configure step.
For example, if you chose qwen2.5-coder, run:
ollama pull qwen2.5-coder
Refer to the Ollama docs for installation, available models, and usage.
To use ShellOracle with OpenAI's models, create an API key. Edit
your ~/.shelloracle/config.toml to change your provider and enter your API key.
You can use shor config edit as a shorthand to edit this file.
To use ShellOracle with Deepseek's models, create an API key. Edit
your ~/.shelloracle/config.toml to change your provider and enter your API key.
You can use shor config edit as a shorthand to edit this file.
Refer to the LocalAI docs for installation, available models, and usage.
To use ShellOracle with LM Studio, you will first need to run a model and start the server. For macOS users, it's recommended to utillize a model that is using the MLX runtime.
Here is an example configuration:
[shelloracle]
provider = "OpenAICompat"
[provider.OpenAICompat]
base_url = "http://localhost:1234/v1"
api_key = "lm-studio"
model = "mistralai/devstral-small-2507"
To use ShellOracle with XAI's models, create an API key.
Edit your ~/.shelloracle/config.toml to change your provider and enter your API key.
You can use shor config edit as a shorthand to edit this file.
To use ShellOracle with Google's models, create an API key.
Edit your ~/.shelloracle/config.toml to change your provider and enter your API key.
You can use shor config edit as a shorthand to edit this file.
ShellOracle's configuration is your gateway to tailoring the utility to match your preferences and requirements.
The ~/.shelloracle/config.toml file serves as the control center for customizing various aspects of ShellOracle's
behavior. You can quickly access and edit this file using the command shor config edit.
ShellOracle supports BASH, ZSH and fish on macOS and Linux.
For cloud providers like OpenAI, there are no hardware requirements.
If running locally, refer to your model for hardware requirements.
Encountered problems? File an issue. Feature requests are welcome, and contributions can be made by opening a pull request.
This software is licensed under the GPLv3 license.
$ claude mcp add ShellOracle \
-- python -m otcore.mcp_server <graph>