Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By LiorZiviv1.0.1Apache-2.0In 1 marketplace
Invokes a separately-installed LocalAIExecution `localai` CLI to generate images locally on your own NVIDIA GPU (FLUX text-to-image) via its stable --json subprocess contract. Discovers the external tool at runtime and vendors none of its code.
Claude loads one when your task matches it, or you run it by name.
1 marketplace, most starred first
image-generation, text-to-image, local-ai, diffusion, flux, gpu, invoker
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
A thin invoker plugin: it generates images locally by driving LocalAIExecution's localai CLI (FLUX text-to-image) through that project's stable --json subprocess contract.
LocalAIExecution is a separate project and is not vendored here. This plugin discovers the externally-installed
localaicommand at runtime and shells out to it. Nothing about LocalAIExecution's source lives in this repository.
Takes a text prompt, runs localai generate "<prompt>" --json against the separately-installed CLI, parses the single JSON object it returns, maps the deterministic exit codes to actionable messages, and reports the saved image path(s). Also supports -Doctor (verify the GPU/CUDA stack) and -Capabilities (list models).
The integration boundary is LocalAIExecution's --json contract (see that repo's docs/skill-invocation.md):
localai generate "<prompt>" --json [knobs].{ capability, model, artifacts:[{ path, type, metadata }] }. path is the absolute PNG path (a .json provenance sidecar is written alongside it).The bundled helper skills/ai-local-diffusion-invoker/scripts/Invoke-LocalDiffusion.ps1 wraps discovery + invocation + exit-code mapping and emits one normalized envelope:
// success
{ "ok": true, "exitCode": 0, "mode": "Generate",
"images": ["C:\\...\\outputs\\...png"], "result": { /* raw localai json */ } }
// failure
{ "ok": false, "exitCode": 5, "mode": "Generate",
"error": "CUDA out of memory — ...", "stderr": "..." }
scripts/bootstrap.ps1.localai)First hit wins:
-LocalAiExe <path> parameter$env:LOCALAI_EXE — full path to localai.exe$env:LOCALAI_HOME — repo/install root → \.venv\Scripts\localai.exelocalai on PATHC:\Dev\MyRepos\LocalAIExecution\.venv\Scripts\localai.exeIf none resolve, the helper returns exitCode: 127 with setup guidance.
Tip: set
LOCALAI_HOMEonce (e.g. in your PowerShell profile) so discovery is robust regardless of where the repo lives:setx LOCALAI_HOME "C:\path\to\LocalAIExecution"
# Simple generation
pwsh -NoProfile -File ".\skills\ai-local-diffusion-invoker\scripts\Invoke-LocalDiffusion.ps1" `
-Prompt "a serene mountain lake at dawn"
# Reproducible, sized, into a chosen folder
pwsh -NoProfile -File ".\skills\ai-local-diffusion-invoker\scripts\Invoke-LocalDiffusion.ps1" `
-Prompt "a neon city street, rain" -Model schnell -Steps 4 -Seed 42 `
-Width 1344 -Height 768 -OutputDir ".\out"
# Verify the GPU stack / list models / preview the command
... Invoke-LocalDiffusion.ps1 -Doctor
... Invoke-LocalDiffusion.ps1 -Capabilities
... Invoke-LocalDiffusion.ps1 -Prompt "test" -DryRun
As a skill, just ask: "generate an image of a serene mountain lake at dawn".
content-ai's linked-in-post skill needs cover/visual images — this invoker can supply them while staying decoupled.Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub liorzivi/zividevelopmentmarketplace --plugin local-aiPlugins from other owners that cover similar ground