llamashell
llamashell is a powerful shell that's powered by a locally running LLM. We have tested it with Llama 3.2, Qwen 2.5, and Gemma 3.
Features
- Interactive Shell: Execute standard shell commands like
cd,ls, and more, with support for pipes (|), input redirection (<), and output redirection (>or>>). - LLM Integration: Interact with an LLM (default:
meta-llama/Llama-3.2-1B-Instruct) for assistance using the--prefix (e.g.,-- write me an inspirational quote). - Command History: Persistent command history stored in
~/.llamashell_history. - Chat Log Management: Save and view LLM conversation logs with commands like
--save-chat-logsand--view-chat-logs. - File Operations: Read files into the LLM context with
--read <filename>and save individual LLM responses with--save <filename>. - Auto-Completion: Basic command and file auto-completion for a smoother user experience.
- Cross-Platform: Supports GPU acceleration (CUDA/MPS) and CPU fallback for broad compatibility.
Installation
pip3 install llamashell
Prerequisites
- Python 3.11+
- Linux or MacOS
Usage
llamashell
You can provide any instruct LLM you can find on hugging face. For example:
llamashell --model "Qwen/Qwen2.5-0.5B-Instruct"
or
llamashell --model "google/gemma-3-1b-it"
Special Commands
-- <message>: Send a message to the LLM.--save-chat-logs: Save the entire LLM conversation to a file.--save [filename]: Save the last LLM response to a file.--view-chat-logs: Display the LLM conversation history.--read <filename>: Read a file and add its contents to the LLM context.--clear: Reset the LLM chat session.history: Show the shell command history.exit,quit,bye: Exit the shell.
Metadata
Release files for llamashell 0.0.5
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 |
|---|---|---|---|---|
| llamashell-0.0.5.tar.gz | 20.3 kB | Without provenance | Details for llamashell-0.0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| llamashell-0.0.5-py3-none-any.whl | Python 3 | none | any | Details for llamashell-0.0.5-py3-none-any.whl |
Total release size: 40.3 kB
Release files / llamashell-0.0.5.tar.gz
| Download URL | llamashell-0.0.5.tar.gz |
|---|---|
| Size | 20.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cab122c51ef18a6434c099d5d5ac5e5ede8b3613c57b8793fdca00c19c57cf0a
|
|
BLAKE2b-256 checksum How to use checksums |
d80b161a4621fd5eca1f4c8524963bef20c1bfc4263650d9bb8318ff13b89d98
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.11
|
Release files / llamashell-0.0.5-py3-none-any.whl
| Download URL | llamashell-0.0.5-py3-none-any.whl |
|---|---|
| Size | 20.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
015f9d1475d727a0c88dee5f9ddabf173dd7e1afd5e7a1fb17fef8ac98cdd5b3
|
|
BLAKE2b-256 checksum How to use checksums |
ba1bb230eb966f202cceb6ff2b5165d132b9fd1327396fea0ec438bb81d78478
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.11
|
Security for llamashell 0.0.5
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.