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

@kernel.chat/kbot

Open-source terminal AI agent. 100+ specialist skills, 35 specialist agents, 20 providers. Dreams, learns, watches your system. Controls your phone. Fully local, fully sovereign. MIT. v4.0 — evidence-based curation.

Source
npmnpm
Version
4.0.0
Version published
Weekly downloads
589
Maintainers
1
Weekly downloads
 
Created
Source

kbot

kbot
Open-source terminal AI agent. 100+ specialist skills. 35 specialist agents. 20 providers. Dreams, learns, watches your system, controls your phone. $0 local.

kbot demo

CI npm version npm downloads MIT License kernel.chat Discord kbot MCP server

npm install -g @kernel.chat/kbot

Why kbot?

Most terminal AI agents lock you into one provider, one model, one way of working. kbot doesn't.

  • 20 providers, zero lock-in — Claude, GPT, Gemini, Grok, DeepSeek, Groq, Mistral, SambaNova, Cerebras, OpenRouter, and more. Switch with one command.
  • Runs fully offline — Embedded llama.cpp, Ollama, LM Studio, or Jan. $0, fully private.
  • Learns your patterns — Bayesian skill ratings + pattern extraction. Gets faster over time.
  • 35 specialist agents — auto-routes your request to the right expert (coder, researcher, writer, guardian, quant, and 30 more). Run any agent manually: kbot --agent <id> "<prompt>". List them: kbot agents.
  • 100+ specialist skills — files, bash, git, GitHub, web search, deploy, database, game dev, VFX, research, science, finance, security, music production, iPhone control, and more.
  • v4.0 evidence-based curation — went from 670 skills to ~100. Every kept skill has telemetry, agent reference, or test coverage. Everything else moved to plugins.
  • Programmatic SDK — use kbot as a library in your own apps.
  • MCP server built in — plug kbot into Claude Code, Cursor, VS Code, Zed, or Neovim as a tool provider.

Use with Claude Code / Cursor / Zed

kbot is designed to compound with your existing AI editor, not replace it. One command wires everything up — MCP server config + a Claude Code skill that pre-authorizes the integration so safety filters don't refuse legitimate kbot calls.

kbot setup-claude-code   # wires ~/.claude/settings.json + copies kbot skill
kbot setup-cursor        # wires Cursor's MCP config
kbot setup-zed           # wires Zed's MCP config
kbot setup-all           # all three at once

Once wired, your editor can call kbot's full suite as mcp__kbot__* tools (and the local-Ollama subset as mcp__kbot-local__*). Or skip the middleman entirely and run kbot direct: kbot "<prompt>", kbot --agent <id> "<prompt>", kbot agents.

Highlights

Dream Engine — Your AI Remembers You

After each session, kbot "dreams" — consolidating what it learned about you into durable insights using local Ollama models. $0 cost. Insights feed back into future sessions automatically.

kbot dream run        # Trigger consolidation
kbot dream status     # See what kbot learned
kbot dream journal    # Full insight history
kbot dream search     # Find specific memories

7-tier memory: pattern cache -> solution index -> user profile -> dream journal -> passive scanner -> music production -> desktop behavior. All tiers feed each other bidirectionally through the dream engine. Dream insights automatically evolve kbot's prompts so it gets better at being your specific tool.

Always-On System Manager

kbot runs 24/7 in the background, managing your entire development environment:

kbot watchdog             # Service dashboard — CPU, RAM, disk, all services
kbot wd --restart email   # Restart a crashed service
kbot dream status         # What kbot learned about you
  • Service watchdog — health-checks all background services, auto-restarts crashes
  • Morning briefing — daily email with downloads, stars, emails, dream insights, service health
  • Behavior learning — observes which apps you use and when, dreams about your workflow patterns
  • Companion memory — email agent remembers every user's preferences, goals, and conversation history
  • Proactive follow-ups — checks in with users who go quiet, referencing their specific context

Your Buddy — Terminal Companion

Every kbot user gets a unique ASCII buddy that evolves with them:

  [=====]       /\  /\       {o,o}       /\_/\
  |[o o]|      (  ..  )      |)__)      ( o.o )
  |  _  |       )    (       -"-"-       > ^ <
  |_____|      (______)\     -|-|-      (_/|\_)
   || ||         || ||      _// \\_       | |
  Robot          Fox          Owl         Cat
  • 8 species — deterministic based on your machine. Same user = same buddy always.
  • 4 evolution levels — levels up with XP from sessions, dreams, tool usage
  • 18 achievements — First Dream, Centurion, Tool Master, Night Owl, and more
  • Dream narration — buddy tells you what it dreamed on startup
  • Chat modekbot buddy chat to talk directly to your buddy via local Ollama ($0)
  • Leaderboardkernel.chat/#/leaderboard

iPhone Control

Control your iPhone from the terminal:

kbot phone_message --to "mom" --message "on my way"   # Send iMessage
kbot phone_notify                                       # Read notifications
kbot phone_shortcut --name "Morning Routine"            # Run Shortcuts
kbot phone_call --number "555-1234"                      # FaceTime call
kbot phone_clipboard --action write --text "hello"      # Universal Clipboard

Music Production — Ableton Live Integration

kbot produce_beat --genre trap --instruments roland     # Full beat in Ableton
kbot generate_drum_pattern --genre house --bpm 124      # MIDI drum pattern
kbot music_idea "late night drive through Tokyo"        # Creative blueprint
kbot ableton_load_effect --track 2 --name "Saturator"   # Load any plugin

Programmatic control of Ableton Live 12 — create tracks, load plugins (including Roland Cloud, Serum 2), write MIDI, set device parameters, fire clips. All from the terminal.

Financial Analysis

kbot market_analysis --ticker AAPL         # 5-perspective coordinated analysis
kbot portfolio_review --holdings '[...]'   # MAGI impact, risk scoring
kbot market_briefing                       # Morning market summary

Cyber Threat Intelligence

kbot threat_feed                           # Latest CVEs matched to your stack
kbot ioc_check --indicator "1.2.3.4"      # Check IPs/domains/hashes
kbot attack_surface_scan --domain x.com    # Passive recon + security headers
kbot incident_response --type ransomware   # Generate IR playbook

Design From Your Terminal

kbot design "a minimal pitch deck cover for our product" --kind deck --pdf --open
kbot design "landing page hero with our brand colors" --kind page
kbot design "interactive prototype of a chat inbox" --kind prototype

Local-first alternative to Anthropic's Claude Design. kbot reads your repo's CSS design tokens, typography, and component patterns, then generates a single complete HTML file — no external deps, mobile-first, a11y-clean — that matches your visual system. Optional Playwright-backed PDF export. Runs on your local model at $0, ships with @kernel.chat/kbot. No subscription, no upload, no cloud.

Audit Any Repo in One Command

kbot audit facebook/react
kbot audit --share vercel/next.js   # Creates a public Gist
kbot audit --badge your/repo        # Badge for your README

Checks security, documentation, code quality, CI/CD, community health, and DevOps. Scored out of 100, graded A-F. Add the badge to your README.

How it compares

kbotClaude CodeCodex CLIAiderOpenCode
AI providers2011675+
Specialist agents350000
Built-in skills100+~20~15~10~15
Science skillsincluded0000
Memory system7-tier bidirectionalFile-basedNoNoNo
Dream engineYes ($0 local)Cloud APINoNoNo
Service watchdogYesNoNoNoNo
Behavior learningYesNoNoNoNo
Buddy companionYes (8 species)NoNoNoNo
iPhone controlYesNoNoNoNo
Music productionAbleton LiveNoNoNoNo
Visual designkbot design (local, $0)Separate Claude Design subscriptionNoNoNo
Financial analysisMulti-agentNoNoNoNo
Threat intelligenceYesNoNoNoNo
Buddy leaderboardkernel.chatNoNoNoNo
Offline modeEmbedded + OllamaNoNoOllamaOllama
SDKYesNoYesNoNo
MCP serverYesN/ANoNoNo
Web companionkernel.chatNoNoNoNo
Open sourceMITSource availableApache 2.0Apache 2.0MIT
CostBYOK / $0 local$20+/moBYOKBYOKBYOK

Quick Start

# Install globally
npm install -g @kernel.chat/kbot

# Or run directly (no install)
npx @kernel.chat/kbot

# Or use the install script (auto-installs Node.js if needed)
curl -fsSL https://kernel.chat/install.sh | bash
# Interactive mode
kbot

# One-shot
kbot "explain this codebase"
kbot "fix the auth bug in src/auth.ts"
kbot "create a Dockerfile for this project"

# Pipe mode (for scripting)
kbot -p "generate a migration for user roles" > migration.sql

# Use local models (free, no API key)
kbot local

# Set up your API key
kbot auth

Specialists

kbot auto-routes to the right agent for each task. Or pick one with --agent <name>.

Agents
Corekernel, researcher, coder, writer, analyst
Extendedaesthete, guardian, curator, strategist
Domaininfrastructure, quant, investigator, oracle, chronist, sage, communicator, adapter
Presetsclaude-code, cursor, copilot, creative, developer

100+ Specialist Skills

As of v4.0, kbot ships ~100 curated skills (down from 670 — every kept skill has telemetry, agent reference, or test coverage). The rest are available as plugins.

CategoryExamples
Files & Coderead, write, glob, grep, lint, 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
Qualitylint (ESLint/Biome/Clippy), test (Vitest/Jest/pytest), deps audit, formatting
DeployVercel, Netlify, Cloudflare Workers/Pages, Fly.io, Railway
DatabasePostgres, MySQL, SQLite queries, Prisma, ER diagrams, seed data
ContainersDocker build/run/compose, Terraform
Creativep5.js generative art, GLSL shaders, SVG patterns, design variants
VFXGLSL shaders, FFmpeg, ImageMagick, Blender, procedural textures
Game Dev16 tools for Godot, Unity, Unreal, Bevy, Phaser, Three.js, PlayCanvas, Defold
Trainingdataset prep, fine-tuning, evaluation, model export
Socialpost to X, LinkedIn, Bluesky, Mastodon — single posts and threads
SandboxDocker sandboxes, 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
Memorypersistent memory save/search/update across sessions
MCPmarketplace search/install, 20 bundled servers
IDEMCP server, ACP server, LSP bridge
Forgecreate tools at runtime, publish to registry, install from registry
Metasubagents, worktrees, planner, sessions, checkpoints, self-eval
Science & Mathsymbolic compute, matrix ops, FFT, ODEs, probability, optimization, graph theory, OEIS
Physicsorbital mechanics, circuits, signal processing, particles (PDG), relativity, quantum simulator, beam analysis, fluid dynamics
ChemistryPubChem compounds, reactions, periodic table (118 elements), spectroscopy, stoichiometry, thermodynamics
BiologyPubMed, gene lookup, protein/PDB, BLAST, drug/ChEMBL, pathways, taxonomy, clinical trials
Earth & Climateearthquakes/USGS, climate/NOAA, satellite imagery, geology, ocean, air quality, volcanoes, water resources
Neurosciencebrain atlas, EEG analysis, cognitive models, neural simulation, connectome, psychophysics
Social Sciencepsychometrics, game theory, econometrics, social network analysis, survey design, voting systems
Humanitiescorpus analysis, formal logic, argument mapping, ethics frameworks, historical timelines, stylometry
Health & EpidemiologySIR/SEIR models, epidemiology calculations, disease surveillance, nutrition, vaccination modeling
Financemarket data, technical analysis, paper trading, DeFi yields, wallet & swaps, stock screener, sentiment
Cybersecuritydep_audit, secret_scan, ssl_check, headers_check, cve_lookup, port_scan, owasp_check
Self-Defensememory HMAC, prompt injection detection, knowledge sanitization, forge verification, anomaly detection

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

Set any provider's env var and kbot auto-detects it. Or run kbot auth for interactive setup.

SDK

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

const result = await agent.run("fix the auth bug", { agent: 'coder' })
console.log(result.content)

for await (const event of agent.stream("explain this code")) {
  if (event.type === 'content_delta') process.stdout.write(event.text)
}

Architecture

graph TD
    A[User Message] --> B{Local-first check}
    B -->|file, git, grep| C[Instant response — $0]
    B -->|Needs AI| D{Complexity detection}
    D -->|Simple| E[Bayesian Router → Specialist]
    D -->|Multi-step| F[Autonomous Planner]
    E --> G[Provider API + Tool Loop]
    F --> G
    G --> H{100+ Skills}
    H --> I[File ops, bash, git, GitHub, search, deploy, DB, game dev...]
    G --> J[Learning Engine]
    J --> K[Patterns + Solutions + User Profile]
    G --> L[Checkpointing]
    L --> M[Resume from last tool call]

MCP Server

kbot MCP server

Use kbot as a tool provider inside any MCP-compatible IDE:

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

Or run the MCP server via Docker:

docker run -i --rm kernelchat/kbot ide mcp

Works with Claude Code, Cursor, VS Code, Windsurf, Zed, Neovim.

Commands

CommandWhat it does
kbotInteractive REPL
kbot "prompt"One-shot execution
kbot authConfigure API key
kbot localUse local AI (Ollama, embedded, LM Studio, Jan)
kbot serveStart HTTP REST + SSE streaming server
kbot audit <repo>Security + quality audit of any GitHub repo (A-F grade)
kbot dream runConsolidate session learnings into durable insights
kbot dream statusSee what kbot has learned about you
kbot dream journalFull insight history
kbot dream searchFind specific memories
kbot watchdogSystem dashboard — services, CPU, RAM, disk, Ollama, dreams
kbot wd --restart <svc>Restart a crashed background service
kbot contribute <repo>Find good-first-issues and quick wins
kbot shareShare conversation as GitHub Gist
kbot pairFile watcher with auto-analysis
kbot teamMulti-agent TCP collaboration
kbot recordTerminal session recording (SVG, GIF, asciicast)
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 changelogGenerate changelog from git history
kbot completionsShell completions (bash, zsh, fish)
kbot cloudSync learning data to kernel.chat
kbot ide mcpStart MCP server for IDEs
kbot doctor10-point health check

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

Security

  • API keys encrypted at rest (AES-256-CBC)
  • Destructive operations require confirmation
  • Shell commands sandboxed with blocklist
  • Tool execution timeout (5 min) with middleware pipeline
  • Config files restricted to owner (chmod 600)
  • 0 P0/P1 security issues (audited March 2026)

Development

cd packages/kbot
npm install
npm run dev          # Run in dev mode
npm run build        # Compile TypeScript
npm run test         # Run tests (vitest)

Web Companion — kernel.chat

kbot has a web companion at kernel.chat — same agents, persistent memory, and a visual interface. Free to use (20 messages/day).

Community

License

MITkernel.chat group

Keywords

ai-agent

FAQs

Package last updated on 28 Apr 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