Skip to content
AIChat

Command-line tools

Use AIChat with Shannon

Add Shannon as an openai-compatible client in AIChat's config.yaml and chat, run shell help and agents on Shannon models.

  • Tested Nov 7, 2026
  • OpenAI Chat Completions
  • About 2 min

About AIChat

AIChat is a single Rust binary for chatting with models in the terminal, with a REPL, shell-command help, sessions, roles, RAG and agents. It takes any OpenAI-compatible service as a client, so Shannon models can be listed and used next to others.

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 as a client

    Edit ~/.config/aichat/config.yaml. The default model is written <client name>:<model id>.

    ~/.config/aichat/config.yaml
    model: shannon:shannon-3
    clients:
      - type: openai-compatible
        name: shannon
        api_base: https://api.shannon-ai.com/v1
        api_key: YOUR_API_KEY
        models:
          - name: shannon-3
            max_input_tokens: 196608
            max_output_tokens: 65536
            supports_function_calling: true
  2. Chat

    Shell
    aichat "Name three colours a cat can be."
    AIChat on shannon:shannon-coder-1: the model in the list, then a folded think block and a one-line answer about cat colours
    A real run on AIChat 0.30.0 with the client above: reasoning first, then the answer.

Check that it works

Send: aichat --list-models | grep shannon

You should see: shannon:<id> in the list.

Models that fit AIChat

Every id below meets what AIChat 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

  • List each Shannon id under models; AIChat shows only the ids you list for an openai-compatible client.
  • The key sits in the file; keep config.yaml readable only by you.
  • AIChat shows the model's reasoning as a <think> block before the answer, for models that return reasoning, as Shannon models do.

Tips

  1. aichat -m shannon:<id> picks a model for one command; .model switches inside the REPL.
  2. aichat -e "…" turns a request into a shell command and asks before running it.
  3. aichat -s <name> keeps a named session across runs.

Troubleshooting

SymptomCauseFix
Unknown model The model is not written <client>:<id>, or the id is not listed under the client. Use shannon:<id> and list the id under models.
404 Not Found api_base lacks /v1. Use https://api.shannon-ai.com/v1.
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 AIChat work with Shannon?

Yes, as an openai-compatible client with api_base: https://api.shannon-ai.com/v1.

Can AIChat use several Shannon models?

Yes; list them under the client and switch with -m or .model.

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