Skip to content
OpenClaw

Personal and autonomous agents

Use OpenClaw with Shannon

Run your OpenClaw assistant on Shannon models: add Shannon as a custom provider and every chat channel uses it.

  • Tested Nov 7, 2026
  • OpenAI Chat Completions
  • About 3 min

About OpenClaw

OpenClaw is an open-source personal assistant that you run on your own computer or server. One gateway connects it to WhatsApp, Telegram, Slack, Discord and other chat apps, and it can browse, run commands, use skills and keep long-term memory. With Shannon as its provider, every channel runs on the Shannon model you choose and is billed to your API key.

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. Put your API key where OpenClaw reads secrets

    OpenClaw loads ~/.openclaw/.env at start. Keep the key there and refer to it by name, so it never sits in the config file.

    ~/.openclaw/.env
    SHANNON_API_KEY=YOUR_API_KEY
  2. Add Shannon as a custom provider

    Add a provider under models.providers in ~/.openclaw/openclaw.json and make one of its models the default. api: "openai-completions" uses the Chat Completions endpoint; openai-responses and anthropic-messages work too.

    ~/.openclaw/openclaw.json
    {
      "models": {
        "providers": {
          "shannon": {
            "baseUrl": "https://api.shannon-ai.com/v1",
            "apiKey": "${SHANNON_API_KEY}",
            "api": "openai-completions",
            "models": [
              {
                "id": "Kimi-K3-uncensored-NVFP4",
                "name": "Kimi-K3-uncensored-NVFP4",
                "contextWindow": 1022976,
                "maxTokens": 262144,
                "reasoning": true,
                "input": ["text", "image"]
              }
            ]
          }
        }
      },
      "agents": {
        "defaults": {
          "model": { "primary": "shannon/Kimi-K3-uncensored-NVFP4" }
        }
      }
    }
  3. Restart OpenClaw and send a first message

    Restart the gateway service so every channel picks up the provider, then try one turn from the terminal. With a fresh install, openclaw onboard asks for the same values instead: choose Custom Provider, then OpenAI-compatible, and enter the base URL, the key and the model id.

    Shell
    openclaw daemon restart
    openclaw agent --local -m "Hello! Which model are you?"
    OpenClaw in a terminal on the Shannon model Kimi-K3-uncensored-NVFP4: it writes hello.txt with a file tool and reports the path
    A real run on OpenClaw 2026.11.1: one tool call, the file written, a 1,022,976-token context.

Check that it works

Send: Hi! Which model are you, and how big is your context window?

You should see: A reply in the chat you connected (or in the terminal), naming the model you chose.

Models that fit OpenClaw

Every id below meets what OpenClaw 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

OpenClaw asks for these values. They follow the model you picked.

SettingValueWhy
contextWindow 1022976 Without it OpenClaw assumes 200,000 tokens and compacts too early.
maxTokens 262144 The longest answer the model may write.
input ["text", "image"] Images reach the model only when image is listed.

Good to know

  • The default model is written as <provider>/<model id>, here shannon/<id>.
  • With reasoning: true OpenClaw sends reasoning_effort; Shannon accepts low, medium, high and xhigh.
  • OpenClaw runs around the clock and every channel shares one model, so a model billed by tokens suits it better than a per-call quota.
  • OpenClaw's memory search wants an embedding model, which Shannon does not serve. Without one it logs "vector recall degraded" and still answers; set an embedding provider in OpenClaw for full recall.
  • Repeated context is read from the cache: the second turn of our test read 48,689 tokens from it, billed at the cached rate.

Tips

  1. Test the provider with openclaw agent --local -m "…" before you connect a chat app: it uses the same settings without sending anything to a channel.
  2. List several Shannon ids under the provider's models and switch the default by changing agents.defaults.model.primary; run openclaw daemon restart afterwards.
  3. Keep the key in ~/.openclaw/.env, not in openclaw.json, so the config file can be shared or backed up without it.
  4. Keep the system prompt and skills stable between turns: repeated context is read from Shannon's cache and billed at the cached rate.

Troubleshooting

SymptomCauseFix
401 on the first message The key was not loaded from .env. Check the name in "apiKey": "${SHANNON_API_KEY}" matches the line in ~/.openclaw/.env, then restart.
404 Not Found The base URL is missing /v1, or has it twice. Use exactly https://api.shannon-ai.com/v1.
unknown model The default names a model that is not in the provider's list. Write the default as shannon/<id> with an id from the provider's models list.
Long chats are cut short contextWindow is missing, so OpenClaw compacts at 200,000 tokens. Set contextWindow to the model's window from the table above.
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 OpenClaw work with Shannon?

Yes. OpenClaw's custom providers speak the OpenAI Chat Completions, OpenAI Responses and Anthropic Messages formats, and Shannon serves all three.

Which Shannon model should OpenClaw use?

A model with a long window and tool calls, such as Kimi-K3-uncensored-NVFP4 (1M-token window, image input). Any id from GET /v1/models works.

Can I use Shannon on WhatsApp or Telegram through OpenClaw?

Yes. The model is set once for the gateway; every channel OpenClaw runs on uses it.

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