Skip to content
Fabric

Command-line tools

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/v1 Endpoint: /v1/chat/completions
Every snippet below follows your choice.

Set it up

  1. Install Fabric and its patterns

    Download a release binary, then fetch the patterns once with fabric -U (or run fabric --setup, which also asks about vendors).

    Shell
    fabric -U
  2. Point the OpenAI vendor at Shannon

    Add these lines to ~/.config/fabric/.env.

    ~/.config/fabric/.env
    OPENAI_API_KEY=YOUR_API_KEY
    OPENAI_API_BASE_URL=https://api.shannon-ai.com/v1
    DEFAULT_VENDOR=OpenAI
    DEFAULT_MODEL=shannon-3
  3. Run a pattern

    Shell
    cat notes.txt | fabric -s -p summarize
    Fabric on the OpenAI vendor pointed at Shannon: Shannon ids in the model list, then the summarize pattern output about cats
    A real run on Fabric 1.4.564: Shannon ids from /v1/models and a streamed summarize pattern.

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 idContext windowMax outputImage 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 -U fetches them without the setup questions.

Tips

  1. -m <id> picks another Shannon model for one run; -V OpenAI makes the vendor explicit.
  2. Add -s to stream the answer as it is written instead of waiting for the whole reply.
  3. fabric -l lists patterns; --readpattern <name> shows what a pattern sends.

Troubleshooting

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

Choose your language

All languages are equal. Pick the one you want to browse in.

Europe

Middle East & North Africa

South Asia

Southeast Asia

East Asia

Central Asia & Caucasus

Africa

Oceania

Constructed & Classical