| Crates.io | smartui |
| lib.rs | smartui |
| version | 0.2.0 |
| created_at | 2025-04-28 20:02:12.8776+00 |
| updated_at | 2025-04-29 18:38:58.038704+00 |
| description | A terminal utility that integrates with Google Gemini API |
| homepage | https://github.com/monzeromer-lab/smartui |
| repository | https://github.com/monzeromer-lab/gm |
| max_upload_size | |
| id | 1652616 |
| size | 126,329 |
A command-line utility that integrates with Google's Gemini API to provide various AI-powered features.
Clone the repository:
git clone https://github.com/monzeromer-lab/smartui.git
cd smartui
Build the release version:
cargo build --release
Install the binary:
Linux/macOS:
sudo cp target/release/smartui /usr/local/bin/
Windows:
copy target\release\smartui.exe C:\Windows\System32\
cargo install smartui
Download the latest release from the releases page
Extract the archive:
tar -xzf smartui-linux-x86_64.tar.gz # for Linux
tar -xzf smartui-macos-x86_64.tar.gz # for macOS
Move the binary to your PATH:
sudo mv smartui /usr/local/bin/
smartui.exe to a directory in your PATH (e.g., C:\Windows\System32\)Set your Gemini API key as an environment variable:
# Linux/macOS
export GEMINI_API_KEY=your_api_key_here
# Windows
set GEMINI_API_KEY=your_api_key_here
Or create a .env file in your home directory:
GEMINI_API_KEY=your_api_key_here
# Explain a command
smartui explain "ls -la"
# Summarize text from a file
smartui summarize --file document.txt
# Translate text
smartui translate "Hello, world!" --to fr
# For more commands and options
smartui --help
Clone the repository
Build in release mode:
cargo build --release
The binary will be in target/release/smartui
To build for different platforms:
# Linux
cargo build --release --target x86_64-unknown-linux-gnu
# Windows
cargo build --release --target x86_64-pc-windows-gnu
# macOS
cargo build --release --target x86_64-apple-darwin
Contributions are welcome! Please read our Contributing Guide for details.
This project is licensed under the MIT License - see the LICENSE file for details.