> **The ultimate command center for AI prompting and tagging.**
> Leverage modern LLMs to craft the perfect Stable Diffusion prompts in a sleek, high-performance desktop environment.
[](https://github.com/SiliconeShojo/TagForge/releases)
[](https://github.com/SiliconeShojo/TagForge/wiki)
[](https://github.com/SiliconeShojo/TagForge/releases/latest)
[](https://docs.microsoft.com/en-us/dotnet/csharp/)
[](https://dotnet.microsoft.com/en-us/)
[](https://avaloniaui.net/)



[](https://ko-fi.com/siliconeshojo)
π See it in Action
https://github.com/user-attachments/assets/4e655814-0999-4fb5-bea3-4ee0a5790322
πΈ Screenshots
| π€ Agent Orchestrator |
π¬ Intelligent Chat |
π History Management |
 |
 |
 |
| π Live Console |
βοΈ Configuration |
π¨ Prompt Generator |
 |
 |
 |
β¨ Features at a Glance
TagForge isn't just a wrapperβit's a purpose-built workspace for prompt engineering.
π§ Intelligence
- π¨ Specialized Generator: Turn vague ideas into optimized, comma-separated tag lists for Stable Diffusion or rich prose for FLUX/Midjourney.
- ποΈ Vision Analysis: Drag-and-drop images to extract tags or generate detailed captions using multimodal models.
- π¬ Contextual Chat: A coding-capable assistant with persistent session history and markdown rendering.
π‘οΈ Architecture
- π Zero-Trust Security: API keys are encrypted at rest using Windows DPAPI. Keys never leave your device except to hit the API endpoint.
- β‘ Native Performance: Built on .NET 9 with heavy threading. The UI stays buttery smooth, even while generating complex batches.
π Supported Providers
Connect to the best models in the world.
| Provider |
Capability |
 |
High-speed, high-quality multimodal reasoning. |
 |
Lightning-fast inference for Llama & Mixtral. |
 |
Unified gateway to OpenAI, Anthropic, and premium models. |
 |
Access the massive open-source library via Inference API. |
 |
Connect to your own private inference server. |
 |
Run Llama 3, Mistral, and more directly on your CPU/GPU. |
π Persona System
Customize the AI's identity to fit your workflow:
- ποΈ System Roles: Define the AI's expertise (e.g., "You are a Danbooru tagging expert").
- π Dynamic Injection: Use the
{input} placeholder to create reusable templates.
- βοΈ Built-in Presets:
- Tag Prompts: The classic tagging engine for Stable Diffusion.
- Natural Prompts: For generating rich, descriptive prose.
- Tag Vision: Inspects images and generates tag lists.
- Natural Vision: Inspects images and generates detailed captions.
π Localization
TagForge speaks your language.



[!NOTE]
Want to help?
Check out the Translation Guide. Adding a language takes minutes, and all contributors are credited!
π οΈ Build & Installation
TagForge is built on .NET 9.0 and Avalonia UI for cross-platform performance.
[!IMPORTANT]
You must have the .NET 9.0 SDK installed to build this project from source.
How to Build (Single-File)
To produce a clean, standalone executable:
Windows
dotnet publish -c Release -r win-x64 -p:PublishSingleFile=true --self-contained true -o ./publish/win
Linux
dotnet publish -c Release -r linux-x64 -p:PublishSingleFile=true --self-contained true -o ./publish/linux
macOS (Apple Silicon)
dotnet publish -c Release -r osx-arm64 -p:PublishSingleFile=true --self-contained true -o ./publish/mac-arm
macOS (Intel)
dotnet publish -c Release -r osx-x64 -p:PublishSingleFile=true --self-contained true -o ./publish/mac-intel
[!TIP]
The build commands above generate a portable executable in the ./publish folder with all dependencies embedded. No installation required!
π Credits & Assets