Use Fabric with Shannon
Set Fabric's OpenAI vendor to Shannon's base URL in ~/.config/fabric/.env and run its patterns on Shannon models.
- Tested Nov 7, 2026
- OpenAI Chat Completions
- About 3 min
About Fabric
Fabric is an open-source command-line framework of patterns: tested prompts for summarising, extracting wisdom, writing and more, which you pipe text into. Its OpenAI vendor takes a custom base URL, so every pattern can run on Shannon models.
What you need
- A Shannon API key
- Keys & usage
- Base URL
-
https://api.shannon-ai.com/v1Endpoint:/v1/chat/completions - Every snippet below follows your choice.
Set it up
-
Install Fabric and its patterns
Download a release binary, then fetch the patterns once with
fabric -U(or runfabric --setup, which also asks about vendors).Shellfabric -U -
Point the OpenAI vendor at Shannon
Add these lines to
~/.config/fabric/.env.~/.config/fabric/.envOPENAI_API_KEY=YOUR_API_KEY OPENAI_API_BASE_URL=https://api.shannon-ai.com/v1 DEFAULT_VENDOR=OpenAI DEFAULT_MODEL=shannon-3
Check that it works
Send: fabric -L | grep shannon
You should see: Shannon ids listed under OpenAI, read from GET /v1/models.
Models that fit Fabric
Every id below meets what Fabric needs. The first one is the default in the snippets.
| Model id | Context window | Max output | Image input |
|---|---|---|---|
shannon-3 | 196,608 | 65,536 | Yes |
shannon-3-pro | 196,608 | 65,536 | Yes |
Kimi-K3-uncensored-3BIT-REAP | 225,280 | 225,280 | Yes |
Kimi-K3-uncensored-NVFP4 | 1,022,976 | 262,144 | Yes |
Good to know
- Fabric reads the model list from
GET /v1/models, so every Shannon id appears under the OpenAI vendor. - Patterns are long system prompts; a pattern run costs more input tokens than the text you pipe in.
- Patterns are downloaded separately. Without them a run fails with "No patterns are installed";
fabric -Ufetches them without the setup questions.
Tips
-m <id>picks another Shannon model for one run;-V OpenAImakes the vendor explicit.- Add
-sto stream the answer as it is written instead of waiting for the whole reply. fabric -llists patterns;--readpattern <name>shows what a pattern sends.
Troubleshooting
| Symptom | Cause | Fix |
|---|---|---|
No Shannon models in fabric -L | OPENAI_API_BASE_URL lacks /v1 or the key is wrong. | Use https://api.shannon-ai.com/v1 and check the key. |
| "could not find vendor" | DEFAULT_VENDOR is misspelled. | Set DEFAULT_VENDOR=OpenAI. |
401 Unauthorized | The key is missing, mistyped or rotated. | Copy the key again from Keys & usage; it starts with sk-. |
context_length_exceeded / "prompt is too long" | The conversation is longer than the model's window. | Start a new chat, let the tool compact it, or pick a model with a larger window. |
insufficient_quota | Your balance cannot pay for the request. | Top up or change plan; the request is not retried by itself. |
Questions
Does Fabric work with Shannon?
Yes, through its OpenAI vendor with OPENAI_API_BASE_URL=https://api.shannon-ai.com/v1.
Do all patterns work?
Text patterns do; patterns that need images need a model with image input.