Skip to main content

ShellOracle logo

ShellOracle

uv Hatch project Tests PyPI version PyPI Supported Python Versions Downloads

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, llmman, OpenAI, Deepseek, LocalAI, and Grok!

ShellOracle

Show your support for ShellOracle and keep an eye out for exciting new developments by clicking the ⭐ and a 👀!

Table of Contents

Features

Key features of ShellOracle include:

  • Seamless shell command generation from written descriptions
  • Command history for easy reference
  • Unix pipe support for advanced command chaining
  • Self-hosted for full control over your environment
  • Highly configurable to adapt to your preferences

Installation

Installing ShellOracle is easy!

  1. pipx install the shelloracle package
    pipx install shelloracle
    
  2. Configure ShellOracle and follow the prompts
    shor config init
    
  3. Refer to the providers section for specific details regarding your chosen provider.

Upgrading to the latest version of ShellOracle is just as simple!

  1. pipx upgrade the shelloracle package
    pipx upgrade shelloracle
    

Installation with pip is supported, however, pipx is preferred for its automatic environment isolation.

Usage

ShellOracle is designed to be used as a BASH/ZSH/fish widget activated by the CTRL+F keyboard shortcut.

  1. Press CTRL+F
  2. Describe your command
  3. Press Enter

The generated command will be inserted into your shell prompt after a brief processing period.

Other ways to run ShellOracle

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.

Tips

  1. If you press CTRL+F with text in your ZLE buffer, all text left of your cursor will carry over to your ShellOracle prompt.
  2. ⬆️ arrow and ⬇️ arrow cycle through your prompt history.
  3. ShellOracle can be chained with other commands; try: echo "find all the python files in my cwd" | shor

Providers

Ollama

Before 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.

llmman

llmman serves the Ollama API on port 17434. Start it and pull the model you chose in the configure step. For example, if you chose gemma4, run:

llmman serve
llmman pull gemma4

OpenAI

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.

Deepseek

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.

LocalAI

Refer to the LocalAI docs for installation, available models, and usage.

LM Studio

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"

XAI

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.

Google

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.

Configuration

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.

System Requirements

Software

ShellOracle supports BASH, ZSH and fish on macOS and Linux.

Hardware

For cloud providers like OpenAI, there are no hardware requirements.

If running locally, refer to your model for hardware requirements.

Feedback

Encountered problems? File an issue. Feature requests are welcome, and contributions can be made by opening a pull request.

License

This software is licensed under the GPLv3 license.

Metadata

Release files for shelloracle 1.11.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for shelloracle 1.11.0
File Size Uploaded
shelloracle-1.11.0.tar.gz 243.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for shelloracle 1.11.0
File Interpreter ABI Platform
shelloracle-1.11.0-py3-none-any.whl Python 3 none any Details

Total release size: 290.4 kB

Release files / shelloracle-1.11.0.tar.gz

Download URL shelloracle-1.11.0.tar.gz
Size 243.9 kB
Tags Source
SHA-256 checksum
How to use checksums
09281291a0a30e0d45d93e4c4061e233b840bce0b4dee332799c898211a793df
BLAKE2b-256 checksum
How to use checksums
a5798ae4a4be57fe567915960580898375413a23e8045f732bde1f04f964027c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 13, 2026.

Transparency log

Release files / shelloracle-1.11.0-py3-none-any.whl

Download URL shelloracle-1.11.0-py3-none-any.whl
Size 46.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7714f10d1ad187e0a6b2479af70795c7df32bd1b9eb88cd84ca384cf70df381b
BLAKE2b-256 checksum
How to use checksums
6c48ec3ca1f86a74c747ccef278f930415d63ccfe3e1a3311173b57e99da6564
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 13, 2026.

Transparency log

Release history Release notifications | RSS feed

1.12.0

2 release files

This release

1.11.0 This release

2 release files

1.9.0

2 release files

1.8.0

2 release files

1.7.0

2 release files

1.6.1

2 release files

1.6.0

2 release files

1.5.0

2 release files

1.4.0

2 release files

1.3.1

2 release files

1.1.2

2 release files

1.1.0

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.6.0

2 release files

0.5.2

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page