| Crates.io | nexsh |
| lib.rs | nexsh |
| version | 0.8.2 |
| created_at | 2025-05-14 14:37:10.48448+00 |
| updated_at | 2025-12-30 20:56:01.61168+00 |
| description | Next-generation AI-powered shell using Google Gemini |
| homepage | https://github.com/M97Chahboun/nexsh |
| repository | https://github.com/M97Chahboun/nexsh |
| max_upload_size | |
| id | 1673498 |
| size | 1,325,231 |
Next-generation AI-powered shell using Google Gemini
Installation • Features • Usage • Configuration • Contributing
You can download pre-built binaries for your platform from our GitHub Releases page.
nexsh-windows.zipnexsh-macos.tar.gznexsh-linux.tar.gz# Download both the binary and its checksum
curl -LO https://github.com/M97Chahboun/nexsh/releases/latest/download/nexsh-linux.tar.gz
curl -LO https://github.com/M97Chahboun/nexsh/releases/latest/download/nexsh-linux.sha256
# Verify the checksum (Linux/macOS)
echo "$(cat nexsh-linux.sha256) nexsh-linux.tar.gz" | shasum -a 256 --check
# For Linux/macOS
tar xzf nexsh-linux.tar.gz
# For Windows
unzip nexsh-windows.zip
# Linux/macOS
sudo mv nexsh /usr/local/bin/
# Windows: Move nexsh.exe to a directory in your PATH
cargo install nexsh
# Clone the repository
git clone https://github.com/M97Chahboun/nexsh.git
cd nexsh
# Build and install
cargo build --release
sudo cp target/release/nexsh /usr/local/bin/
First-time configuration:
You'll need to:
nexsh init
Follow the prompts to configure the tool:
Enter your Gemini API Key: your_gemini_api_key
Set history size (default is 1000):
Set max context messages (default is 10):
Set model (default is gemini-2.0-flash):
Your configuration is now stored in the default location and used by nexsh.
| Setting | Description | Default |
| ---------------------- | -------------------------------------- | ---------------- |
| `api_key` | Your Gemini API key | Required |
| `history_size` | Number of commands to keep in history | 1000 |
| `max_context_messages` | Maximum messages to keep in AI context | 10 |
| `model` | The Gemini model | gemini-2.0-flash |
nexsh
Example session:
$ nexsh
🤖 Welcome to NexSh! Type 'exit' to quit or 'help' for assistance.
nexsh> show me system memory usage
→ free -h
total used free shared buff/cache available
Mem: 15Gi 4.3Gi 6.2Gi 386Mi 4.9Gi 10Gi
Swap: 8.0Gi 0B 8.0Gi
nexsh> find files modified in the last 24 hours
→ find . -type f -mtime -1
./src/main.rs
./Cargo.toml
./README.md
nexsh -e "show all running docker containers"
| Command | Action |
|---|---|
exit/quit |
Exit the shell |
help |
Show available commands |
Ctrl+C |
Cancel current operation |
Ctrl+D |
Exit the shell |
Up/Down |
Navigate command history |
We welcome contributions! Here's how to get started:
git checkout -b feature/amazing-feature)git commit -m 'Add some amazing feature')git push origin feature/amazing-feature)Please read our Contribution Guidelines for more details.
MIT License - See LICENSE for full details.