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/v1Endpoint:/v1/chat/completions - Every snippet below follows your choice.
Set it up
-
Add Shannon as a client
Edit
~/.config/aichat/config.yaml. The defaultmodelis written<client name>:<model id>.~/.config/aichat/config.yamlmodel: 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
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 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
- List each Shannon id under
models; AIChat shows only the ids you list for anopenai-compatibleclient. - The key sits in the file; keep
config.yamlreadable 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
aichat -m shannon:<id>picks a model for one command;.modelswitches inside the REPL.aichat -e "…"turns a request into a shell command and asks before running it.aichat -s <name>keeps a named session across runs.
Troubleshooting
| Symptom | Cause | Fix |
|---|---|---|
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.