Nanobot
~4,000 lines of code. Built for MCP-first agents.
Ultra-lightweight personal AI agent framework from HKUDS (Hong Kong University of Data Science). Around 4,000 lines of core code, ~30K GitHub stars. Architected around MCP (Model Context Protocol) — chat channels, memory, tool use, sub-agents, and cron scheduling all wired through a small readable core loop. Supports 15+ LLM providers via LiteLLM.
Beta
Status
SDK / Library
Pattern
Python
Runtime
Not yet published
SDK version
Readiness
What “Beta” means for Nanobot
The integration path is built and tested. Real customers can attach now, but expect minor breaking changes until the 1.0 contract freeze.
How it attaches
SDK / Library.
Install the trustvice-actor-nanobot package and call witness.attach() once during agent initialisation.
Install the Trustvice adapter package from npm, PyPI, or cargo and call witness.attach(agent) in your application.
pip install trustvice-actor-nanobot
- 1
Install the adapter
Add trustvice-actor-nanobot to your project from PyPI.
- 2
Issue a workspace API key
Generate a twk_-prefixed key in the dashboard under Settings → API Keys, scoped to the workspace and environment this agent's data should land in.
- 3
Attach the witness
Call witness.attach(agent) once when you initialise your Nanobot agent. The adapter registers the framework callbacks, handles retries, and performs the workspace handshake.
- 4
Verify
Trigger one agent run. The dashboard's Witness page shows the canonical record within ~1 second of the agent emitting it.
pip install trustvice-actor-nanobot
Coverage
4 event types captured.
agent.invocationEvery top-level agent run — the input, the resolved output, timing, and token usage.
tool.callEach tool / function the agent invokes, with arguments and the returned result.
memory.writeWrites to the agent's persistent memory store, so state changes are auditable.
channel.messageMessages sent and received over the agent's channels (Telegram, Slack, Discord, …).
The full pattern guide
SDK / Library — end to end.
Every framework on this pattern shares the same platform-side spine, endpoints, and gotchas. The pattern guide covers them in full.
Read the SDK / Library guideNeed help landing Nanobot?
Talk to the integration team.
We help you land the integration end to end — including the parts that live in your environment.
Request integration helpDeclara las reglas. Que cada ejecución se compruebe.
Agentes, evidencias, gobernanza, comercio y divulgación están en Trustvice 360. Regístrate gratis y abre todas las suites desde un solo panel.