Skip to main content

Clishe

Say what you want. Learn the command. Keep your shell.

An offline-first command-line companion for Linux beginners. Type plain English, get a real shell command, and see exactly what will run before it does. AI assistance is optional, and when you use it, it runs on your own machine.

Tests License: MIT Python 3.9+ Platform: Linux and macOS Status: alpha

Quick start · What it does · Install · Using it · Docs · Contributing


Clishe demo: plain English to a command with Ctrl+G, flags explained, "what does this mean", the safety check and the thinking orbs

Or skip the session entirely: type plain English at your normal prompt and press Ctrl+G. The words turn into the command, right there on your line, ready to read, edit and run.

$ show me disk usage        ← press Ctrl+G
$ df -h                     ← press Enter when you're ready

Quick start

pipx install clishe   # Linux or macOS (Windows: inside WSL)
clishe                # then type what you want, e.g. "show me disk usage"

Other ways to install are under Install.

What it does

Most command-line tools assume you already know the command you want. Clishe assumes you don't, and treats that as normal.

  • Plain English in, real command out, offline: your phrases, 100+ built-in ones and 31,000 tldr-pages examples, with "did you mean...?" when it's close. No account, no network.
  • Every part labelled, so you see what each flag does before anything runs. explain does the same for any command, from your own man pages.
  • Ctrl+G in your normal shell (bash, zsh or fish) turns a line of English into the command, without running it.
  • Safe by default: destructive commands need a typed YES and say why; rm can go to the Trash; undo that reverses the last change.
  • fix that explains a failed command and offers a fix, and clishe check says what a command or script would do before you run it.
  • Learn as you go: after a few asks it's your turn to type it; practice lessons, your own cheat sheet and progress; tour explains your computer.
  • AI is optional and local (Ollama, llama.cpp, LM Studio...). Nothing leaves your machine unless you turn on a cloud provider.
  • It learns from you: what you teach or approve is remembered once it has worked. A command that fails is never saved.
Each part labelled Is this safe to run?
compress a folder: tar -czvf with each part labelled clishe check on curl piped into sudo bash
fix that clishe tour
fix that after cd Documnets offers cd Documents clishe tour: your Linux and your computer

Every feature, with examples: Using Clishe.

Install

Requirements: Linux or macOS, bash (any version, including the 3.2 that macOS ships) and Python 3.9+ (standard library only).

macOS: works with the built-in bash, zsh and fish. Install hints use Homebrew, deleted files go to the Trash, and clishe tour explains your Mac. Most commands work the same as on Linux; where macOS's BSD tools differ, explain reads your Mac's own man pages. Windows: use WSL.

pipx installs command-line tools in their own space, and most distros package it (sudo apt install pipx, sudo dnf install pipx, sudo pacman -S python-pipx). On a Mac: brew install pipx.

pipx install clishe

Update with pipx upgrade clishe. (uv tool install clishe works too, and pipx install git+https://github.com/Sym-jay/clishe gets the latest unreleased code.) There's also a man page: man clishe.

With the install script

curl -fsSL https://raw.githubusercontent.com/Sym-jay/clishe/main/install.sh | bash

This needs git. It clones the repo into ~/.clishe-src and links a clishe launcher into ~/.local/bin. If that directory isn't on your PATH, the installer tells you what to add. To read the script first, view install.sh, or once you have Clishe, clishe check install.sh.

From a clone

git clone https://github.com/Sym-jay/clishe.git
cd clishe
./clishe.sh

Uninstall

pipx uninstall clishe                       # if you used pipx
rm -rf ~/.clishe-src ~/.local/bin/clishe    # if you used the install script
# Optional: also remove your saved data and config
rm -rf ~/.local/share/clishe ~/.config/clishe

Using it

Start a session with clishe and type what you want. Type help for tips, and exit (or Ctrl-D) to leave.

For Ctrl+G at your normal prompt, add one line to your shell's startup file, then open a new terminal. It also turns on Tab completion for clishe.

eval "$(clishe --init bash)"   # in ~/.bashrc
eval "$(clishe --init zsh)"    # in ~/.zshrc
clishe --init fish | source    # in ~/.config/fish/config.fish

Session commands

Type What it does
help Show tips
learned List the phrases you've taught
teach Teach a phrase and its command, or fix a wrong one
forget <phrase> Forget a phrase you taught
practice [lesson] Hands-on exercises in a throwaway folder (practice list shows the lessons)
progress The commands you've learned to type yourself
setup Find or set up a local AI model
tour A quick tour of your own computer
doctor Check your setup, and how to fix anything wrong
sheet Your own cheat sheet of the commands you've learned
explain <command> Explain a command and its flags
what does this mean Explain the output of the command you just ran
fix that Explain why the last command failed, and offer a fix
undo that Reverse the last change (shows the command first)
check <command> / is this safe: <command> What a command or script would do, without running it
exit / Ctrl-D Leave

One-shot mode

clishe explain "tar -xzvf"        # explain a command, then exit
clishe "show me disk usage"       # look up a phrase in your KB / seed KB (does not run it)
clishe --list                     # the phrases you've taught, tab-separated
clishe practice [lesson]          # hands-on exercises (--list shows the lessons)
clishe progress                   # what you've learned
clishe setup                      # find or set up a local AI model
clishe tour                       # a quick tour of your computer
clishe doctor                     # check your setup (exit 1 if something's broken)
clishe sheet                      # your cheat sheet (clishe sheet > cheatsheet.txt)
clishe check '<command>'          # is it safe to run? (or a script: clishe check setup.sh)
clishe orbs                       # the nine thinking orbs Clishe shows while it waits
clishe --init bash                # the Ctrl+G shortcut, for your ~/.bashrc
clishe --init zsh                 # the same, for your ~/.zshrc
clishe --init fish                # the same, for ~/.config/fish/config.fish (pipe it to source)
clishe --plain ...                # words instead of symbols and drawings (screen readers)
clishe --version
clishe --help

Learn more

  • Using Clishe: every feature, with example sessions, and the Ctrl+G shortcut in detail.
  • Configuration: where Clishe keeps its files, plain mode for screen readers, and every setting.
  • AI providers: clishe setup, Ollama, llama.cpp, LM Studio and the opt-in cloud provider.
  • How it works: the steps Clishe takes, security, and the project layout.
  • Troubleshooting: start with clishe doctor.
  • Changelog and issues: what's new and what's planned.

Contributing

Contributions are welcome, and there are good first issues, many of them data only. CONTRIBUTING.md covers where things go and how to test them:

pip install -e ".[dev]"
python -m pytest tests/ -q && ruff check .
bash tests/test_shell_functions.sh

Security: Clishe runs commands with eval, and its safety check is not exhaustive, so read what you're about to run and don't run it as root. Details: How it works. To report a way around the checks, see SECURITY.md.

License

MIT. See LICENSE.

Command summaries and examples come from tldr-pages, © the tldr-pages team and contributors, CC BY 4.0. See NOTICE.md for details and what was changed.

Metadata

Release files for clishe 0.14.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 clishe 0.14.0
File Size Uploaded Provenance Actions
clishe-0.14.0.tar.gz 1.2 MB With provenance Details for clishe-0.14.0.tar.gz

Built distribution (wheel)

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

Total release size: 2.3 MB

Release files / clishe-0.14.0.tar.gz

Download URL clishe-0.14.0.tar.gz
Size 1.2 MB
Tags Source
SHA-256 checksum
How to use checksums
17083a69e7b92c3a5235a5b9635d369589469f3abb67bc2b3de10a5ec0ae2bda
BLAKE2b-256 checksum
How to use checksums
2fd66c9eab4f2eccb15e247f0db5c7ee59a6aabf103e6495659d3d41245b6e93
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 8, 2026.

Transparency log

Release files / clishe-0.14.0-py3-none-any.whl

Download URL clishe-0.14.0-py3-none-any.whl
Size 1.1 MB
Tags Python 3
SHA-256 checksum
How to use checksums
b1c0e557b724eab59dc9ee280a7cccbe6ad70b130c98b3a39af6075e76ddde4e
BLAKE2b-256 checksum
How to use checksums
b39b4e08746b24ef0103b1b0ddbd10300c254afc3af4856fb94ce31f8a7853ec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 8, 2026.

Transparency log

Security for clishe 0.14.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.

Select from 2 files

Attestation for clishe-0.14.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 Nov 8, 2026.

Transparency log

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.

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