Skip to main content
Glama
README.md
<div align="center">

<img src="docs/assets/mascot.png" alt="Kernl" width="180">

# Kernl

### Agent teams that do your work — on your own machine.

**Kernl is a self-hosted server that hands any LLM your real data — tasks, mail, calendar, finance, contacts — and runs teams of agents that act on it. No account. With a local model, nothing leaves the box.**

<p>
  <a href="https://github.com/fastslack/kernl/stargazers"><img src="https://img.shields.io/github/stars/fastslack/kernl?style=for-the-badge&logo=github&color=ffd700" alt="GitHub stars"></a>
  <a href="https://github.com/fastslack/kernl/releases"><img src="https://img.shields.io/github/v/release/fastslack/kernl?style=for-the-badge" alt="Latest release"></a>
  <a href="./LICENSE"><img src="https://img.shields.io/badge/license-Apache--2.0-blue?style=for-the-badge" alt="License"></a>
  <img src="https://img.shields.io/badge/MCP-native-6366f1?style=for-the-badge" alt="MCP native">
  <img src="https://img.shields.io/badge/self--hosted-000?style=for-the-badge" alt="Self-hosted">
</p>

<a href="#-install-in-one-line"><b>Install</b></a> · <a href="#-watch-them-work"><b>Watch them work</b></a> · <a href="#-why-kernl"><b>Why Kernl</b></a> · <a href="#-mcp-integration"><b>MCP integration</b></a> · <a href="https://lifekernl.com"><b>Website</b></a> · <a href="https://github.com/fastslack/kernl/discussions"><b>Discussions</b></a>

</div>

## 🎬 Watch them work

<div align="center">

<a href="https://lifekernl.com"><img src="docs/assets/office3d.png" alt="Kernl's 3D agent building: an isometric floor plan of fourteen offices with agent avatars at their desks, meeting rooms, a reception, free lots and a warehouse with loading docks" width="900"></a>

<sub><b>A real instance.</b> 84 agents across fourteen offices, plus a warehouse. Not a mockup and not a render — that is the <code>/agents-flow</code> view of a running Kernl, and the one-liner below gets you to it.</sub>

</div>

<!-- Captured from a running instance at /agents-flow with
     e2e/tests/readme-office3d-shot.json — rerun that suite to refresh the
     still, then copy the newest e2e/screenshots/readme-office3d-*.png over
     docs/assets/office3d.png. The scene takes ~40s to build, which is why the
     test waits on `.hq-search-btn` (it only exists once the world is mounted)
     instead of a fixed delay, and why it strips `.update-bar` before shooting:
     a version banner dates a screenshot the moment the next release ships.

     Caveat: the suite REPORTS A TIMEOUT even though it writes the screenshot
     correctly, about two minutes in. The run record comes back with zero
     actions and zero duration, so the runner is discarding the action log
     rather than the browser failing — the same "Test timed out after Nms" that
     dominates this project's e2e history. Judge the run by the PNG it leaves
     behind, not by its exit status.

     The README shows the still (office3d.png). The animated office3d.gif, no
     longer shown here, is rendered from the site repo's
     clips/kernl-office-16x9.mp4 (15s, 1920x1080). Note the crop: the source is a
     wide shot of the entire floor, and shrunk to fit a README column every agent
     label goes sub-legible and the DONE badges turn into specks — which defeats
     the point of showing it at all. The 2x centre crop keeps the labels and the
     badges readable, and the badges still land inside the cropped frame across
     all 15s.
       CROP="crop=960:540:480:270"
       ffmpeg -i clips/kernl-office-16x9.mp4 \
         -vf "$CROP,fps=12,scale=900:-1:flags=lanczos,palettegen=max_colors=128:stats_mode=diff" pal.png
       ffmpeg -i clips/kernl-office-16x9.mp4 -i pal.png \
         -lavfi "$CROP,fps=12,scale=900:-1:flags=lanczos[x];[x][1:v]paletteuse=dither=bayer:bayer_scale=3:diff_mode=rectangle" \
         docs/assets/office3d.gif
     That lands at ~1.9 MB, which still loads before a first-time visitor has
     finished reading the headline above it. -->

---

## ⚡ Install in one line

```bash
curl -fsSL https://raw.githubusercontent.com/fastslack/kernl/stable/install.sh | sh
```

Debian/Ubuntu, Fedora/RHEL and macOS. The same command installs *and* updates — it
reads the newest release and picks the build for your machine. On Windows, take the
`.msi` from [the latest release](https://github.com/fastslack/kernl/releases/latest).

→ Dashboard at **http://localhost:3086** · MCP endpoint at **http://localhost:3086/mcp**

Nothing to sign up for and no host paths to set. First run walks you through four
steps, and one of them is connecting an AI — NVIDIA is free by default, or pick from
eleven others, including local models through Ollama or LM Studio if you'd rather
nothing left the machine at all. Chat and agents stay off until you connect one; the
rest of the dashboard works either way.

<details>
<summary><b>Prefer Docker?</b> (the full stack in containers)</summary>

```bash
git clone https://github.com/fastslack/kernl.git
cd kernl
docker compose up -d --build

# Kernl generates an API token on first boot. Grab it:
docker compose exec kernel cat /app/data/.kernel-auth-token
```

Paste that token once into the dashboard's login screen and you're in — it's kept in
your browser and reused for every request. To pin your own instead, set
`KERNEL_AUTH_TOKEN` (`openssl rand -hex 32`) in `.env` before the first `up`. Key-free
web search comes bundled in this path; the graph brain is built into the kernel on every path.

To let the Filesystem Commander browse a folder of your machine, and to run
`claude_code` agents on your Claude Code login, set `KERNL_FS_ROOT` in `.env` and
add the host overlay — then name the same files on every later `compose` command:

```bash
docker compose -f docker-compose.yml -f docker-compose.host.yml up -d
```

**Already running 0.4.x in Docker?** Update with `scripts/kernl.sh update` (it pulls,
builds while the old kernel keeps serving, and recreates with the offices drained).
On its first start 0.5.0 moves your graph from Neo4j to the built-in one by itself:
it keeps serving from Neo4j while it copies, checks the counts and switches over
live. Leave Neo4j running until the log says `Graph upgrade: caught up with what
reached Neo4j during the copy`; after that
`scripts/kernl.sh stop neo4j` is safe and your data stays in its volume. The cinema
catalogue stays out of the graph now, which makes the copy seconds instead of an
hour on a large catalogue. To stay on Neo4j (for Graph Data Science), set
`KERNL_KEEP_NEO4J=1` first. Details in the [changelog](./CHANGELOG.md).

</details>

## Your AI is brilliant — and amnesiac.

Every conversation starts from zero. Your LLM can't see your tasks, read your inbox, check your budget, or remember what you told it yesterday. And the cloud "AI assistants" that promise to fix that? They want your entire life uploaded to *their* servers.

**Kernl fixes both.**

## What is Kernl?

Kernl is a **self-hosted** server that plugs your real life into **any** LLM through the [Model Context Protocol (MCP)](https://modelcontextprotocol.io) — tasks, contacts, email, finance, calendar, notes, health and more, behind one endpoint that Claude, Cursor or any MCP client can reach.

Then it goes past a data bridge: Kernl runs **agents** — autonomous teams (it calls them *offices*) that work in loops, call your tools, and finish jobs while you're away.

Kernl and your data live on **your machine**. The only thing that goes out is what the agents send to the LLM you pick, and with a local model (Ollama, LM Studio) nothing does.

<sub>For the depth, once you want a number: **103 tools** live on a fresh install, rising past **290** as you enable more of the **71 bundled modules**.</sub>

<div align="center"><sub><b>WORKS WITH</b></sub><br>Claude · Cursor · OpenAI · NVIDIA · Gemini · Ollama · <b>any MCP client</b></div>

## 💬 Talk to your life

Point your AI at Kernl and ask it things it could never do before:

> 💸 *"Did rent clear, and how much did I spend on food this month?"* — reads your finance module.
>
> 📥 *"Triage my inbox and draft replies to anything urgent."* — reads your email, writes the drafts.
>
> ✅ *"What's overdue, and what's due this week?"* — straight from your real tasks + calendar.
>
> 🤖 *"Spin up the dev office and clear the next three backlog items."* — launches an agent team that works on its own.

Real data. Real actions. On your machine — not in someone else's cloud.

## 🔥 Why Kernl

|  |  |
|---|---|
| 🔒 **Private by default** | Self-hosted. Your tasks, email and finances never touch someone else's cloud. |
| 🧠 **Real memory** | A built-in graph brain (Relate, embedded — no server to run) links every module and shares what your agents learn, so your AI finally *remembers*. |
| 🤖 **Agents that act** | Not a chatbot — autonomous *offices* that work in loops and use your tools. |
| 🔌 **Any LLM, any client** | NVIDIA (free), Gemini, Groq, OpenRouter, Anthropic, OpenAI, DeepSeek, Grok, MiniMax, Claude Code, or a local model via Ollama or LM Studio. Any MCP client connects. |
| 🧩 **Endlessly extensible** | Everything is a module. Ship your own as a portable `.kernl` package. |
| 📊 **103 tools installed, 71 modules bundled** | One surface for your whole life — not fifteen disconnected apps. Enable everything and you pass 290 tools. |

## ⚔️ Kernl vs. the usual options

|  | Cloud AI assistants | A single MCP server | "Second brain" apps | **Kernl** |
|---|:---:|:---:|:---:|:---:|
| Your data stays on your machine | ❌ | ✅ | ⚠️ | ✅ |
| Your real life — email, finance, tasks… | partial | one thing | ❌ | **71 modules** |
| Agents that *act*, not just chat | limited | ❌ | ❌ | ✅ |
| Works with any LLM & MCP client | ❌ | ✅ | ❌ | ✅ |
| Yours to extend & fork | ❌ | ⚠️ | ❌ | ✅ |

## 🧩 What's inside

**Your life, addressable by your AI** — tasks & projects, contacts/CRM, reminders, email (IMAP/SMTP), finance & budgets, calendar, notes, goals, health & training, shopping, travel, documents… 71 modules, every one exposed as MCP tools.

**A fleet of agents** — cooperating agents with chains, schedules and their own workspaces. Package a whole team as an installable `.kernl` *office*, and watch them work in a live **3D office view**.

**Pluggable everything**
- **LLM providers** — 12 built in, connected from Settings → AI; keys stored encrypted.
- **Sandbox drivers** — run agent code in Docker, CubeSandbox, or your own driver.
- **Channels** — WhatsApp, Telegram, Slack, email, Mattermost and webchat on one notification bus.

**Graph intelligence** — a built-in graph (Relate, in-process Cypher) for memory and shared agent learning; optional Neo4j + GDS for heavy graph analytics.

## 🔌 MCP integration

Kernl speaks MCP over **stdio** and **Streamable HTTP** at the same time, so every client reaches the same tools.

<details>
<summary><b>Claude Desktop / Cursor (stdio)</b></summary>

```json
{
  "mcpServers": {
    "kernl": {
      "command": "bun",
      "args": ["run", "bin/mcp-server.ts"],
      "cwd": "/absolute/path/to/kernl/services/kernel"
    }
  }
}
```
</details>

<details>
<summary><b>Any HTTP client</b></summary>

The MCP HTTP transport is at `http://localhost:3086/mcp` by default (the official Streamable HTTP spec).
</details>

## 🛠️ Build your own

An **extension** is a folder (or a packaged `.kernl`) with a `manifest.json` plus any of: a backend module (new MCP tools + HTTP routes), agents & offices, agent-scoped skills, a theme, a channel, or a sandbox driver.

Keep operator-specific material — named agents, your WhatsApp, regional scrapers — private under `services/kernel/assets/personal-agents/` (gitignored, ideal for a private submodule).

Full guide → [`docs/architecture/extension-points.md`](./docs/architecture/extension-points.md)

## 📦 More install options

<details>
<summary><b>Full stack — host-coupled mounts</b></summary>

WhatsApp no longer needs this: it is part of the standard `docker compose up -d`, which already runs the [mtwRequest](https://github.com/fastslack/mtwRequest) Rust server and the WhatsApp bridge, and the Linux, macOS and Windows packages bundle the same pair and run them as supervised children — no compose file needed there either. Either way, you link your phone from Settings → Channels → WhatsApp (QR or phone code) with nothing to configure. `docker-compose.full.yml` is only for building those two services from local source and for host-coupled mounts (so on-host `claude_code` agents can edit your sibling repos). Needs a few host paths in `.env`:

```bash
git clone https://github.com/fastslack/kernl.git
cd kernl
cp .env.example .env
$EDITOR .env   # set HOST_HOME, HOST_KERNEL_ROOT, HOST_PROJECTS_ROOT,
               # KERNEL_REQUEST_SRC, KERNEL_WHATSAPP_BRIDGE_SRC
docker compose -f docker-compose.full.yml up -d --build
```
</details>

<details>
<summary><b>Local dev — no Docker</b></summary>

```bash
git clone https://github.com/fastslack/kernl.git
cd kernl
bun install --cwd services/kernel   # requires bun >= 1.3
cp .env.example .env
bun run dev                # stdio MCP + HTTP router (delega a services/kernel)
```
</details>

## Requirements

**For the one-line install: none.** The package ships its own runtime — no Bun, no
Node, no Docker. A 64-bit Debian/Ubuntu, Fedora/RHEL or macOS machine is the whole list.

Only if you build from source or run the container stack instead:

- **Bun ≥ 1.3** (primary runtime) or **Node ≥ 20** — source installs.
- **Docker + Compose** — the container paths, and the only route to the full stack.
- **Neo4j 5.x + GDS** (optional — the graph is built in. Add it with
  `docker-compose.neo4j.yml` for Graph Data Science analytics; budget 1–2 GB of RAM).

## Configuration

Everything is environment-driven, and the install above needs **none of it** —
Kernl boots with working defaults either way. Copy `.env.example` to `.env`
only when you want to override something.

Two secrets are generated and persisted on first boot if you don't set them:

| Variable | If unset |
|---|---|
| `KERNEL_AUTH_TOKEN` | A random token is generated and stored as `data/.kernel-auth-token` (mode 600). The API requires it; the desktop launchers hand it to the browser they open, so you only type it when signing in from a second browser or another device. Print it with `kernl token` (Linux), `/Applications/Kernl.app/Contents/MacOS/kernl token` (macOS), or `type %LOCALAPPDATA%\Kernl\data\.kernel-auth-token` (Windows). `KERNEL_ALLOW_UNAUTH=1` runs open, but only ever on `127.0.0.1` — see [API_DOCS](docs/API_DOCS.md#authentication) for why that is still a worse trade than it looks. |
| `KERNEL_ENCRYPTION_KEY` | A random 32-byte key is generated and stored as `data/.kernel-encryption-key`. **Back this file up** — without it, encrypted secrets in the database are unrecoverable. |

The host-path variables (`HOST_HOME`, `HOST_KERNEL_ROOT`, `HOST_PROJECTS_ROOT`)
belong to the full stack in `docker-compose.full.yml`, not the default one.
Everything else — LLM keys, Neo4j creds, feature toggles — is documented inline
in `.env.example`.

## Scripts

| Command | What it does |
|---|---|
| `bun run dev` | Start the MCP server + HTTP router |
| `bun run wizard` | Interactive setup wizard |
| `bun run doctor` | Self-diagnostics (DB, providers, channels) |
| `bun test` | Run the test suite |
| `bun run build` | Bundle to `services/kernel/dist/` |
| `bun run reload` | Rebuild + restart the kernel container |

## Known limitations

Worth knowing before you commit your life to it. None of these are secret — we'd
rather you read them here than discover them at an awkward moment.

- **Single user.** One kernel, one person. There is user and password
  infrastructure inside, but no per-user data isolation: everyone who has the
  API token sees everything. Give each person their own instance; don't share
  one across a team. ([`docs/MULTI_USER.md`](./docs/MULTI_USER.md))
- **Updates are checked, never automatic.** Settings → About asks GitHub for the
  newest release (cached six hours) and can install it for you. Nothing happens
  unattended, and what "install" means depends on how you installed: an MSI
  install is upgraded by Windows' own installer (one UAC prompt, the progress
  bar you expect, Add/Remove Programs kept in step); a portable Windows or Linux
  copy is swapped in place, keeping the old one until the new one is running;
  and the rest update through their own channel — `dnf`/`apt` for the rpm and
  deb, `docker compose pull` for the stack, `git pull` from source. On macOS the
  button refuses while the build is unsigned, because Gatekeeper would not open
  the result: until the certificate is bought, that download is a manual one.
- **Installers are unsigned.** macOS needs right-click → Open the first time,
  Windows needs "More info → Run anyway". The signing pipeline is wired but the
  certificates aren't bought yet. Docker and source installs are unaffected.
- **Back it up yourself, and check the exit code.** `backup.sh` is solid and
  verifies its own output, but nothing runs it for you. See
  [`docs/DEPLOYMENT.md`](./docs/DEPLOYMENT.md).
- **Neo4j is hungry, and optional.** The built-in graph needs no server; the optional
  Neo4j (`docker-compose.neo4j.yml`) wants ~1–2 GB of RAM on its own.
- **No telemetry, which cuts both ways.** Nothing phones home, so nothing tells
  us when your install breaks. Bug reports are the only signal we get.

## Documentation

- [`docs/GETTING_STARTED.md`](./docs/GETTING_STARTED.md) — first-run walkthrough
- [`docs/ARCHITECTURE.md`](./docs/ARCHITECTURE.md) — the contributor map and the full system guide, in that order
- [`docs/API_DOCS.md`](./docs/API_DOCS.md) — HTTP + MCP surface reference
- [`docs/DEPLOYMENT.md`](./docs/DEPLOYMENT.md) — production deploys
- [`docs/CONTRIBUTING.md`](./docs/CONTRIBUTING.md) · [`docs/SECURITY.md`](./docs/SECURITY.md) · [`docs/PRIVACY.md`](./docs/PRIVACY.md)

## ⭐ Contributing & community

Kernl is Apache-2.0 and built in the open. **Star the repo** if it's useful, [open an issue](https://github.com/fastslack/kernl/issues) for bugs and ideas, and say hi in [Discussions](https://github.com/fastslack/kernl/discussions). Contributions welcome — see [`docs/CONTRIBUTING.md`](./docs/CONTRIBUTING.md).

## License & credits

Created and maintained by **[Matias Aguirre](https://github.com/fastslack)** — a **Matware** project. See [`AUTHORS`](./AUTHORS) and [`NOTICE`](./NOTICE).

Released under the **Apache License 2.0** — fork it, build commercial plugins on top, redistribute, modify. © 2026 Matware.

TDQS

C2.9/5.0

Scored across 153 tools

Disambiguation2/5

Multiple tool families overlap heavily: four separate install paths (kernel_marketplace_install, kernel_store_install, kernel_marketplace_catalog_install, kernel_extensions_install_bundle), and recall is split across kernel_brain_recall, kernel_brain_ask and kernel_chat_recall. New agents/offices can be created via kernel_agents_create, kernel_agents_flows_create and kernel_office_create, and there are four browse tools for what look like the same catalog. Descriptions are long and helpful individually, but at 153 tools the boundaries between families are hard to hold in context.

Naming Consistency3/5

There is a consistent kernel_ prefix and mostly snake_case names, but within that the conventions drift: some are noun-ish (kernel_today_card, kernel_dashboard_morning, kernel_brain_stats) and others verb_noun. The naming is also inconsistent at the domain level, with kernel_kernl_bugs_list next to kernel_kernl_bug_report (and 'kernl' vs 'kernel' spelled two ways).

Tool Count1/5

153 tools for a single server is far past any reasonable context budget and forces dependence on kernel_tool_search just to cope. Many entries are near-duplicates or thin wrappers (four install tools, three office creation paths), so the count does not reflect earned surface area.

Completeness3/5

Coverage is broad across memory, graph, agents, projects, extensions and marketplace, and each family tends to have list/get/create/update/delete style operations. But the surface is uneven — some areas (extensions, marketplace) are over-served while others (chat episode delete, project update/delete, outbox lifecycle beyond propose/list) have visible gaps.

Maintenance

ActivityActive
ResponsivenessNo recent community issues