Skip to main content

🖼️ Limn

to limn: to depict or describe; to paint.

A small, privacy-first tool that turns a text description into an image. Type a prompt, get a picture — no account, minimal options, bring your own provider.

Try it in the browser at demo.limn.borck.dev, or grab the desktop app for macOS, Windows and Linux at limn.borck.dev. Prefer the terminal?

pip install limn

limn "a red bicycle against a brick wall" -o bike.png
  • Type a description → get an image. That's the whole thing.
  • No account, private by default. Your prompts and images are yours. The only network egress is the generation request to the provider you chose.
  • Bring your own provider — self-hosted (SwarmUI / any OpenAI-compatible endpoint) or a cloud key (Google Imagen, OpenAI / DALL·E). Swap with one setting.
  • Minimal by design. Prompt, size, count, seed. Want power? Install something bigger — Limn stays lean.

Quick start

Pick whichever provider you already have:

# Self-hosted SwarmUI (free, your GPU)
export SWARMUI_BASE_URL=https://image.example.org
export SWARMUI_TOKEN=...   # only if fronted by auth
limn "watercolour fox" --provider swarmui

# Any OpenAI-compatible /v1/images endpoint (LocalAI, ...)
export OPENAI_BASE_URL=http://localhost:8080/v1
limn "watercolour fox" --provider openai-compatible

# Google Imagen (cheap, ~$0.02/image on the Fast tier)
export GEMINI_API_KEY=...
limn "watercolour fox" --provider gemini

# OpenAI Images
export OPENAI_API_KEY=...
limn "watercolour fox" --provider openai

Then set your provider once so you never pass --provider again:

limn --init-config        # writes a commented ./limn.yaml template
mv limn.yaml ~/.limn.yaml # personal defaults, used everywhere

Usage

limn "a red bicycle against a brick wall" -o bike.png
limn "watercolour fox" --provider swarmui --size 1024x1024 --count 4 --seed 42
limn "pixel art, a fox" --lora pixel-art-xl:1.0 --cfg 5 --steps 30
limn --from prompts.txt -M           # batch a prompt list, with metadata sidecars
Option What
-p, --provider swarmui, openai-compatible, openai, gemini
-m, --model Model name (provider-specific)
-s, --size e.g. 1024x1024 (Imagen maps to the nearest aspect ratio)
-n, --count Number of images (1–10)
--seed Reproducibility, where the backend supports it (SwarmUI)
--negative Negative prompt, where supported (SwarmUI)
--lora LoRA as name[:weight], repeatable (SwarmUI; unknown names error)
--cfg, --steps, --sampler, --scheduler SDXL knobs (SwarmUI; others warn + ignore)
--from Read prompts from a file (one per line, - for stdin); each auto-named
-M, --metadata Write a <image>.json sidecar of the generation params
-o, --out Output file; default is a slug of the prompt, never overwritten
-c, --config Explicit config file

limn models asks your provider which models it offers (SwarmUI requires picking one — e.g. limn "a fox" -m juggernautXL_v9). The web UI and desktop Settings have a matching "fetch models" button. limn models --loras lists the server's LoRAs instead (SwarmUI only), including the trigger phrase and description when the server has that metadata — many LoRAs only kick in when their trigger word appears in the prompt.

Config

Layered, later wins: built-in defaults → ~/.limn.yaml (your provider + keys, set once) → ./limn.yaml → CLI flags. Secrets are referenced as ${VAR} so no plaintext keys live in files:

provider: swarmui
size: [1024, 1024]

providers:            # keep several configured; swap with `provider:`
  swarmui:
    base_url: https://image.example.org
    model: juggernautXL_v9
    api_key: "${SWARMUI_TOKEN}"      # bearer; or use username/password for Basic auth
  swarmui-basic:                     # a second server under its own label
    type: swarmui                    #   which provider class to use
    base_url: https://image2.example.org
    username: admin
    password: "${SWARMUI_PASS}"
  gemini:
    model: imagen-4.0-fast-generate-001

SwarmUI auth is auto-detected: username + password → HTTP Basic (for a reverse proxy in front of SwarmUI), otherwise api_key → Bearer. A block's type: lets you run several servers of the same kind under distinct labels.

Web UI

pip install "limn[serve]"
limn serve                # opens http://127.0.0.1:5466/ in your browser

One page: type a prompt → Generate → the image appears → Save (to disk), Again (regenerate), or Delete. The session gallery lives in the server process's memory only — nothing touches disk until you click Save.

Binds 127.0.0.1 by default. Binding any other host requires a token (--token, or one is generated and printed); useful flags: --port, --out-dir, --no-browser.

Hosting a shared demo

A live instance runs at demo.limn.borck.dev. limn serve --demo (or LIMN_DEMO=1) runs a friction-free public instance with guardrails instead of a token: 10 images/hour per IP, provider/model locked to the server config, one ≤1024px image per request, server-side Save disabled (visitors download instead), gallery entries expire after 15 min, and the page shows an "install locally" banner. See docs/demo-deploy.md.

Desktop app

A native app (Tauri) for people who don't live in a terminal: install, pick your provider in Settings (server URL / API key — bring your own), type, generate. First launch bootstraps a private Python runtime via uv (~a minute, no system Python needed); images save to Pictures/Limn. Installers for macOS / Windows / Linux are built by CI from desktop/ — grab them from limn.borck.dev (or the GitHub releases page). macOS builds are code signed and notarized; Windows builds are unsigned ("More info → Run anyway").

Roadmap

CLI, web UI (limn serve), hostable demo mode, and the desktop app — all four SPEC surfaces are in.

📄 See SPEC.md for the full specification.

Companion to slide-stream, which shares the same image-provider approach.

Metadata

Release files for limn 0.4.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for limn 0.4.5
File Size Uploaded Provenance Actions
limn-0.4.5.tar.gz 463.6 kB Without provenance Details for limn-0.4.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for limn 0.4.5
File Interpreter ABI Platform Actions
limn-0.4.5-py3-none-any.whl Python 3 none any Details for limn-0.4.5-py3-none-any.whl

Total release size: 498.9 kB

Release files / limn-0.4.5.tar.gz

Download URL limn-0.4.5.tar.gz
Size 463.6 kB
Tags Source
SHA-256 checksum
How to use checksums
ca189b62d0ab64db336109d85c652fcc3216a5051e764d0fb769839b58c93a7e
BLAKE2b-256 checksum
How to use checksums
d9621ed4258f4a3f798bc8d569ad7c4953af7a8befeb53b2802d3b1efeb37da6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.0

Release files / limn-0.4.5-py3-none-any.whl

Download URL limn-0.4.5-py3-none-any.whl
Size 35.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cbd32e64c6ddb900bb9dc8751d68834334661d84b19af1958096e4e1da23d293
BLAKE2b-256 checksum
How to use checksums
4ec5737b46a4f4496a1a965a936748e4a88722821c3c191a0d074e352bf92f64
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.0

Security for limn 0.4.5

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page