Skip to content
nanobot

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

Set it up

  1. Install nanobot and create its config

    Shell
    pip install nanobot-ai
    nanobot onboard
  2. 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" }
      }
    }
  3. Export the key and send a message

    Shell
    export SHANNON_API_KEY=YOUR_API_KEY
    nanobot agent -m "Create a file hello.txt that says: the brown dog digs."
    nanobot in a terminal on the Shannon preset: reasoning lines, a write_file tool call and the file hello.txt written
    A real run on nanobot 0.4.1 with the preset above: one tool call, two requests.

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 idContext windowMax outputImage 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.

SettingValueWhy
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.maxConcurrentSubagents lowers that.

Tips

  1. The model's reasoning shows as lines starting with ✻ before the answer; --no-markdown prints plain text.
  2. /model <preset> switches presets in a chat; add one preset per Shannon id.
  3. nanobot webui opens the browser workbench, where Settings → Models edits the same values.
  4. Set gateway.heartbeat.enabled to false if you do not use HEARTBEAT.md tasks.

Troubleshooting

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

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