Documentation
Everything you need to create, configure, and run kern agents.
Get Started
Install kern, create your first agent, and start chatting in under a minute.
Architecture
How kern's processes fit together — agents, web proxy, registry, auth, and service management.
Configuration
Agent config, environment variables, model selection, provider setup.
Commands
CLI reference — init, start, stop, restart, tui, web, proxy, install, logs, backup, restore, remove.
Interfaces
Terminal, web UI, Telegram, Slack — how agents connect to each channel.
Tools
Built-in tools — bash, read, write, edit, glob, grep, webfetch, websearch, pdf, image, render, message, recall.
Memory
How agents remember — files, recall, notes injection, and long-term context.
Context
How the prompt is built — system prompt, token budgets, segmentation, compression, inspection.
Caching
Prompt caching — three breakpoints, stable trim boundaries, provider differences, cost savings.
Media
Multi-modal support — images, PDFs, files. Vision pre-digest, content-addressed storage, inline rendering.
Sessions
Session lifecycle — JSONL storage, SQLite mirror, crash recovery, message persistence.
Pairing
User authentication — pairing codes, operator setup, access control.
Quick start: npm install -g kern-ai && kern init my-agent