smartui - Smart Utility Uses Google's Gemini API
A command-line utility that integrates with Google's Gemini API to provide various AI-powered features.
Features
- Command explanation
- Text summarization
- Translation
- Code explanation
- And more!
Installation
Prerequisites
- Rust toolchain (install from rustup.rs)
- Google Gemini API key (get it from Google AI Studio)
From Source
-
Clone the repository:
-
Build the release version:
-
Install the binary:
-
Linux/macOS:
-
Windows:
-
Using Cargo
Linux/macOS
-
Download the latest release from the releases page
-
Extract the archive:
-
Move the binary to your PATH:
Windows
- Download the latest release from the releases page
- Extract the zip file
- Move
smartui.exe
to a directory in your PATH (e.g.,C:\Windows\System32\
)
Configuration
Set your Gemini API key as an environment variable:
# Linux/macOS
# Windows
Or create a .env
file in your home directory:
GEMINI_API_KEY=your_api_key_here
Usage
# Explain a command
# Summarize text from a file
# Translate text
# For more commands and options
Building from Source
Requirements
- Rust 1.70 or later
- Cargo
- Git
Steps
-
Clone the repository
-
Build in release mode:
-
The binary will be in
target/release/smartui
Cross-compilation
To build for different platforms:
# Linux
# Windows
# macOS
Contributing
Contributions are welcome! Please read our Contributing Guide for details.
License
This project is licensed under the MIT License - see the LICENSE file for details.