What is Fabric?
Fabric is a CLI framework by Daniel Miessler designed to augment human capabilities with AI. It uses a concept called 'patterns,' which are curated prompts for specific tasks like summarizing articles, extracting insights, creating documentation, and analyzing security reports. With 40,000 GitHub stars, Fabric has become popular among developers and security professionals who want structured, repeatable AI workflows.
Fabric supports custom OpenAI-compatible endpoints through environment variables. Set the base URL to EUrouter and your API key, and every pattern execution routes through EU infrastructure. This is especially relevant for Fabric users processing sensitive content like security reports, internal documents, or proprietary research.
Quick to integrate
A few lines of code is all it takes. Swap your base URL and you are routed through EUrouter.
1export OPENAI_API_KEY="eur-..."
2export OPENAI_BASE_URL="https://api.eurouter.ai/v1"
3export DEFAULT_MODEL="gpt-4o"
4
5# Run a pattern
6echo "article text" | fabric --pattern summarizeGet started in minutes
Follow these steps to connect your application to EUrouter.
Install Fabric
Install Fabric following the official instructions.
1go install github.com/danielmiessler/fabric@latestConfigure the API endpoint
Run fabric --setup or set environment variables pointing to EUrouter.
1export OPENAI_API_KEY="eur-..."
2export OPENAI_BASE_URL="https://api.eurouter.ai/v1"Run a pattern
Pipe content into Fabric with any pattern. All LLM calls route through EU infrastructure.
1echo "article text" | fabric --pattern summarizeWhy use Fabric with EUrouter
AI patterns through Europe
Fabric's patterns process your input text, whether it is articles, security reports, meeting notes, or code reviews. With EUrouter, that content routes through EU servers. Sensitive documents stay within European jurisdiction during AI processing.
- All pattern executions route through EUrouter's EU infrastructure
- Suitable for processing sensitive security reports and internal documents
- No US data processing for content analyzed by Fabric patterns
- Full audit trail for every pattern execution
Any model for any pattern
Through EUrouter, Fabric can use GPT-4o, Claude, Mistral, and more. Different patterns may work better with different models. Switch models per command with one API key.
- Access all EUrouter models from the Fabric CLI
- Switch models per pattern execution with the --model flag
- One API key covers all model usage across all patterns
- Try new models without changing your Fabric configuration
Pipeline-friendly and scriptable
Fabric is designed for Unix pipelines. Combine it with other CLI tools, chain patterns, and automate workflows. With EUrouter, your automated AI pipelines are GDPR-compliant by default.
- Pipe content from any source through Fabric patterns
- Chain multiple patterns in Unix pipelines
- Automate AI workflows in scripts and cron jobs
- EUrouter's EU routing applies to all automated executions