Fabric
Open-source framework of crowdsourced AI prompts for the CLI.
Overview
Fabric by Daniel Miessler organizes reusable AI prompts called patterns, like summarizing articles or extracting wisdom, that you pipe content into from the terminal. It supports many providers via your own keys and local models.
- Pattern library
- YouTube transcript extraction
- Piping support
- REST API mode
Our verdict
What we like
- Huge ready-made prompt library
- Composable
Watch out for
- CLI focus may deter non-developers
Works with these providers
Keys from these providers work in this app. Usage is billed by the provider at its list price.
BYOK Key Safety Score
Key handling in Fabric
Grade A
Your key is stored on your device and requests go directly to the provider.
- Key storage40/40
Key stays on your device; requests go direct to the provider.
- Auditable code25/25
Open source: anyone can verify how keys are handled.
- Self-hosting8/15
Runs as a local app, but not as a self-hosted service.
- Offline option10/10
Supports local models, so no key is needed at all for private work.
- Provider choice10/10
14 provider options, which lets you pick the provider whose data terms you trust.
Whatever the score, give each app its own key, set a monthly spend limit with your provider, and revoke keys you no longer use. Read the key-safety checklist.
Fabric FAQ
- Does Fabric support bring your own key?
- Yes. Fabric accepts your own API key from OpenAI, Anthropic, Google Gemini, OpenRouter, Mistral, Groq, DeepSeek, Ollama, LM Studio, Azure OpenAI, AWS Bedrock, Perplexity, Together AI and OpenAI-compatible. Usage is billed by the provider at its API rates.
- Where does Fabric store my API key?
- On your device. Requests go directly from Fabric to the provider. Its BYOK Tools Key Safety Score is 93/100.
- Is Fabric free?
- Open source: Free & open source. API usage is billed separately by your model provider.
- Is Fabric open source?
- Yes. The source code is at https://github.com/danielmiessler/fabric.
- Can Fabric run local models?
- Yes. It can connect to local runtimes such as Ollama or LM Studio, so no API key is needed for private or offline use.
- Which platforms does Fabric support?
- CLI, macOS, Windows, Linux.
Community reviews
No reviews yet.
Alternatives to Fabric
All command line →AIChat
Command Line
All-in-one LLM CLI with chat REPL, RAG, agents and a local server.
LLM (Simon Willison)
Command Line
CLI and Python library for interacting with any LLM.
Open Interpreter
Command Line
Let language models run code on your computer from a terminal.
gptme
Command Line
Personal AI agent in your terminal with code execution.
Mods
Command Line
AI on the command line from Charm, built for pipelines.
Wave Terminal
Command Line
Open-source terminal with inline AI chat and graphical widgets.