Skip to content
u1iPublic

About

A command-line tool for analyzing images using OpenRouter API with multimodal models

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Glimpse

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)

Installation

git clone https://github.com/u1i/glimpse
cd glimpse
make install

This 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 uninstall

Configuration

Create 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.

Usage

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?"

Supported Image Formats

  • JPEG/JPG
  • PNG

About

A command-line tool for analyzing images using OpenRouter API with multimodal models

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages