Use ShellGPT with Shannon
Set API_BASE_URL, the key and DEFAULT_MODEL in ShellGPT's .sgptrc and ask Shannon models from the terminal with sgpt.
- Tested Nov 7, 2026
- OpenAI Chat Completions
- About 2 min
About ShellGPT
ShellGPT, run as sgpt, answers questions in the terminal, writes shell commands and code, and keeps chat sessions. It speaks the OpenAI API and reads its base URL from its config file, so it runs on Shannon models.
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
-
Install ShellGPT
Shellpipx install shell-gpt -
Point it at Shannon
Edit
~/.config/shell_gpt/.sgptrc(sgpt creates it on first run and keeps the other lines).~/.config/shell_gpt/.sgptrcOPENAI_API_KEY=YOUR_API_KEY API_BASE_URL=https://api.shannon-ai.com/v1 DEFAULT_MODEL=shannon-3
Check that it works
Send: sgpt "Say hello to a dog."
You should see: A short greeting from the Shannon model.
Models that fit ShellGPT
Every id below meets what ShellGPT 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
API_BASE_URLmust end in/v1.- In our install,
pip install shell-gpt1.5.1 left out theclickpackage andsgptfailed withNo module named 'click';pip install clickfixed it. - With
OPENAI_USE_FUNCTIONS=true(the default), sgpt sends its function definitions on every request; set it tofalsefor plain chat with fewer tokens.
Tips
sgpt --model <id>picks another Shannon model for one question.sgpt --shellasks before running the command;--no-interactiononly prints it.sgpt --chat <name>keeps a named conversation;--repl <name>opens an interactive one.- Pipe input in:
git diff | sgpt "Write a commit message".
Troubleshooting
| Symptom | Cause | Fix |
|---|---|---|
404 Not Found | API_BASE_URL lacks /v1. | Use https://api.shannon-ai.com/v1. |
401 | An old key is set in the environment, which overrides .sgptrc. | Unset OPENAI_API_KEY in the shell or set it to your Shannon key. |
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 ShellGPT work with Shannon?
Yes: set API_BASE_URL=https://api.shannon-ai.com/v1 and DEFAULT_MODEL to a Shannon id.
Can it run the commands it suggests?
Yes, sgpt --shell offers to execute them after you confirm.