This project has been archived by its maintainers, and is no longer receiving any updates.
Looking Glass
Use your photos to design and try on outfits — powered by AI image generation.
Supports OpenAI and Google Gemini as image generation providers.
Installation
Requires uv.
uv tool install looking-glass-cli
Quick Start
# 1. Set at least one API key (OpenAI, Gemini, or both)
glass config set openai_api_key sk-your-key-here
glass config set gemini_api_key your-gemini-key-here
# 2. Add a photo of yourself
glass photo add ~/selfie.jpg --name me
# 3. Add outfit descriptions (plain text files)
echo "Elegant navy suit, white dress shirt, silk tie" > formal.txt
glass outfit add formal.txt
echo "Hawaiian shirt, cargo shorts, flip-flops" > beach.txt
glass outfit add beach.txt --name beach-vibes
# 4a. Run interactive mode — pick a photo, pick outfits, pick a provider, generate!
glass
# 4b. OR: Batch capture outfit descriptions from a folder of photos
glass outfit capturefolder ~/photos --overwrite
Commands
| Command | Description |
|---|---|
glass |
Interactive mode — select a photo, outfits, and provider, then generate images |
glass photo add <file> [--name NAME] |
Add a photo |
glass photo list |
List stored photos |
glass photo remove <name> |
Remove a photo |
glass outfit add <file> [--name NAME] |
Add an outfit description |
glass outfit capture <file> [--name NAME] [--no-instruction-file] |
Capture an outfit description from a photo using AI vision |
glass outfit capturefolder [FOLDER] [--overwrite] |
Batch capture outfit descriptions from all images in a folder (uses filenames as outfit names) |
glass outfit create --name NAME |
Create an outfit description in your default editor |
glass outfit list |
List stored outfits |
glass outfit remove <name> |
Remove an outfit |
glass config set <key> <value> |
Set a config value |
glass config show |
Show all available config options and their current values |
Options
--output, -o PATH— Directory for generated images (default: current directory)--version— Show version
For outfit capture, place a matching .txt file next to the photo to provide
extra AI instructions automatically. For example, linen-look.jpg uses
linen-look.txt. Use glass outfit capture --no-instruction-file to opt out
for an individual capture, or pass --instructions/-i to override the file.
Configuration
Run glass config show to see all available options with descriptions and defaults.
| Key | Description | Default |
|---|---|---|
openai_api_key |
OpenAI API key for image generation | — |
gemini_api_key |
Google Gemini API key for image generation | — |
max_workers |
Max parallel image generations | 4 |
At least one API key is required. If both are configured, you'll be prompted to choose a provider during interactive mode.
Note: The glass outfit capture and glass outfit capturefolder commands require a vision-capable provider (OpenAI supports this via API key).
Migrating from an older version? The
api_keyconfig key has been replaced byopenai_api_key. Your existing key will be migrated automatically on first run.
How It Works
- Photos and outfit files are stored in
~/.looking-glass/ - Outfits are plain
.txtfiles — the filename is the name, the content is the description - In interactive mode, select a photo, one or more outfits, and a provider
- For each outfit, the app sends your photo + a prompt to the selected provider's API
- Generated images are saved as
{photo}_{outfit}.png
Metadata
Release files for looking-glass-cli 1.7.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| looking_glass_cli-1.7.0.tar.gz | 17.9 kB | Without provenance | Details for looking_glass_cli-1.7.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| looking_glass_cli-1.7.0-py3-none-any.whl | Python 3 | none | any | Details for looking_glass_cli-1.7.0-py3-none-any.whl |
Total release size: 42.1 kB
Release files / looking_glass_cli-1.7.0.tar.gz
| Download URL | looking_glass_cli-1.7.0.tar.gz |
|---|---|
| Size | 17.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
544ee2f441b848ed2a280957e7b7f20197e7487560fa2ababc73f496ef3530af
|
|
BLAKE2b-256 checksum How to use checksums |
2b866368699926ce25136273e961a7d8e58707e5d2792eec646cdcdb483a180f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.11.18 {"installer":{"name":"uv","version":"0.11.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / looking_glass_cli-1.7.0-py3-none-any.whl
| Download URL | looking_glass_cli-1.7.0-py3-none-any.whl |
|---|---|
| Size | 24.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2197de55a4241df30f1fa90c931ac610d77fd2498c9f0fd56bc0fddd92a5216d
|
|
BLAKE2b-256 checksum How to use checksums |
773f1c24e0d047ae84e18feaf463613f0a5ce866ed3de22d4e8118c427a2fa19
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.11.18 {"installer":{"name":"uv","version":"0.11.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for looking-glass-cli 1.7.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.