Nanobot is an ultra-lightweight AI assistant framework that supports multiple LLM providers and chat channels.
uv tool install nanobot-aipip install nanobot-aigit clone https://github.com/HKUDS/nanobot.git
cd nanobot
pip install -e .nanobot onboardEdit ~/.nanobot/config.json:
{
"llm": {
"provider": "openrouter",
"api_key": "your-api-key"
}
}Add channel configuration to config.json:
{
"channels": {
"telegram": {
"token": "your-bot-token",
"allowFrom": ["your-chat-id"]
}
}
}nanobot agentnanobot gatewaynanobot onboard- Initialize configurationnanobot agent- Start CLI conversationnanobot gateway- Start gateway for chat channelsnanobot skills- List available skills
Nanobot supports various skills:
- memory: Long-term memory system
- cron: Scheduled tasks
- weather: Weather forecasts
- clawhub: Skill registry search
- skill-creator: Create custom skills
Nanobot supports Model Context Protocol (MCP) for extending capabilities via stdio or HTTP transport.
Supported providers include:
- OpenRouter
- Anthropic (Claude)
- OpenAI (GPT)
- DeepSeek
- Gemini
- Qwen/DashScope
- Moonshot (Kimi)
- Groq
- Custom endpoints
API Key Error
- Ensure your API key is correctly set in
config.json - Check file permissions:
chmod 600 ~/.nanobot/config.json
Channel Connection Failed
- Verify bot token/credentials
- Check
allowFromwhitelist configuration - Ensure network connectivity
Skill Not Found
- Install skill via ClawHub:
nanobot skill install <skill-name> - Check skill availability in registry
- GitHub Discussions: https://github.com/HKUDS/nanobot/discussions
- Discord: https://discord.gg/MnCvHqpUGB
- Official Documentation: https://github.com/HKUDS/nanobot