Personal and autonomous agents
Use NanoClaw with Shannon
Point NanoClaw's agents at Shannon's Anthropic-compatible endpoint with two lines in .env.
- From the NanoClaw docs, Nov 7, 2026
- Anthropic Messages
- About 10 min
About NanoClaw
NanoClaw is a small, self-hosted personal assistant. Each agent runs in its own Docker container through the Claude Agent SDK, and talks to you through Slack, Telegram, Discord, WhatsApp or a local CLI channel. Because the agents speak the Anthropic Messages format, they can run on Shannon models through Shannon's Anthropic-compatible endpoint.
What you need
- A Shannon API key
- Keys & usage
- Base URL
-
https://api.shannon-ai.comEndpoint:/v1/messages - Every snippet below follows your choice.
Set it up
-
Install NanoClaw
nanoclaw.shinstalls Node, pnpm and Docker if needed, builds the agent container and pairs a first channel. Run it in a normal terminal; it asks questions as it goes.Shellgit clone https://github.com/qwibitai/nanoclaw cd nanoclaw bash nanoclaw.sh -
Point the agents at Shannon
Add these lines to
.envin the NanoClaw folder. The base URL has no/v1: the Claude Agent SDK adds/v1/messagesitself..envANTHROPIC_BASE_URL=https://api.shannon-ai.com ANTHROPIC_AUTH_TOKEN=YOUR_API_KEY -
Restart and send a message
Restart the NanoClaw service so new agent containers start with the new settings, then message your agent on the channel you paired, or with
pnpm run chaton the CLI channel.Shellpnpm run chat "Hello! Which model are you?"
Check that it works
Send: Hello! Which model are you?
You should see: A reply on your channel from the Shannon model you set.
Models that fit NanoClaw
Every id below meets what NanoClaw 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 |
Good to know
- NanoClaw's README calls the
.envroute a one-off experiment path; its supported path for other models is the/add-opencodeskill, which can use Shannon's OpenAI-compatible endpoint athttps://api.shannon-ai.com/v1instead. - Credentials stay outside the containers: NanoClaw's credential gateway adds them to outgoing requests.
- We have not run NanoClaw against Shannon yet; this guide follows NanoClaw's README, which documents only the two
.envlines. The README does not say how to pick a model id on this route.
Tips
- Use a model with tool calls and a long window, such as one from the picker, since every agent works through tools.
- Different agent groups can use different backends, so you can try Shannon on one group first.
bash nanoclaw.sh --uninstall --dry-runshows what an uninstall would remove.
Troubleshooting
| Symptom | Cause | Fix |
|---|---|---|
404 on every request | ANTHROPIC_BASE_URL ends in /v1. | Use https://api.shannon-ai.com, without /v1. |
401 | The token did not reach the credential gateway, or the service was not restarted. | Check .env and restart NanoClaw. |
unknown model: claude-… | The agent still asks for a Claude model id. | Set the agent group's model to a Shannon id, or use the /add-opencode route, where the model is part of the provider config. |
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 NanoClaw work with Shannon?
Its README documents ANTHROPIC_BASE_URL and ANTHROPIC_AUTH_TOKEN for any Claude API-compatible endpoint, which Shannon serves at https://api.shannon-ai.com/v1/messages.
Can I use the OpenAI format instead?
Yes, through NanoClaw's /add-opencode skill with Shannon as an OpenAI-compatible provider.