🐚 shell-prompt
shell-prompt is a command-line tool that translates natural language instructions into executable shell commands using an LLM. It supports multiple LLM providers (like OpenAI, Anthropic, Google Gemini, etc.) and adapts to the user's operating system.
Usage example:
- USER INPUT:
shell-prompt "list all files in my Desktop directory"
- OUTPUT:
Command to run:
dir "%UserProfile%\Desktop"
Execute this command? [y/N]: y
Running command: dir "%UserProfile%\Desktop"
*Command output here*
🚀 Features
- Converts natural language into shell commands
- Supports execution and preview mode
- Compatible with Windows, Linux, and macOS
- Extensible to multiple LLM providers via
langchain - Lightweight and configurable
📦 Installation
You can install it from your local build or via PyPI.
Installation should be done with a specific LLM provider, such as:
pip install shell-prompt[google-genai]
List of supported providers:
- openai
- anthropic
- google-genai
- groq
- cohere
- langchain-nvidia-ai-endpoints
- fireworks
- mistralai
- together
- langchain-xai
- langchain-perplexity
🛠 Usage
Once installed, you should first configure the tool. Available options are:
| Option | Description |
|---|---|
-h, --help |
Show the help message and exit |
--version |
Show the program's version number and exit |
--config |
Show the current configuration |
--set-provider PROVIDER_NAME |
Set the LLM provider |
--set-model MODEL_NAME |
Set the specific model to use |
--set-api-key API_KEY |
Set the API key for the currently selected provider |
--preview, --no-preview |
Enable or disable preview mode (avoid instant execution - enabled by deafult) |
Example:
shell-prompt --set-provider google-genai --set-model "gemini-2.0-flash" --set-api-key APIKEY --no-preview
Print out the configuration:
shell-prompt --config
Run the tool:
shell-prompt "show current time, but only the seconds"
Running command: powershell Get-Date -Format ss
39
Metadata
Release files for shell-prompt 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| shell_prompt-0.1.0.tar.gz | 8.2 kB | Without provenance | Details for shell_prompt-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| shell_prompt-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for shell_prompt-0.1.0-py3-none-any.whl |
Total release size: 17.0 kB
Release files / shell_prompt-0.1.0.tar.gz
| Download URL | shell_prompt-0.1.0.tar.gz |
|---|---|
| Size | 8.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
658c7376c9e0977712be9c7b3805cc1175d2ce4a9389c4809cb79bc02def32ba
|
|
BLAKE2b-256 checksum How to use checksums |
44a78c381dbc676ff18aad44f982b1309f54b35e4710cb88adc0fb7dd448faf8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / shell_prompt-0.1.0-py3-none-any.whl
| Download URL | shell_prompt-0.1.0-py3-none-any.whl |
|---|---|
| Size | 8.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b5802e0b6c765aa95c2be918592a595a4ceb6babcd5e67b7a5ba6d2b1c0d8363
|
|
BLAKE2b-256 checksum How to use checksums |
e391dced4bfc03109654169f21b7f8309a96a6fdb7972b8561336ebc4c839979
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Security for shell-prompt 0.1.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.