Guide · Open source
How to use Fabric: install, run patterns and set up providers
Updated · written with AI from the project's own documentation and checked against our catalogue data
Fabric is an open-source framework from Daniel Miessler for using AI through a library of reusable prompts it calls patterns. Each pattern is built for a specific real-world task, and you can run one on your own text from the command line. This guide explains what Fabric is for, how to get it installed, and how to start running patterns.
Quick start
- 1Check you have an AI provider. Fabric connects to model backends, so make sure you have access to at least one AI provider account before you start.
- 2Clone the repository. Run git clone https://github.com/danielmiessler/Fabric.git to download the source.
- 3Follow the install instructions. Use the package-manager and configuration steps in the README and docs for your operating system.
- 4Configure your provider. Set up the AI provider you want Fabric to use, following the README's configuration notes.
- 5Pick a pattern. Choose a pattern that matches your task, such as summarizing a document.
- 6Run the pattern on your text. Send your input through the command line or a pipe and review the output.
What Fabric is and who it is for
Fabric organizes prompts by real-world task so you can create, collect and reuse them in one place. The project describes its goal as fitting AI into daily work instead of switching between separate chat apps.
The README centers on the command line, so Fabric suits people comfortable with a terminal and configuration files. It is less suited to anyone who wants a point-and-click chat app.
- Good fit: people who want to run AI prompts on files or piped text
- Good fit: people who want to collect and reuse their own prompts
- Good fit: developers who want a REST API server built on the same patterns
- Not a fit: anyone without access to an AI provider account, since Fabric connects to model backends rather than supplying its own
Install Fabric from the repository
The README lists a package-manager install method and does not list any prerequisites. Its install command shown in the source clones the repository from GitHub. Check the README for the full set of install options for your system before you start.
After cloning, follow the install instructions in the README and the docs folder. Some older videos were recorded when Fabric was Python-based, so rely on the current README instructions.
git clone https://github.com/danielmiessler/Fabric.gitRun a pattern on your own text
Patterns are the core unit of Fabric. Pick the pattern that matches your task, then send it your input from the command line. The README's screenshot shows a summarize pattern being run, which is a good first example.
Fabric also accepts piped text, so you can feed it output from other command-line tools. The README does not list every flag, so check its usage section and documentation for exact syntax.
- Choose a pattern that matches the task, such as summarizing
- Send your text as input from the command line or through a pipe
- Review the output and adjust the pattern or input if needed
Create and organize your own patterns
Fabric lets you collect and organize your own prompts for recurring tasks. The README includes a Custom Patterns section that covers how to write them.
Once a prompt works well for a task, keeping it as a pattern means you can reuse it instead of rewriting it each time.
Connect an AI provider
Fabric connects to AI model backends. You need your own account or access with a provider, because Fabric does not supply models itself. The README's recent updates list many supported providers, and the project's changelog shows that the list changes over time.
Use the provider setup described in the README and docs. The project also notes that a REST API server can expose the same patterns to other programs.
- Confirm you have access to at least one provider before installing
- Check the README for the current list of supported providers and setup steps
- Use the REST API server if you want other tools to call your patterns
Where to find more detail
The README points to the docs folder for a deep dive into internals and to DeepWiki for an AI-generated guide to the project. The README also links to videos, though some were recorded for an earlier Python version of Fabric.
Because the README is the main reference, new users should expect to read the docs and configuration notes themselves rather than rely on a step-by-step beginner guide.
- Docs folder: https://github.com/danielmiessler/Fabric/tree/main/docs
- DeepWiki: https://deepwiki.com/danielmiessler/Fabric
What people use it for
- Summarizing a file or piped text from the command line
- Collecting your own recurring prompts as reusable patterns
- Running one interface across several AI providers
- Serving your patterns through a REST API server for other tools
Frequently asked questions
Is Fabric free to use?
Fabric is released under the MIT licence, and its source is on GitHub. The source does not list prices for AI providers, and Fabric connects to provider backends, so you may still need to pay for an account with one.
What do I need to install Fabric?
The README lists a package-manager install method and no prerequisites. You will also need access to an AI provider, since Fabric does not supply its own models.
How do I install Fabric?
The README's install command clones the repository with git clone https://github.com/danielmiessler/Fabric.git. Follow the README and docs for the remaining install steps for your system.
What is a Fabric pattern?
A pattern is a reusable prompt built for a specific real-world task. Fabric lets you run patterns on your own text and collect your own patterns.
Can I use Fabric without the command line?
The README centers on the command line and configuration. If you want a point-and-click chat app, this project is not designed for that.
How does Fabric compare to LangChain, Aider or Open WebUI?
The source names LangChain, Open WebUI, LLM by Simon Willison and Aider as comparable projects, but it does not compare features in detail. Read each project's documentation to see which fits your work.
New agent skills, repos and AI tools — every week
The best new skills and open-source projects, the fastest-growing repos, and one free prompt. Five minutes to read. Unsubscribe anytime.
Our verdict
Fabric suits command-line users who want to run and reuse AI prompts across providers, and developers who want a REST API server built on the same patterns. If you want a graphical chat app or a fully documented beginner guide, pick a different tool.
Install options & downloads