Skip to content
ShellGPT

Command-line tools

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

Set it up

  1. Install ShellGPT

    Shell
    pipx install shell-gpt
  2. Point it at Shannon

    Edit ~/.config/shell_gpt/.sgptrc (sgpt creates it on first run and keeps the other lines).

    ~/.config/shell_gpt/.sgptrc
    OPENAI_API_KEY=YOUR_API_KEY
    API_BASE_URL=https://api.shannon-ai.com/v1
    DEFAULT_MODEL=shannon-3
  3. Ask, or get a shell command

    Shell
    sgpt "Name three colours a cat can be."
    sgpt --shell "count the lines of every .py file in this folder"
    ShellGPT sgpt on shannon-coder-1: a one-line answer about cat colours and a generated find and wc shell command
    A real run on ShellGPT 1.5.1: a question and a shell command.

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

  • API_BASE_URL must end in /v1.
  • In our install, pip install shell-gpt 1.5.1 left out the click package and sgpt failed with No module named 'click'; pip install click fixed it.
  • With OPENAI_USE_FUNCTIONS=true (the default), sgpt sends its function definitions on every request; set it to false for plain chat with fewer tokens.

Tips

  1. sgpt --model <id> picks another Shannon model for one question.
  2. sgpt --shell asks before running the command; --no-interaction only prints it.
  3. sgpt --chat <name> keeps a named conversation; --repl <name> opens an interactive one.
  4. Pipe input in: git diff | sgpt "Write a commit message".

Troubleshooting

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

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