lucifer-ai-assistant
v1.0.0
Published
Command-line AI assistant with screen analysis and web search, optimized for Gemini free tier
Maintainers
Readme
Lucifer AI Assistant
A command-line AI assistant optimized for free-tier Gemini API usage, with screen analysis, web search, and rate limit management.
Features
- Multi-model optimization: Uses free-tier friendly models (Gemini 2.5 Flash for search, 3.1 Flash Lite for vision/chat)
- Screen analysis: Captures and analyzes your screen with caching to avoid redundant API calls
- Web search: Integrated Google Search grounding with high limits
- Rate limit tracking: Monitors daily usage with visual progress bars
- Retry logic: Automatic exponential backoff for rate limit errors
- Cross-platform: Works on macOS, Linux, and Windows (with appropriate screen capture tools)
Installation
Option 1: Global NPM Install (Recommended)
npm install -g lucifer-ai-assistant
luciferOption 2: From Source
git clone https://github.com/infamous-lucifer/lucifer-ai-assistant.git
cd lucifer-ai-assistant
npm install
npm link # or npm install -g .
luciferSetup
- Get a Gemini API key from Google AI Studio
- Create
.envfile in the project root:API_KEY=your_gemini_api_key_here - Install system dependencies:
- macOS:
screencapture(built-in) - Linux:
scrotormaim(sudo apt install scrot) - Windows:
nircmdor PowerShell screenshot tools
- macOS:
Usage
luciferCommands
!search <query>- Search the web using Gemini 2.5 Flash!screen [query]- Analyze your screen (cached for performance)!limits- View today's API usage with progress barsexit- Quit and show final usage stats
Examples
lucifer@m5-air > !search latest TypeScript features
lucifer@m5-air > !screen what applications are open?
lucifer@m5-air > !limits
lucifer@m5-air > Hello, how are you?Rate Limits (Free Tier)
- Gemini 2.5 Flash: 1,500 requests/day (search)
- Gemini 3.1 Flash Lite: 500 requests/day (vision/chat)
- Automatic retry with exponential backoff on rate limits
Development
npm run build # if you add a build script
npm test # add testsRequirements
- Node.js 18+
- TypeScript
- Gemini API key
- Screen capture tool for your OS
License
MIT License - see LICENSE file for details.
Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Submit a pull request
Disclaimer
This tool uses Google's Gemini API. Usage is subject to Google's terms of service and rate limits. The author is not responsible for any API costs or usage violations.
