A command-line tool for analyzing images using OpenRouter API with multimodal models.
3G-CLI Suite: Glean (text analysis) | Glimpse (image analysis) | Graft (image generation and editing)
git clone https://github.com/u1i/glimpse
cd glimpse
make installThis creates a virtualenv at ~/.local/share/glimpse/venv, installs dependencies into it, and places a wrapper script at ~/.local/bin/glimpse. Make sure ~/.local/bin is on your PATH.
To uninstall:
make uninstallCreate a ~/.glimpse_cfg file in your home directory with the following format:
[openrouter]
# Required setting
api_key = your_api_key_here
# Optional settings (defaults shown)
model = google/gemini-2.5-flash
temperature = 0.4 # Controls randomness (0.0 to 1.0, lower is more deterministic)Only the API key is mandatory. If model or temperature are not specified, default values will be used.
glimpse path/to/image.jpg
With a custom prompt:
glimpse path/to/image.png --prompt "Identify all objects in this image"
Override the model (instead of using the one from .env):
glimpse path/to/image.jpg --model mistralai/mistral-medium-3
Override the temperature setting:
glimpse path/to/image.jpg --temperature 0.8
Combining options:
glimpse path/to/image.jpg -m openai/o4-mini -t 0.2 -p "What brand is this?"
Or using the short form:
glimpse path/to/image.jpg -p "What's happening in this scene?"
- JPEG/JPG
- PNG