Skip to content
Mods

Command-line tools

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

Set it up

  1. Add Shannon to mods.yml

    mods --settings opens the file (~/.config/mods/mods.yml on Linux). api-key-env names the variable with the key.

    mods.yml
    default-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
  2. Export the key and pipe something in

    Shell
    export SHANNON_API_KEY=YOUR_API_KEY
    git diff | mods "Write a one-line commit message for this change."
    Mods on the shannon API: a one-line answer about cat colours and a bug found in a piped Python function
    A real run on Mods 1.8.1: a prompt and a piped file.

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

  • Mods is archived (March 2026); for new setups Charm recommends Crush and its crush run mode.
  • max-input-chars is in characters, not tokens; about three characters per token is a safe guess.
  • Mods keeps answers in a local cache for --continue; --no-cache skips it.

Tips

  1. -m shannon uses the alias; -f formats the answer as Markdown.
  2. --continue (-C) follows up on the last answer with a new prompt.
  3. -r prints raw text, which is handy when the answer is piped on.

Troubleshooting

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

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