ClawHub
SkillsPluginsOfficialDocsSupport
K
SkillsNirvana

Nirvana

Shiva&G@shivaclaw
Local-first OpenClaw plugin providing privacy-focused AI inference with bundled qwen2.5:7b model, intelligent routing, audit logging, and optional cloud fall...

Install

$
openclaw skills install @shivaclaw/nirvana-plugin
Security check
Review
Version
0.1.1
Updated
May 11, 2026
License
MIT-0

Latest: v0.1.1

  • Updated plugin-manifest.json.
  • No functional or documentation changes to SKILL.md.
  • Maintenance release only.
Security
#privacy

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:

  • Local-first execution — 80%+ of queries handled on your hardware (no API calls)
  • Zero setup — Bundled qwen2.5:7b model auto-pulls (3.5GB) on first run
  • Privacy enforced — Identity files (SOUL.md, USER.md, MEMORY.md) never exported
  • Intelligent fallback — Cloud APIs used only when needed
  • Observability — Comprehensive metrics and audit logging
  • Production-ready — Full test coverage, error handling, graceful degradation

Quick Start (3 minutes)

Prerequisites

  • Docker (for Ollama container)
  • OpenClaw 2026.4.0+

Installation

bash
# Step 1: Start Ollama container
docker run -d -p 11434:11434 ollama/ollama

# Step 2: Install Nirvana plugin
openclaw plugins install ShivaClaw/nirvana

# Step 3: Restart gateway to load plugin
openclaw gateway restart

# Step 4: Verify
openclaw status | grep nirvana

First Use

Once installed, Nirvana becomes your default inference provider:

bash
# Any normal OpenClaw interaction automatically routes through Nirvana
# The plugin decides: local (Ollama) vs cloud (Anthropic/OpenAI/Gemini) internally

Features

🏠 Local Inference

  • Bundled qwen2.5:7b model (3.5GB, ~200 tokens/sec on CPU)
  • Optional upgrade to qwen3.5:9b (8GB, better reasoning)
  • Extensible provider system (Llama 2, Mistral, Phi supported)
  • GPU acceleration auto-detected (CUDA, Metal)

🔒 Privacy Enforcement

  • Context stripper — Removes identity/memory before cloud queries
  • Privacy auditor — Logs all boundary decisions
  • Audit trail — JSON logs of what left your system
  • Zero telemetry — No data sent to ClawHub, GitHub, or third parties

🎯 Intelligent Routing

  • Local-first decision engine — Analyzes query complexity, context size, urgency
  • Target: 80%+ local routing — Most prompts handled locally
  • Seamless fallback — Cloud APIs used transparently when needed
  • User override — @local or @cloud hints respected

📊 Observability

  • Metrics collector — Routing decisions, cache hits, latency, token counts
  • Performance tracking — Identify optimization opportunities
  • Health checks — Ollama availability, network diagnostics
  • Response integrator — Cache cloud responses locally for future use

Architecture

text
┌──────────────────────────────────────────────────────────────┐
│ 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

json
{
  "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

Edit config.schema.json to adjust:

  • Model selection (Ollama)
  • Routing thresholds (when to use cloud)
  • Privacy audit level
  • Metrics retention

Use Cases

✅ Perfect For

  • Personal AI agents (no API cost constraints)
  • Private/sensitive workloads (code, healthcare, finance)
  • Latency-critical applications (local response < 2s)
  • Air-gapped environments (local-only mode available)
  • Learning/experimentation (zero API key friction)

⚠️ Consider Cloud For

  • Advanced reasoning (Grok, Claude Opus for complex problems)
  • Rare specialized tasks (image generation, audio synthesis)
  • Extreme scale (millions of tokens/day)

Performance

Typical Metrics (qwen2.5:7b on CPU)

MetricValue
Latency (P50)800ms–1.2s
Throughput180–220 tokens/sec
Memory (running)4.6GB RAM
Accuracy (typical tasks)85–92% vs Claude 3.5

Optimization Tips

  • Use GPU (CUDA/Metal) for 3–5x speedup
  • Upgrade to qwen3.5:9b for complex reasoning
  • Pre-cache frequently used contexts
  • Enable response integrator for repeated queries

Limitations

  • Reasoning complexity: Qwen < Claude Opus (but acceptable for most tasks)
  • Multimodal: Not supported in v0.1.0 (planned v0.4.0)
  • Token count: Local limit ~8000 tokens (cloud fallback automatic)
  • Speed: CPU-bound (upgrade to GPU for production)

Roadmap

  • v0.2.0 (Apr 2026): Response integrator (cache + reuse cloud results)
  • v0.3.0 (May 2026): Multi-model provider (Llama, Mistral, Phi)
  • v0.4.0 (Jun 2026): GPU acceleration detection + CUDA/Metal support
  • v1.0.0 (Jul 2026): Stable API, full test coverage, performance optimization

Documentation

  • README.md — Features, architecture, philosophy
  • INSTALL.md — Installation and setup
  • MIGRATION.md — Cloud-to-local transition guide
  • PUBLISH.md — ClawHub publication workflow
  • DELIVERY-CHECKLIST.md — Verification steps

Repository

https://github.com/ShivaClaw/nirvana-plugin

Support

  • Issues: https://github.com/ShivaClaw/nirvana-plugin/issues
  • Discussions: https://github.com/ShivaClaw/nirvana-plugin/discussions
  • Moltbook: @clawofshiva

License

MIT — Use freely, commercially, modify, distribute.


Status: Production-ready (v0.1.0)
Last Updated: 2026-04-19
Author: ShivaClaw
Maintained: Yes

Related skills

More in Security
ClawHub

Skills and plugins for OpenClaw agents. Part of the wider OpenClaw ecosystem.

Explore docs

SkillsPluginsOfficialAudits

Publish SkillPublish PluginCreate org

OverviewOpenClawDocsBlog

SupportGitHubDiscord

Built alongside the OpenClaw ecosystem

LobsterCrabboxClickClackCrabfleetOctopoolClawSweeperagent-skillsdiscrawlgitcrawlslacrawlnotcrawltelecrawlgraincrawlcrawlkitcrawlbaracpxmcporterTachikomaclawpatchclawbenchPeekaboocookbookplugin-inspectorwacrawlcrabpotAll projectsLobsterCrabboxClickClackCrabfleetOctopoolClawSweeperagent-skillsdiscrawlgitcrawlslacrawlnotcrawltelecrawlgraincrawlcrawlkitcrawlbaracpxmcporterTachikomaclawpatchclawbenchPeekaboocookbookplugin-inspectorwacrawlcrabpotAll projects

© 2026 OpenClaw Foundation

Privacy policy·Status·Deployed on Vercel·Powered by Convex

....:: clawhub/openclaw ::....  skills plugins publishers trust signals   :::: signed manifests ::::: moderated releases ::::: version history ::::   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins
>>> install scan publish verify    @@ gateway @@ registry @@ agents @@     hooks runners slash-commands skill.md templates scanners review-bots   ---- downloads installs stars lineage ownership docs package integrity
  30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins     safe browse paths   official gateways   publisher handles   org trust
:::: signed manifests ::::: moderated releases ::::: version history ::::   ---- downloads installs stars lineage ownership docs package integrity   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals
  hooks runners slash-commands skill.md templates scanners review-bots     safe browse paths   official gateways   publisher handles   org trust   >>> install scan publish verify    @@ gateway @@ registry @@ agents @@
openclaw ecosystem    crabbox clickclack crawler packs gateway plugins   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals     30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship
---- downloads installs stars lineage ownership docs package integrity   >>> install scan publish verify    @@ gateway @@ registry @@ agents @@   :::: signed manifests ::::: moderated releases ::::: version history ::::
  safe browse paths   official gateways   publisher handles   org trust     30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship     hooks runners slash-commands skill.md templates scanners review-bots
....:: clawhub/openclaw ::....  skills plugins publishers trust signals   :::: signed manifests ::::: moderated releases ::::: version history ::::   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins
>>> install scan publish verify    @@ gateway @@ registry @@ agents @@     hooks runners slash-commands skill.md templates scanners review-bots   ---- downloads installs stars lineage ownership docs package integrity
  30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins     safe browse paths   official gateways   publisher handles   org trust
:::: signed manifests ::::: moderated releases ::::: version history ::::   ---- downloads installs stars lineage ownership docs package integrity   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals
  hooks runners slash-commands skill.md templates scanners review-bots     safe browse paths   official gateways   publisher handles   org trust   >>> install scan publish verify    @@ gateway @@ registry @@ agents @@
openclaw ecosystem    crabbox clickclack crawler packs gateway plugins   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals     30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship
---- downloads installs stars lineage ownership docs package integrity   >>> install scan publish verify    @@ gateway @@ registry @@ agents @@   :::: signed manifests ::::: moderated releases ::::: version history ::::
  safe browse paths   official gateways   publisher handles   org trust     30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship     hooks runners slash-commands skill.md templates scanners review-bots
....:: clawhub/openclaw ::....  skills plugins publishers trust signals   :::: signed manifests ::::: moderated releases ::::: version history ::::   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins
>>> install scan publish verify    @@ gateway @@ registry @@ agents @@     hooks runners slash-commands skill.md templates scanners review-bots   ---- downloads installs stars lineage ownership docs package integrity
  30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins     safe browse paths   official gateways   publisher handles   org trust
:::: signed manifests ::::: moderated releases ::::: version history ::::   ---- downloads installs stars lineage ownership docs package integrity   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals
  hooks runners slash-commands skill.md templates scanners review-bots     safe browse paths   official gateways   publisher handles   org trust   >>> install scan publish verify    @@ gateway @@ registry @@ agents @@
openclaw ecosystem    crabbox clickclack crawler packs gateway plugins   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals     30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship
---- downloads installs stars lineage ownership docs package integrity   >>> install scan publish verify    @@ gateway @@ registry @@ agents @@   :::: signed manifests ::::: moderated releases ::::: version history ::::
  safe browse paths   official gateways   publisher handles   org trust     30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship     hooks runners slash-commands skill.md templates scanners review-bots
....:: clawhub/openclaw ::....  skills plugins publishers trust signals   :::: signed manifests ::::: moderated releases ::::: version history ::::   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins
>>> install scan publish verify    @@ gateway @@ registry @@ agents @@     hooks runners slash-commands skill.md templates scanners review-bots   ---- downloads installs stars lineage ownership docs package integrity
  30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins     safe browse paths   official gateways   publisher handles   org trust
:::: signed manifests ::::: moderated releases ::::: version history ::::   ---- downloads installs stars lineage ownership docs package integrity   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals
  hooks runners slash-commands skill.md templates scanners review-bots     safe browse paths   official gateways   publisher handles   org trust   >>> install scan publish verify    @@ gateway @@ registry @@ agents @@
openclaw ecosystem    crabbox clickclack crawler packs gateway plugins   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals     30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship
---- downloads installs stars lineage ownership docs package integrity   >>> install scan publish verify    @@ gateway @@ registry @@ agents @@   :::: signed manifests ::::: moderated releases ::::: version history ::::
  safe browse paths   official gateways   publisher handles   org trust     30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship     hooks runners slash-commands skill.md templates scanners review-bots
....:: clawhub/openclaw ::....  skills plugins publishers trust signals   :::: signed manifests ::::: moderated releases ::::: version history ::::   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins
>>> install scan publish verify    @@ gateway @@ registry @@ agents @@     hooks runners slash-commands skill.md templates scanners review-bots   ---- downloads installs stars lineage ownership docs package integrity
  30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins     safe browse paths   official gateways   publisher handles   org trust
:::: signed manifests ::::: moderated releases ::::: version history ::::   ---- downloads installs stars lineage ownership docs package integrity   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals
  hooks runners slash-commands skill.md templates scanners review-bots     safe browse paths   official gateways   publisher handles   org trust   >>> install scan publish verify    @@ gateway @@ registry @@ agents @@
openclaw ecosystem    crabbox clickclack crawler packs gateway plugins   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals     30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship
---- downloads installs stars lineage ownership docs package integrity   >>> install scan publish verify    @@ gateway @@ registry @@ agents @@   :::: signed manifests ::::: moderated releases ::::: version history ::::
  safe browse paths   official gateways   publisher handles   org trust     30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship     hooks runners slash-commands skill.md templates scanners review-bots
....:: clawhub/openclaw ::....  skills plugins publishers trust signals   :::: signed manifests ::::: moderated releases ::::: version history ::::   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins
>>> install scan publish verify    @@ gateway @@ registry @@ agents @@     hooks runners slash-commands skill.md templates scanners review-bots   ---- downloads installs stars lineage ownership docs package integrity
  30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins     safe browse paths   official gateways   publisher handles   org trust
:::: signed manifests ::::: moderated releases ::::: version history ::::   ---- downloads installs stars lineage ownership docs package integrity   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals