Self-sovereign AI in ~2,000 lines of Python.
Cobot is a minimal personal AI agent that runs on your hardware, identifies via Nostr, and transacts via Lightning Network. No cloud. No custody. No permission needed.
Every layer is yours. No vendor lock-in. No API keys you don't own. Swap any component without touching the others.
No bloat. No framework tax. Just the primitives for a self-sovereign agent.
Send and receive sats autonomously. Your agent has its own money via npub.cash.
npub.cashCryptographic identity via npub/nsec. Communicate through Nostr relays with NIP-04 DMs.
NIP-04Everything is a plugin. Drop modules into /plugins and they auto-register with dependency resolution.
extensibleModify plugins at runtime. Cobot watches for changes and restarts automatically.
zero downtimePPQ, Ollama, OpenRouter, and more. Run local models or connect to cloud providers.
flexibleFile-based communication channel with Schnorr signature verification. Agents exchange signed messages.
SchnorrShip with sensible defaults. Replace anything.
| Plugin | Capability | Description |
|---|---|---|
| config | system | Configuration management |
| ppq | llm | PPQ.ai LLM provider |
| ollama | llm | Local Ollama models |
| nostr | communication | Nostr DMs via NIP-04 |
| filedrop | communication | File-based messaging with signatures |
| wallet | wallet | Lightning via npub.cash |
| tools | tools | Shell & file operations |
| hotreload | system | Auto-restart on plugin changes |
| security | system | Prompt injection shield |
Cobot's unique feature: plugins can define hooks that other plugins implement. Composable by design.
# filedrop/plugin.py meta = PluginMeta( id="filedrop", extension_points=[ "filedrop.before_write", "filedrop.after_read", ], )
# filedrop-nostr/plugin.py meta = PluginMeta( id="filedrop-nostr", implements={ "filedrop.before_write": "sign", "filedrop.after_read": "verify", }, )
Clean separation. Every layer has a single job.
| Feature | Cobot | Heavy Frameworks | Cloud Agents |
|---|---|---|---|
| Codebase | ~2K lines | 430K+ lines | Closed source |
| Self-sovereign | ✓ Full | Partial | ✕ Cloud |
| Nostr identity | ✓ Native | ✕ | ✕ |
| Lightning wallet | ✓ Native | ✕ | ✕ |
| Extension points | ✓ Unique | ✕ | ✕ |
| Hot reload | ✓ | ✕ | ✕ |
| Plugin system | ✓ | ✓ | Varies |