π¦ ClawHub
Nirvana
by @shivaclaw
Local-first OpenClaw plugin providing privacy-focused AI inference with bundled qwen2.5:7b model, intelligent routing, audit logging, and optional cloud fall...
TERMINAL
clawhub install nirvana-pluginπ About This Skill
Nirvana β Local-First AI Sovereignty
Description: Local-first inference plugin for OpenClaw. Zero API keys required. Bundled qwen2.5:7b model works out-of-box. Privacy-preserving routing, context stripping, cloud fallback optional.
Author: ShivaClaw
License: MIT
What is Nirvana?
Nirvana is an OpenClaw code plugin that enables true AI sovereignty:
Quick Start (3 minutes)
Prerequisites
Installation
# Step 1: Start Ollama container
docker run -d -p 11434:11434 ollama/ollamaStep 2: Install Nirvana plugin
openclaw plugins install ShivaClaw/nirvanaStep 3: Restart gateway to load plugin
openclaw gateway restartStep 4: Verify
openclaw status | grep nirvana
First Use
Once installed, Nirvana becomes your default inference provider:
# Any normal OpenClaw interaction automatically routes through Nirvana
The plugin decides: local (Ollama) vs cloud (Anthropic/OpenAI/Gemini) internally
Features
π Local Inference
π Privacy Enforcement
π― Intelligent Routing
@local or @cloud hints respectedπ Observability
Architecture
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β OpenClaw Gateway β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Nirvana Plugin (router.js) β
β "Should this query run locally or in the cloud?" β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β β
[LOCAL] [CLOUD]
Ollama:11434 Anthropic/OpenAI/Gemini
qwen2.5:7b (context-stripped)
~200 tok/sec 5000+ tok/sec
Free $0.01β$0.10
Private Private (sanitized)
β β
[Response] [Response]
Cached locally Integrated + cached
Configuration
Default Settings
{
"nirvana": {
"mode": "local-first",
"ollama": {
"endpoint": "http://ollama:11434",
"model": "qwen2.5:7b",
"timeout": 180000
},
"routing": {
"localThreshold": 0.7,
"maxLocalContextTokens": 8000,
"cloudFallback": true
},
"privacy": {
"stripIdentity": true,
"auditLog": "/var/log/nirvana-audit.json",
"redactPatterns": ["SOUL\\.md", "USER\\.md", "MEMORY\\.md"]
},
"metrics": {
"enabled": true,
"retentionDays": 7
}
}
}
Customization
Editconfig.schema.json to adjust:
Use Cases
β Perfect For
β οΈ Consider Cloud For
Performance
Typical Metrics (qwen2.5:7b on CPU)
| Metric | Value | |--------|-------| | Latency (P50) | 800msβ1.2s | | Throughput | 180β220 tokens/sec | | Memory (running) | 4.6GB RAM | | Accuracy (typical tasks) | 85β92% vs Claude 3.5 |Optimization Tips
Limitations
Roadmap
Documentation
Repository
https://github.com/ShivaClaw/nirvana-plugin
Support
License
MIT β Use freely, commercially, modify, distribute.
Status: Production-ready (v0.1.0) Last Updated: 2026-04-19 Author: ShivaClaw Maintained: Yes
β‘ When to Use
βοΈ Configuration
Default Settings
{
"nirvana": {
"mode": "local-first",
"ollama": {
"endpoint": "http://ollama:11434",
"model": "qwen2.5:7b",
"timeout": 180000
},
"routing": {
"localThreshold": 0.7,
"maxLocalContextTokens": 8000,
"cloudFallback": true
},
"privacy": {
"stripIdentity": true,
"auditLog": "/var/log/nirvana-audit.json",
"redactPatterns": ["SOUL\\.md", "USER\\.md", "MEMORY\\.md"]
},
"metrics": {
"enabled": true,
"retentionDays": 7
}
}
}
Customization
Editconfig.schema.json to adjust: