Use PyGPT with Shannon
Add Shannon to PyGPT as a custom provider, bring in the Shannon models with the model importer, and chat with them in PyGPT's desktop window.
- Tested Nov 7, 2026
- OpenAI Chat Completions
- About 5 min
About PyGPT
PyGPT is an open-source desktop assistant written in Python for Linux, Windows and macOS. One window combines chat, agents, notepad, a painter, file and RAG tools and many plugins. Its custom providers accept any OpenAI Chat Completions-compatible endpoint, so Shannon models run in every mode that chats.
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 and start PyGPT
Install with pip (Python 3.10 or newer) or as a snap, then start
pygpt. The first-run wizard asks about plugins and offers to open the API key settings.Shellpip install pygpt-net pygpt -
Add a custom provider
Open Config → Settings → Custom providers, press Add, and enter a name, the base URL with
/v1and your key. Press Save in the dialog, then Save at the bottom of Settings.Custom providerProvider name: Shannon API base URL: https://api.shannon-ai.com/v1 API key: YOUR_API_KEY
A real setup on PyGPT 2.9.1: the custom provider dialog.
Check that it works
Send: Name three things a puppy needs on its first day at home, in one short sentence.
You should see: One sentence such as "A puppy needs food and water, a safe place to rest, and frequent potty breaks." and the token count in the status bar.
Models that fit PyGPT
Every id below meets what PyGPT 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
- Conversation titles come from a separate summary model,
gpt-4o-miniby default. Set Model used for auto-summary to a Shannon model under Config → Settings → Chats, or turn Automatic conversation summary off. - On Linux,
pip install pygpt-netbuilds PyAudio and needs the PortAudio headers (portaudio19-devon Debian and Ubuntu); the Qt window also needslibxcb-cursor0. - The importer guesses each model's window; check it under Config → Models → Edit models.
Tips
- Each model can override the provider's API base and key under Config → Models → Edit models.
- With No tools in the input bar, PyGPT sends plain chat requests; switch tools on only when you want plugins.
- Ctrl + mouse wheel zooms the window, and Config → Settings → Layout has a DPI factor for high-resolution screens.
- Config → Settings → API Keys → OpenAI also has an API Base URL field, but a custom provider leaves your OpenAI settings untouched.
Troubleshooting
| Symptom | Cause | Fix |
|---|---|---|
Could not load the Qt platform plugin "xcb" | libxcb-cursor0 is missing (Qt 6.5 and newer need it). | Install it with your package manager and start PyGPT again. |
| Shannon is not in the importer's provider list | The custom provider was added but Settings were not saved. | Press Save at the bottom of Config → Settings, then reopen the importer. |
portaudio.h: No such file or directory during install | PyAudio is built from source on Linux. | Install portaudio19-dev (or your distribution's PortAudio headers) and run pip again. |
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 PyGPT work with Shannon?
Yes: add Shannon under Config → Settings → Custom providers with https://api.shannon-ai.com/v1, then import the models.
Which PyGPT modes can use Shannon models?
Chat-based modes use the imported models; we tested plain Chat. Image and audio features keep their own providers.