Use Mods with Shannon
Add Shannon under apis in Mods' mods.yml and pipe files, logs and diffs through Shannon models.
- Tested Nov 7, 2026
- OpenAI Chat Completions
- About 2 min
About Mods
Mods, from Charm, reads standard input, adds your prompt and prints the model's answer as Markdown in the terminal. It is made for pipelines: logs, diffs and files go in, summaries and fixes come out. Its config takes any OpenAI-compatible API, including Shannon.
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
-
Add Shannon to mods.yml
mods --settingsopens the file (~/.config/mods/mods.ymlon Linux).api-key-envnames the variable with the key.mods.ymldefault-api: shannon default-model: shannon-3 apis: shannon: base-url: https://api.shannon-ai.com/v1 api-key-env: SHANNON_API_KEY models: shannon-3: aliases: ["shannon"] max-input-chars: 589824
Check that it works
Send: mods "Name three colours a cat can be."
You should see: One short Markdown answer.
Models that fit Mods
Every id below meets what Mods 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
- Mods is archived (March 2026); for new setups Charm recommends Crush and its
crush runmode. max-input-charsis in characters, not tokens; about three characters per token is a safe guess.- Mods keeps answers in a local cache for
--continue;--no-cacheskips it.
Tips
-m shannonuses the alias;-fformats the answer as Markdown.--continue(-C) follows up on the last answer with a new prompt.-rprints raw text, which is handy when the answer is piped on.
Troubleshooting
| Symptom | Cause | Fix |
|---|---|---|
404 Not Found | base-url lacks /v1. | Use https://api.shannon-ai.com/v1. |
| "Model not found" | default-model or -m is not listed under the API's models. | Add the id, or use its alias. |
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 Mods work with Shannon?
Yes, as an entry under apis with base-url: https://api.shannon-ai.com/v1.
Is Mods still maintained?
No. Charm archived Mods on 9 March 2026 and points to crush run instead. The last release, 1.8.1, still works with Shannon; we tested it.