Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@kernel.chat/kbot

Package Overview
Dependencies
Maintainers
1
Versions
230
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Potential malware was recently detected in this package.

Affected versions:

3.58.13.59.03.60.03.60.13.61.0
+81 more

@kernel.chat/kbot

The only AI agent that builds its own tools — and defends itself. Your AI answers to you, not a government. NEW: Computer-use desktop agent, macOS permission wizard, session isolation, M4L devices, Serum 2 presets, DJ tools. 670+ tools, 35 agents, 20 prov

Source
npmnpm
Version
3.60.0
Version published
Weekly downloads
412
-0.48%
Maintainers
1
Weekly downloads
 
Created
Source

kbot
The only AI agent that builds its own tools — and defends itself.

kbot demo — The Kernel Stack

npm version npm downloads MIT License GitHub stars Discord

npm install -g @kernel.chat/kbot

Self-defending AI agent. 600+ tools. 35 agents. 20 providers. Forges new tools at runtime. Built-in cybersecurity suite. $0 local AI. MIT licensed.

New: The Kernel Stack — the architecture behind kbot + Claude Code. Agentic, self-improving, compound AI. Read the manifesto.

What's New

v3.37 — Dream Mode, Meta-Agent, Claude Code Plugin, Voice Mode

FeatureWhat it means
Dream Modekbot dream — offline consolidation. kbot reviews recent sessions, extracts patterns, strengthens memory connections, and prunes stale knowledge. Like sleep for an AI agent.
Meta-AgentSelf-referential self-improvement inspired by HyperAgents (arXiv 2603.19461). A two-agent loop: task agents solve problems, the Meta-Agent watches performance and rewrites task agents to be better. Unlike HyperAgents (CC BY-NC-SA), kbot is MIT — the only self-improving agent framework companies can actually use. Run kbot meta to trigger a cycle.
Claude Code Pluginkbot registers its 9 core specialists as Claude Code teammates via the Agent Teams integration. Delegate tasks to coder, researcher, guardian, etc. directly from Claude Code sessions.
Voice Modekbot voice — full voice loop with speech-to-text input and text-to-speech output. Hands-free agentic coding. Works with system TTS and Whisper STT.
OpenClaw Integration@kernel.chat/kbot-openclaw — kbot as the brain for 50+ messaging channels. Discord, Slack, Telegram, WhatsApp, iMessage, email, and more. One agent, every platform.
35 agents15 new specialist and domain agents since v3.28, including meta-agent, dream agent, and expanded presets.
600+ tools210+ new tools across science, research, finance, creative, build matrix, and meta-cognition categories.

v3.28 — Self-Defense System

kbot now protects its own integrity — and yours.

FeatureWhat it means
Memory IntegrityHMAC signatures on all memory files. Tampered memories are detected and quarantined.
Prompt Injection DetectionReal-time scanning of inputs for injection attacks, jailbreaks, and adversarial prompts.
Knowledge SanitizationLearned patterns and forged tools are sanitized before storage to prevent poisoning.
Forge VerificationCryptographic verification of forged tools — unsigned or modified tools are blocked.
Anomaly DetectionBehavioral baselines with statistical anomaly scoring. Alerts on drift.
Incident LoggingTamper-proof audit log of all security events.
kbot defenseaudit · sign · verify · incidents — full CLI for the defense system.

v3.27 — Cybersecurity Tools

Seven new security tools, available to every agent:

dep_audit · secret_scan · ssl_check · headers_check · cve_lookup · port_scan · owasp_check

Plus P0 fixes: all Supabase edge functions now enforce auth headers. No more unauthenticated access.

v3.26 — Trader Agent & Finance Stack

FeatureWhat it means
Trader Agentkbot --agent trader — crypto market analysis, paper trading, DeFi yield scanning.
Finance Tools (11)market_data, market_overview, price_history, technical_analysis, paper_trade, market_sentiment, defi_yields + 4 more.
Wallet & Swaps (9)Create/import Solana wallets (AES-256-CBC encrypted). Jupiter DEX swaps. Token balances, transaction history, airdrop tracking.
Stock Tools (6)Stock screener, earnings calendar, sector rotation, company fundamentals, insider trades, options flow.
Sentiment (5)Social sentiment, whale tracking, fear & greed index, news aggregation, trend detection.
Introspection Enginekbot insights · kbot reflect · kbot compare — ask kbot what it knows about itself.
kbot helpNew CLI subcommand — quick reference for commands, agents, and support channels.

Why kbot?

Other AI agents are static — fixed tools, single providers, no memory, no learning. kbot is the first AI agent that evolves itself and defends itself:

  • Forges its own tools — When kbot encounters a task it can't handle, it creates a new tool on the spot via forge_tool. The tool persists, gets tested, and can be shared via the Forge Registry.
  • Self-defending — HMAC memory integrity, prompt injection detection, forge verification, anomaly detection, and tamper-proof incident logging. Run kbot defense audit anytime.
  • Cybersecurity built in — Dependency audits, secret scanning, SSL/TLS checks, header analysis, CVE lookup, port scanning, OWASP checks. Every project gets security tooling for free.
  • Self-evolving — Autopoietic health monitoring (kbot vitals) tracks tool success rates, token budgets, and memory pressure. The immune agent self-audits for drift and regressions.
  • Cost-aware routing — Automatically selects the cheapest model capable of handling each task. Claude for complex reasoning, DeepSeek for simple queries. Saves 60-90% on API costs.
  • Fallback chains — If Anthropic is down, kbot cascades to OpenAI, then Groq, then local. Zero manual intervention.
  • 20 providers, zero lock-in — Claude, GPT, Gemini, Grok, DeepSeek, Groq, Mistral, and 13 more. Switch anytime.
  • Runs fully offline — Embedded llama.cpp runs GGUF models directly. No Ollama needed. $0, fully private.
  • Learns your patterns — Bayesian skill ratings + pattern extraction. Gets faster and smarter over time.
  • 35 specialist agents — Say "fix the auth bug" and it routes to coder. Say "research JWT tokens" and it routes to researcher. Say "analyze BTC" and it routes to trader. Auto-routed with probabilistic confidence.
  • Crash-proof — Checkpoints after every tool call. Resume interrupted sessions automatically.
  • Use as a library — Clean SDK with typed exports. Build your own tools on top of kbot.
  • Works in your IDE — Built-in MCP server for VS Code, Cursor, Zed, Neovim. ACP for JetBrains.

Install

# npm (recommended)
npm install -g @kernel.chat/kbot

# Docker
docker run -it isaacsight/kbot

# curl
curl -fsSL https://raw.githubusercontent.com/isaacsight/kernel/main/packages/kbot/install.sh | bash

Quick Start

# One-shot — ask anything
kbot "explain what this project does"

# Interactive REPL
kbot

# Use your own API key (auto-detects provider)
kbot auth

# Or go fully local — no API key, no data leaves your machine
kbot local

# Forge a new tool at runtime
kbot "I need a tool that converts CSV to JSON with column filtering"

# Check system health
kbot vitals

# Audit your own defenses
kbot defense audit

# Scan a project for vulnerabilities
kbot --agent guardian "run a full security scan on this repo"

# Pipe mode — compose with Unix tools
kbot -p "generate a user roles migration" > migration.sql

Forge — Runtime Tool Creation

kbot is the only AI agent that builds its own tools. When it encounters a task no existing tool can handle, it creates one:

# kbot detects it needs a tool, creates it, tests it, and uses it — all in one turn
kbot "analyze the sentiment distribution across all my markdown files"
# → forge_tool creates 'sentiment_analyze' → executes it → returns results

# Browse and install community tools from the Forge Registry
kbot forge search "kubernetes"
kbot forge install k8s-pod-monitor

# Publish your forged tools for others
kbot forge publish sentiment_analyze

Forged tools are first-class citizens — they get the same middleware pipeline, permission checks, forge verification, and telemetry as built-in tools.

SDK — Use kbot as a Library

import { agent, tools, providers } from '@kernel.chat/kbot'

// Run the agent programmatically
const result = await agent.run("fix the auth bug", { agent: 'coder' })
console.log(result.content)    // AI response
console.log(result.toolCalls)  // tools it used
console.log(result.usage)      // token counts

// Stream responses
for await (const event of agent.stream("explain this code")) {
  if (event.type === 'content_delta') process.stdout.write(event.text)
  if (event.type === 'tool_call_start') console.log(`Using: ${event.name}`)
}

// Execute tools directly
const files = await tools.execute('glob', { pattern: 'src/**/*.ts' })
console.log(files.result)

// List all 600+ tools
console.log(tools.list().map(t => t.name))

SDK Exports

import { agent, tools, providers } from '@kernel.chat/kbot'           // Main SDK
import { SilentUIAdapter, CallbackUIAdapter } from '@kernel.chat/kbot' // UI adapters
import { ResponseStream } from '@kernel.chat/kbot'                     // Streaming

Specialists

35 agents, auto-routed by Bayesian skill ratings, or pick one with kbot --agent <name>:

Agents
Corekernel, researcher, coder, writer, analyst
Extendedaesthete, guardian, curator, strategist
Domaininfrastructure, quant, investigator, oracle, chronist, sage, communicator, adapter, trader
Systemimmune, forge, meta-agent, dream, codebase-guardian
Presetshacker, operator, dreamer, creative, developer, gamedev, playtester
Claude Codekernel, coder, researcher, writer, analyst, guardian, aesthete, curator, strategist (teammate integration)
kbot --agent researcher "what papers cite Friston's Free Energy Principle?"
kbot --agent guardian "review src/auth.ts for security issues"
kbot --agent coder "refactor this into smaller functions"
kbot --agent trader "analyze BTC momentum and run a paper trade"

600+ Tools

CategoryExamples
Forgeforge_tool, forge_search, forge_install, forge_publish, forge_verify
Files & Coderead, write, glob, grep, multi-file write
Qualitylint (ESLint/Biome/Clippy), test (Vitest/Jest/pytest), deps audit, format, type-check
Shellbash, parallel execute, background tasks
Git & GitHubcommit, diff, PR, issues, code search
Websearch, fetch, browser automation, browser agent
ResearcharXiv, Semantic Scholar, HuggingFace, NASA, DOI
DataCSV read/query/write, transforms, reports, invoices
Creativep5.js generative art, GLSL shaders, SVG patterns, design variants, music
DeployVercel, Netlify, Cloudflare Workers/Pages, Fly.io, Railway
DatabasePostgres, MySQL, SQLite queries, Prisma, ER diagrams, seed data
ContainersDocker build/run/compose, Terraform
VFXGLSL shaders, FFmpeg, ImageMagick, Blender, procedural textures
Game Devscaffold, config, shaders, meshes, physics, particles, levels, tilemaps, navmesh, audio, netcode
Trainingdataset prep, fine-tuning, evaluation, model export
Socialpost to X, LinkedIn, Bluesky, Mastodon — single posts and threads
SandboxDocker containers, E2B cloud sandboxes, isolated code execution
NotebooksJupyter read, edit, insert, delete cells
Build Matrixcross-platform builds — mobile, desktop, WASM, embedded, server
LSPgoto definition, find references, hover, rename, diagnostics, symbols
Memorypersistent save, search, update, forget — survives across sessions
IDEMCP server, ACP server, LSP bridge
Financemarket data, technical analysis, paper trading, DeFi yields, Solana wallet & swaps, stock screener, sentiment, whale tracking
Science & Mathsymbolic compute, matrix ops, FFT, ODEs, probability, optimization, graph theory, combinatorics, OEIS
Physicsorbital mechanics, circuits, signal processing, particle physics (PDG), relativity, quantum simulator, beam analysis, fluid dynamics, EM, astronomy
ChemistryPubChem compounds, reactions, periodic table (118 elements), materials, spectroscopy, stoichiometry, crystals, thermodynamics
BiologyPubMed, gene lookup, protein/PDB, BLAST, drug/ChEMBL, pathways, taxonomy, clinical trials, ecology, sequence tools
Earth & Climateearthquakes/USGS, climate/NOAA, satellite imagery, geology, ocean, air quality, soil, volcanoes, water resources, biodiversity
Neurosciencebrain atlas, EEG analysis, cognitive models, neural simulation, neurotransmitters, connectome, psychophysics, neuroimaging, learning models
Social Sciencepsychometrics, game theory, econometrics, social network analysis, inequality metrics, survey design, voting systems, behavioral experiments
Humanitiescorpus analysis, formal logic, argument mapping, ethics frameworks, historical timelines, language typology, phonetics (IPA), stylometry, philosophical concepts
Health & EpidemiologySIR/SEIR/SEIRS models, epidemiology calculations, disease surveillance, crop modeling, nutrition, learning analytics, vaccination modeling, environmental health
Deep Researchliterature review, drug discovery pipeline, genomic analysis, environmental assessment, materials discovery, knowledge graphs, hypothesis engine, meta-analysis, research notebooks
Cybersecuritydep_audit, secret_scan, ssl_check, headers_check, cve_lookup, port_scan, owasp_check
Self-Defensememory HMAC, injection detection, knowledge sanitization, forge verification, anomaly detection, incident log
Systemvitals, immune audit, defense audit, cost tracking, fallback status
Metasubagents, worktrees, planner, sessions, checkpoints, self-eval

Finance & Trading

The trader agent (kbot --agent trader) is a full-stack financial analysis and paper trading system:

# Market analysis
kbot --agent trader "what's the momentum on ETH right now?"
kbot --agent trader "screen for undervalued large-cap stocks"

# Paper trading (no real money at risk)
kbot --agent trader "open a paper long on SOL with 2x leverage"
kbot --agent trader "show my paper portfolio P&L"

# DeFi
kbot --agent trader "find the best stablecoin yields on Solana"
kbot --agent trader "swap 0.1 SOL for USDC on Jupiter"

# Sentiment
kbot --agent trader "what's crypto twitter saying about the next FOMC?"

31 finance tools across 5 categories: market data (11), wallet & swaps (9), stocks (6), and sentiment (5). All paper trading is simulated — no real funds are moved unless you explicitly configure and confirm a live wallet transaction.

Science & Research

The only terminal AI agent with a built-in science laboratory. 114 research tools across 11 domains:

# Physics
kbot "calculate the orbital period of a satellite at 400km altitude"
kbot "simulate a quantum circuit with 4 qubits in a GHZ state"

# Biology
kbot "search PubMed for CRISPR delivery mechanisms published in 2025"
kbot "look up the protein structure for insulin receptor"

# Chemistry
kbot "what are the properties of aspirin from PubChem?"
kbot "balance the equation: Fe + O2 -> Fe2O3"

# Deep Research
kbot "run a literature review on transformer attention mechanisms"
kbot "generate hypotheses for why coral bleaching accelerated in 2025"

114 tools across: math, physics, chemistry, biology, earth science, neuroscience, social science, humanities, health/epidemiology, deep research pipelines, and knowledge graphs.

Middleware Pipeline

Extend tool execution with composable middleware:

import { ToolPipeline, executionMiddleware } from '@kernel.chat/kbot/tools'

const pipeline = new ToolPipeline()

// Add custom logging middleware
pipeline.use(async (ctx, next) => {
  console.log(`Calling ${ctx.toolName}...`)
  await next()
  console.log(`${ctx.toolName} took ${ctx.durationMs}ms`)
})

// Add the actual execution
pipeline.use(executionMiddleware(myExecutor))

await pipeline.execute({ toolName: 'bash', toolArgs: { command: 'ls' }, toolCallId: '1', metadata: {}, aborted: false })

Built-in middleware: permissionMiddleware, hookMiddleware, timeoutMiddleware, metricsMiddleware, truncationMiddleware, telemetryMiddleware, defenseMiddleware.

20 Providers

ProviderCostLocal?
Embedded (llama.cpp)FreeYes
OllamaFreeYes
LM StudioFreeYes
JanFreeYes
DeepSeek$0.27/M inCloud
SambaNova$0.50/M inCloud
Cerebras$0.60/M inCloud
Groq$0.59/M inCloud
NVIDIA NIM$0.80/M inCloud
Together AI$0.88/M inCloud
Fireworks AI$0.90/M inCloud
Google (Gemini)$1.25/M inCloud
Mistral$2.00/M inCloud
OpenAI (GPT)$2.00/M inCloud
Cohere$2.50/M inCloud
Anthropic (Claude)$3.00/M inCloud
xAI (Grok)$3.00/M inCloud
Perplexity$3.00/M inCloud
OpenRoutervariesCloud
kbot localFreeYes

Cost-aware routing automatically picks the cheapest provider that can handle each task. Fallback chains ensure zero downtime across providers.

Local Mode

No API key needed. No data leaves your machine. 11 models across 3 tiers:

# Use Ollama (if installed)
kbot local

# Or run models directly — embedded llama.cpp, no external service
kbot models pull llama3.3-8b
kbot local --embedded

# GPU-accelerated: Metal (Mac), CUDA (Linux/Windows), Vulkan

Model Catalog

TierModelsUse case
LightLlama 3.3 3B, Qwen 3 4B, Phi-4 MiniFast completions, simple tasks, low-RAM machines
StandardLlama 3.3 8B, Qwen 3 8B, Mistral 7B, Codestral 22BGeneral-purpose coding, chat, analysis
HeavyDeepSeek R1 14B, Llama 3.3 70B (Q4), Qwen 3 32B, Codestral 22B (Q8)Complex reasoning, large codebase analysis

All models auto-download on first use. GPU acceleration detected automatically (Metal on Apple Silicon, CUDA on NVIDIA, Vulkan fallback).

Structured Streaming

Stream typed events to any consumer:

import { ResponseStream } from '@kernel.chat/kbot'

const stream = new ResponseStream()

// Subscribe to events
stream.on((event) => {
  switch (event.type) {
    case 'content_delta': process.stdout.write(event.text); break
    case 'tool_call_start': console.log(`Tool: ${event.name}`); break
    case 'tool_result': console.log(`Result: ${event.result}`); break
    case 'usage': console.log(`Tokens: ${event.inputTokens} in, ${event.outputTokens} out`); break
  }
})

// Or use as async iterator
for await (const event of stream) {
  // handle each event
}

HTTP SSE: POST /stream when running kbot serve — standard Server-Sent Events.

IDE Integration

{
  "mcp": {
    "servers": {
      "kbot": { "command": "kbot", "args": ["ide", "mcp"] }
    }
  }
}

Works with Claude Code, Cursor, VS Code, Windsurf, Zed, Neovim. Exposes file ops, bash, git, search, planning, and more.

Commands

CommandWhat it does
kbotInteractive REPL
kbot "prompt"One-shot execution
kbot init60-second project onboarding — detects stack, forges tools, writes config
kbot authConfigure API key
kbot localUse local AI (Ollama, embedded, LM Studio, Jan)
kbot email-agent start --openEmail companion — responds to all inbound via local AI ($0)
kbot imessage-agent startiMessage agent — free SMS/iMessage on macOS
kbot audit <repo>Security + quality audit with shareable badge
kbot consultationConsultation engine — guardrails, intake, client management
kbot defense auditSelf-defense audit — verify memory integrity, check for anomalies
kbot defense signSign all memory and forge artifacts with HMAC
kbot defense verifyVerify signatures on memory and forged tools
kbot defense incidentsReview tamper-proof security incident log
kbot vitalsAutopoietic health check — memory, tools, token budgets
kbot synthesisWhat kbot knows — memory, patterns, insights
kbot insightsIntrospection — what kbot has learned about itself
kbot reflectSelf-reflection on recent sessions and decisions
kbot serveStart HTTP REST + SSE streaming server
kbot contribute <repo>Find good-first-issues and quick wins
kbot voiceText-to-speech output mode
kbot watchReal-time file analysis on change
kbot bootstrapOuter-loop project optimizer (visibility scoring)
kbot pluginsSearch, install, update community plugins
kbot modelsList, pull, remove, catalog local models
kbot forge search <q>Search the Forge Registry for community tools
kbot ide mcpStart MCP server for IDEs
kbot helpQuick reference — commands, agents, support channels
kbot doctor10-point health check
/agent <name>Switch specialist
/plan <task>Autonomous multi-step execution
/save / /resumeSession management
/shareShare conversation as GitHub Gist
/tutorialGuided walkthrough

Power-User Flags

kbot --architect "design the auth system"    # Architecture mode — plan before code
kbot --thinking "solve this hard problem"    # Extended reasoning with thinking budget
kbot --self-eval "write a parser"            # Self-evaluation loop — scores and retries
kbot --computer-use "fill out this form"     # Computer use — controls mouse and keyboard
kbot -p "query" > output.txt                 # Pipe mode — clean output for scripting

Under the Hood

kbot's agent loop runs 11 always-on cognition modules based on peer-reviewed research:

ModulePaperWhat it does
Free EnergyFriston, 2010Explore vs exploit decisions
Integrated InformationTononi, 2004Multi-agent synthesis quality (phi)
Predictive ProcessingClark, 2013Anticipates your next action
AutopoiesisMaturana & Varela, 1972Self-healing component monitoring
Strange LoopsHofstadter, 1979Meta-cognition depth tracking
Error CorrectionGates, 2023Targeted error classification + fix
Entropy ContextVopson, 2022Information decay detection
Godel LimitsGodel/UBCStuck-loop detection
SimulationWolpert, 2008Change impact prediction
Emergent SwarmProject Sid, 2024Dynamic role discovery
Cognitive InterferenceHernandez, 2026Measures constructive/destructive interference between modules

These aren't metaphors. They're TypeScript modules with paper citations in the headers. The interference between modules — not the modules themselves — is where intelligent behavior emerges. See the research paper.

Dream Mode

kbot dream

Offline memory consolidation. When you run kbot dream, kbot reviews recent sessions, extracts recurring patterns, strengthens high-value memory connections, and prunes stale or contradictory knowledge. Think of it as sleep for an AI agent — the work that makes tomorrow's sessions faster and more accurate.

  • Pattern extraction — identifies recurring tool sequences, user preferences, and project conventions
  • Memory pruning — removes outdated facts and conflicting entries
  • Skill strengthening — reinforces Bayesian skill ratings based on real outcomes
  • Knowledge synthesis — connects isolated learnings into higher-level insights
  • Runs fully local — no API calls, no data leaves your machine

Meta-Agent

kbot meta

Self-referential self-improvement. Inspired by Meta's HyperAgents paper (arXiv 2603.19461), the Meta-Agent implements a two-agent architecture:

  • Task agents solve problems (the 35 specialists you already use)
  • The Meta-Agent observes their performance, identifies weaknesses, and improves them

The improvement loop runs automatically:

  • Observe — records success/failure, duration, cost, and tool usage for every task
  • Analyze — builds performance profiles per agent, identifies failure patterns
  • Propose — generates targeted improvements (prompt rewrites, tool pre-selection, routing changes)
  • Apply — auto-applies low-risk improvements (routing, tool selection); flags high-risk ones for review
  • Measure — compares before/after performance and reverts regressions

Unlike HyperAgents (CC BY-NC-SA, non-commercial license), kbot is MIT — the only self-improving agent framework that companies can actually deploy in production.

kbot meta              # Run one improvement cycle
kbot meta stats        # View cycle count, observations, active improvements
kbot meta history      # Review all past improvements

Claude Code Plugin

kbot integrates directly with Claude Code as a teammate provider. Register kbot's specialists so Claude Code can delegate tasks to the right expert:

import { registerTeammates, delegateToTeammate } from '@kernel.chat/kbot'

// Get teammate definitions for all 9 core specialists
const teammates = registerTeammates()
// → [{ name: 'kernel', model: 'sonnet', ... }, { name: 'coder', ... }, ...]

// Delegate a task to a specific specialist
const result = await delegateToTeammate('guardian', 'audit src/auth.ts for security issues')
console.log(result.content)   // security analysis
console.log(result.toolCalls) // tools used (dep_audit, secret_scan, etc.)

Each teammate definition includes:

  • name — agent identifier (kernel, coder, researcher, writer, analyst, guardian, aesthete, curator, strategist)
  • modelopus for complex reasoning agents (analyst, strategist, guardian, researcher), sonnet for fast agents
  • initialPrompt — the specialist's full system prompt
  • tools — preferred tool list for the specialist's domain

Voice Mode

kbot voice

Full voice loop — speak your tasks, hear the results. Voice mode chains speech-to-text input with text-to-speech output for hands-free agentic coding:

  • STT — Whisper-based transcription (local or API)
  • TTS — System speech synthesis (macOS say, Linux espeak, or cloud TTS)
  • Continuous — voice loop stays open between turns, no re-activation needed
  • Tool narration — kbot announces tool calls and results as it works

OpenClaw Integration

npm install @kernel.chat/kbot-openclaw

kbot as the brain for 50+ messaging channels. OpenClaw bridges kbot's agent loop to Discord, Slack, Telegram, WhatsApp, iMessage, email, Matrix, and more — one agent, every platform.

  • Channel-agnostic — same agent logic regardless of input source
  • Per-channel memory — separate conversation contexts per channel/user
  • Rate limiting — configurable per-platform rate limits
  • Media handling — images, files, and voice messages routed through kbot's multimodal pipeline

See @kernel.chat/kbot-openclaw on npm.

Security

kbot has two layers of security: protecting your projects and protecting itself.

Project Security (Cybersecurity Tools)

kbot --agent guardian "full security audit on this repo"
ToolWhat it does
dep_auditScans dependencies for known vulnerabilities (npm, pip, cargo, go)
secret_scanDetects leaked API keys, tokens, and credentials in source code
ssl_checkValidates SSL/TLS certificates, cipher suites, and protocol versions
headers_checkAudits HTTP security headers (CSP, HSTS, X-Frame-Options, etc.)
cve_lookupSearches the NVD database for CVEs by package, version, or keyword
port_scanScans open ports and identifies running services
owasp_checkTests for OWASP Top 10 vulnerabilities

Self-Defense System

kbot protects the integrity of its own memory, tools, and behavior:

  • HMAC Memory Integrity — Every memory file is signed. Tampered memories are detected and quarantined on read.
  • Prompt Injection Detection — Inputs are scanned for known injection patterns, jailbreak attempts, and adversarial prompts before processing.
  • Knowledge Sanitization — Learned patterns and forged tool definitions are sanitized before storage to prevent knowledge poisoning.
  • Forge Verification — Forged tools are cryptographically signed. Unsigned or modified tools are blocked from execution.
  • Anomaly Detection — Behavioral baselines are maintained. Statistical anomaly scoring flags unexpected tool usage, token spikes, or routing drift.
  • Incident Logging — All security events are recorded in a tamper-proof audit log. Review with kbot defense incidents.

Infrastructure Security

  • AES-256-CBC encrypted keys at rest — API keys and wallet private keys never stored in plaintext
  • Permission system — destructive operations (file delete, git push, wallet sends) require explicit confirmation
  • Tool execution timeouts — 5-minute cap with middleware pipeline; no runaway processes
  • Wallet transaction limits — configurable spend caps and confirmation gates for on-chain operations
  • Shell sandboxing — blocklist prevents dangerous commands; config files restricted to owner (chmod 600)
  • Local-only telemetry — session checkpoints and metrics never leave your machine
  • Open source (MIT) — audit the code yourself at github.com/isaacsight/kernel

Standalone Packages

Use kbot's brain without the full agent:

PackageWhat it does
@kernel.chat/skill-routerBayesian agent routing — TrueSkill-style, zero LLM calls
@kernel.chat/memory-tiersThree-tier memory: observations → reflections → identity
@kernel.chat/tool-forgeRuntime tool creation from structured definitions
@kernel.chat/prompt-evolverGEPA-style prompt self-optimization from execution traces
@kernel.chat/kbot-openclawOpenClaw plugin — kbot as brain for 50+ messaging channels

Need Help?

ChannelWhat it's for
kbot helpQuick reference — commands, agents, support links
kbot doctorDiagnose setup issues (Node version, API keys, models)
kbot tutorialGuided walkthrough — build something step by step
DiscordCommunity chat, questions, show & tell
GitHub IssuesBug reports & feature requests
support@kernel.chatEmail support (AI-assisted replies)

Inside the REPL, type /help for the full command list.

Contributing

See CONTRIBUTING.md for development setup, adding tools, and creating specialist agents.

Demos

Learning Engine — pattern extraction + skill routing kbot learning engine
Agent Routing — 35 specialists, auto-routed by intent kbot agent routing
Self-Defense — HMAC integrity, injection detection, audit kbot self-defense
Local AI — $0 inference, fully offline kbot local AI

License

MITkernel.chat group

Keywords

ai-agent

FAQs

Package last updated on 31 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts