jwshell
LLM-powered shell command explainer and generator.
jwshell takes a single string and either:
- explains it, when the string is a valid bash/zsh command or expression, or
- generates a command, when the string is a natural-language description of a desired effect.
It uses OpenRouter under the hood.
Install
Requires Python 3.12+. The recommended workflow uses uv.
git clone https://github.com/janwychowaniak/jwshell.git
cd jwshell
uv sync
To install globally as a CLI:
uv tool install .
Configure
export JWSHELL_OR_APIKEY="sk-or-..." # required
export JWSHELL_OR_MODEL="openai/gpt-5.2" # optional, defaults to anthropic/claude-haiku-4.5
Use
Explain a command (brief):
jwshell "ls -la"
Explain a command in detail:
jwshell -v "find . -name '*.py' -mtime -1"
Generate a command from a description:
jwshell "list every python file modified today"
Override the model for a single call:
jwshell --model anthropic/claude-sonnet-4.6 "tar all logs older than 7 days"
Development
uv sync # install runtime + dev deps
uv run ruff check . # lint
uv run ruff format . # format
uv run mypy # strict type-check
uv run pytest # tests
License
MIT — see LICENSE.
Metadata
Release files for jwshell 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 |
|---|---|---|---|---|
| jwshell-0.1.0.tar.gz | 8.9 kB | With provenance | Details for jwshell-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| jwshell-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for jwshell-0.1.0-py3-none-any.whl |
Total release size: 18.8 kB
Release files / jwshell-0.1.0.tar.gz
| Download URL | jwshell-0.1.0.tar.gz |
|---|---|
| Size | 8.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b90767e4a58a5ccb45b9642315c7f0fa10389da8cc1c880f3c711a2a13adceeb
|
|
BLAKE2b-256 checksum How to use checksums |
72a37a6f6fdb912076d3f46dbd3db0ecbbe8a29553c45ac88bb10a137cf07479
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 May 6, 2026.
Transparency logRelease files / jwshell-0.1.0-py3-none-any.whl
| Download URL | jwshell-0.1.0-py3-none-any.whl |
|---|---|
| Size | 9.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
641e27fc0abb296a46a26cd280174b5b3d20fda75dab147ce30ce24c2aaf2d6f
|
|
BLAKE2b-256 checksum How to use checksums |
d0e71d9cf860949a0eca615b0b3c149f4c8ee83accb13fedb8d40b5215843b64
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 May 6, 2026.
Transparency logSecurity for jwshell 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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for jwshell-0.1.0.tar.gz
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 May 6, 2026.
Transparency logA 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.