Skip to content
Tool

Fabric

Open-source CLI framework that runs a library of reusable AI prompts on your own tasks

Fabric is an open-source AI tool for developer tools. It is available on CLI, macOS, Linux, Windows, API and Self-hosted.

Pricing
Open source
Platforms
CLI, macOS, Linux
GitHub stars
44.8K
Last commit
Language
Go
License
MIT

Similar tools

About Fabric

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.

What it does

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

Pricing

Open source

Free and open source under the MIT license; model provider costs apply.

Prices change. Check danielmiessler.com before you buy.

Fabric 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.