Docs · Guide
nanobot on any model
nanobot (HKUDS/nanobot, pip install nanobot-ai) is a personal AI assistant that answers in chat apps, its CLI and its WebUI. Its model comes from ~/.nanobot/config.json, where any key under providers that isn't one of its own is an OpenAI-compatible endpoint. packinggoods adds a packinggoods provider there and sets the default model to one of packinggoods's, so nanobot runs on any model you have in packinggoods: DeepSeek, GLM, Kimi, Qwen, an OpenAI or Anthropic key, or a ChatGPT or Copilot subscription.
Set up nanobot
- Run nanobot once
nanobot onboardor its first run makes~/.nanobot. - Add a provider in packinggoodsAdd an API key on the Providers page, or sign in to a subscription.
- Pick a model on nanobot's rowOn the Agents page, pick a packinggoods model for nanobot. A nanobot in WSL is set up there too.
pip install nanobot-ai && nanobot onboard # nanobot makes ~/.nanobot packinggoods nanobot deepseek/deepseek-v4-pro
What goes in config.json
packinggoods adds providers.packinggoods at the gateway's /v1, with the gateway's key and a User-Agent of nanobot (the OpenAI SDK's otherwise, which tells it from no one), and sets agents.defaults to provider packinggoods, model packinggoods/<model id> and the context window packinggoods knows the model to take. nanobot strips the packinggoods/ prefix before it sends the model.
// ~/.nanobot/config.json
{
"providers": {
…,
"packinggoods": {"apiBase": "http://127.0.0.1:3425/v1", "apiKey": "…",
"extraHeaders": {"User-Agent": "nanobot"}}
},
"agents": {"defaults": {
"provider": "packinggoods",
"model": "packinggoods/deepseek/deepseek-v4-pro",
"contextWindowTokens": …
}}
}nanobot's pydantic models read camelCase and snake_case keys alike. packinggoods writes nanobot's own camelCase, and takes out a snake_case spelling of the same key, so no two settings disagree.
modelPreset
When agents.defaults.modelPreset names one of modelPresets, it goes over both provider and model. So packinggoods stashes it and takes it out while packinggoods's model is on, and puts it back when it steps out; your modelPresets stay as they are.
When it takes effect
nanobot's gateway (nanobot gateway, the WebUI's) watches the file and takes a change at its next reply. nanobot agent reads it once, so restart an open nanobot agent chat. packinggoods says so while nanobot is running.
Your own settings
The provider, model, context window and modelPreset you had under agents.defaults are stashed and put back when packinggoods steps out. Your other providers, presets and keys stay as they are. A config.json packinggoods made goes again once nothing is left in it. If you delete the packinggoods provider in nanobot, packinggoods's check says it no longer reaches packinggoods.
Switching back
Set the row back to default in packinggoods: packinggoods takes out providers.packinggoods and puts agents.defaults back. Or pick a model of your own, and packinggoods puts things back and then sets it as the model.
packinggoods nanobot default
FAQ
Can nanobot use DeepSeek, GLM, Kimi or Qwen?
Yes. packinggoods adds an OpenAI-compatible packinggoods provider to ~/.nanobot/config.json and sets the default model to the one you pick in packinggoods.
Why is nanobot still on the old model?
nanobot's gateway and WebUI take the change at their next reply; nanobot agent reads its config once, so restart the chat.
Do I lose my modelPreset?
No. packinggoods stashes agents.defaults.modelPreset and takes it out (it would go over packinggoods's model), and puts it back when it steps out; modelPresets stay.
Does it work for nanobot in WSL?
Yes. packinggoods sets up a nanobot in a WSL distro too.
More agents on the same models: OpenClaw on any model, Hermes Agent on any model, OpenChamber on any model and AstrBot on any model. Something fails? See Fixing common errors, or ask on Discord.