Fabric (danielmiessler/Fabric)

Searching Database…

44.8K ·GitHub
What is this?Fabric is an open-source framework that organizes AI prompts (called Patterns) by real-world task, so you can apply AI to specific problems from the command line or via a REST API.
Is this a chatbot app or a command-line framework?It is a Go-based CLI framework: you run commands like fabric --pattern summarize, and it ships a crowdsourced library of reusable prompts plus an optional REST API server and web app.
How do I install and set it up?Use the one-line install script or a package manager (brew install fabric-ai, winget install danielmiessler.Fabric, scoop install fabric-ai, yay -S fabric-ai), or build from source with Go; then run fabric --setup to configure a provider.
Do I need an API key for an AI provider to use it?Yes, you configure at least one provider (OpenAI, Anthropic, Gemini, Azure, Bedrock, Ollama, LM Studio, and many OpenAI-compatible vendors) via fabric --setup before running patterns.
Any install pitfalls I should know about?If you install via Homebrew or the Arch Linux AUR, the binary is named fabric-ai instead of fabric, so you need to add a shell alias for it to work as expected.
Which platforms and devices does it run on?Prebuilt binaries cover macOS, Linux, and Windows, including Linux ARM and Windows ARM, so it also runs on devices like the Raspberry Pi.
Can I run it with local models instead of cloud APIs?Yes, Fabric natively supports Ollama and LM Studio for running local models alongside the many cloud providers.
What exactly is a 'Pattern' in Fabric?A Pattern is a curated, reusable AI prompt stored in ~/.config/fabric/patterns and organized by task (e.g. summarize, extract_wisdom), which you invoke with the --pattern flag or an alias.
Why did the author build Fabric instead of just using ChatGPT directly?The author argues AI's real problem isn't capability but integration into daily workflows, so Fabric packages the best prompts as composable, reusable units you can pipe into any tool.
What is the REST API server used for?Running Fabric in server mode exposes its patterns over HTTP with interactive Swagger/OpenAPI docs, letting other apps or extensions call Fabric's AI functions programmatically.
What are the bundled helper apps like topdf and pbpaste for?These are small companion CLI tools included with Fabric: topdf converts output to PDF, code2context extracts codebase context, generatechangelog builds changelogs, and pbpaste reads clipboard input for piping into patterns.
Size
167.6 MB
Stars
44.8K
Age
2y
Commits · 90 Days