# Fabric

> Fabric is an open-source AI tool for developer tools. Open-source CLI framework that runs a library of reusable AI prompts on your own tasks. It is available on CLI, macOS, Linux, Windows, API and Self-hosted.

- **Kind:** Tool
- **Pricing:** Open source
- **Platforms:** CLI, macOS, Linux, Windows, API, Self-hosted
- **Website:** https://danielmiessler.com/p/fabric-origin-story
- **Repository:** https://github.com/danielmiessler/fabric
- **GitHub stars:** 44,838
- **License:** MIT
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-01

## About

Fabric organizes AI prompts by real-world task and lets you run them from the terminal, a REST API, or as a pipe in other shell workflows. Each prompt, called a pattern, is a Markdown file you can read, edit and share, so the instructions behind a result are always visible.

You pick a model from a long list of supported providers, including OpenAI, Anthropic, Gemini, Ollama for local models, Azure, Bedrock and many OpenAI-compatible services. Patterns can be chained with other commands, fed YouTube transcripts or scraped web pages, and combined with strategies such as chain-of-thought or reflexion to change how the model reasons.

It suits developers and power users who already work in a terminal and want repeatable prompts they can script, version and use across different AI backends.

## Features

- **Task-based prompt patterns:** Reusable Markdown prompts organized by activity, such as summarizing, extracting claims or explaining code.
- **Multi-provider model support:** Switch between many hosted and local AI providers without changing your prompts.
- **Pipeline-friendly command line:** Reads from stdin and writes to stdout so patterns slot into existing shell pipelines.
- **YouTube and web input:** Pulls transcripts from YouTube videos and scrapes web pages into markdown before processing.
- **REST API server:** Exposes core functionality over HTTP, with an Ollama-compatible mode for existing clients.
- **Prompt strategies:** Applies techniques such as chain-of-thought or self-refinement on top of any pattern.

## Good for

- Summarize long articles or podcasts from the terminal
- Extract key points from YouTube videos as part of a note-taking workflow
- Explain or document unfamiliar source code
- Compare the same prompt across different AI models
- Run a shared prompt library inside scripts or a local API

## FAQ

### Is Fabric free to use?

Fabric is released under the MIT license and is open source. You still pay any model provider you connect to, unless you use a local model.

### How do I install Fabric?

Install scripts are provided for Unix, macOS and Windows, along with Homebrew, Scoop, Winget, the AUR, Docker images and go install.

### Can I write my own patterns?

Yes. A pattern is a Markdown file placed in your configuration directory, and custom patterns take precedence over built-in ones with the same name.

### Can Fabric run with local models?

Yes. Ollama and LM Studio are supported as native integrations.

### What are the best alternatives to Fabric?

The closest alternatives to Fabric are Promptitude.io, Prompt Genie, PromptLayer, DiscuroAI and Prmpts.ai.

## Where this comes from

- Description: written from the project's README and the project's website.

## Alternatives

- [Promptitude.io](https://ai-powered.com/tools/promptitude.io): Promptitude.io is a freemium AI tool for productivity.
- [Prompt Genie](https://ai-powered.com/tools/prompt_genie): Prompt Genie is a freemium AI tool for prompt guides.
- [PromptLayer](https://ai-powered.com/tools/promptlayer): PromptLayer is a freemium AI tool for generative code.
- [DiscuroAI](https://ai-powered.com/tools/discuroai): DiscuroAI is a free AI tool for generative code.
- [Prmpts.ai](https://ai-powered.com/tools/prmpts.ai): Prmpts.ai is an AI tool for prompt guides.
- [AnyAPI](https://ai-powered.com/tools/anyapi): AnyAPI is an AI tool for productivity.
- [printing-press-library](https://ai-powered.com/tools/printing-press-library): printing-press-library is an open-source AI tool for developer tools.
- [pezzo](https://ai-powered.com/tools/pezzo): pezzo is an open-source AI tool for ai models and llm tooling.

---
Source: https://ai-powered.com/tools/fabric-2
