Personal and autonomous agents
Use nanobot with Shannon
Add Shannon as a custom provider and a model preset in nanobot's config.json, and the assistant runs on Shannon models in the terminal and chat apps.
- Tested Nov 7, 2026
- OpenAI Chat Completions
- About 3 min
About nanobot
nanobot is a small open-source personal assistant from the HKU Data Intelligence Lab, inspired by OpenClaw. It runs in the terminal, a web UI or chat apps, with tools, memory, skills and scheduled jobs. Custom OpenAI-compatible providers are a few lines of JSON, so it can run 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 nanobot and create its config
Shellpip install nanobot-ai nanobot onboard -
Add Shannon as a provider and a model preset
Merge this into
~/.nanobot/config.json. nanobot expands${SHANNON_API_KEY}from the environment, so the key stays out of the file. Give the provider a name that is not a built-in one.~/.nanobot/config.json{ "providers": { "shannon": { "apiKey": "${SHANNON_API_KEY}", "apiBase": "https://api.shannon-ai.com/v1" } }, "modelPresets": { "shannon": { "provider": "shannon", "model": "Kimi-K3-uncensored-NVFP4", "maxTokens": 262144, "contextWindowTokens": 1022976 } }, "agents": { "defaults": { "modelPreset": "shannon" } } }
Check that it works
Send: Hello! Which model are you?
You should see: A reply from the Shannon model in the preset.
Models that fit nanobot
Every id below meets what nanobot needs. The first one is the default in the snippets.
| Model id | Context window | Max output | Image input |
|---|---|---|---|
Kimi-K3-uncensored-NVFP4 | 1,022,976 | 262,144 | Yes |
Kimi-K3.1-Pro-uncensored-NVFP4 | 1,022,976 | 262,144 | Yes |
MiMo-V2.6-Pro-uncensored-NVFP4 | 1,022,976 | 131,072 | Yes |
Kimi-K3-uncensored-3BIT-REAP | 225,280 | 225,280 | Yes |
shannon-3 | 196,608 | 65,536 | Yes |
Model settings
nanobot asks for these values. They follow the model you picked.
| Setting | Value | Why |
|---|---|---|
contextWindowTokens | 1022976 | nanobot builds prompts and memory consolidation around it. |
Good to know
- A custom provider key uses Chat Completions unless you declare other APIs for it.
- nanobot runs background jobs on the same model: memory archiving, Dream (every 2 hours by default) and the gateway heartbeat. They cost requests too.
- Up to four subagents can run at once by default;
agents.defaults.maxConcurrentSubagentslowers that.
Tips
- The model's reasoning shows as lines starting with
✻before the answer;--no-markdownprints plain text. /model <preset>switches presets in a chat; add one preset per Shannon id.nanobot webuiopens the browser workbench, where Settings → Models edits the same values.- Set
gateway.heartbeat.enabledtofalseif you do not useHEARTBEAT.mdtasks.
Troubleshooting
| Symptom | Cause | Fix |
|---|---|---|
401 | SHANNON_API_KEY is not set where nanobot starts. | Export it, or write the key into apiKey. |
404 Not Found | apiBase lacks /v1. | Use https://api.shannon-ai.com/v1. |
| nanobot uses another model | agents.defaults still names an old model/provider pair. | Set modelPreset and remove the old keys. |
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 nanobot work with Shannon?
Yes, as a custom OpenAI-compatible provider with apiBase: https://api.shannon-ai.com/v1.
Can nanobot use Shannon on Telegram or Slack?
Yes; channels use the default preset, so they answer with the Shannon model.