An intelligent assistant whose thinking and action logic match how real people work.
- Conversation is a communication record. The assistant's execution trail is its own working data and need not live in the user chat by default—same as collaborating with a person: you assign the work, they deliver the outcome; you can ask about the process, but they do not need to dump every step on you, and you do not need to read it all.
- Dual loops separate reply from execution, matching how people work: after an instruction, the assistant replies first; if work is needed, it starts an independent task and returns to standby. When the task finishes, the result comes back to the assistant, which summarizes and replies. Throughout, the assistant stays responsive; tasks run independently without blocking the conversation and report progress by status.
Build a team. Only for you.
kepcup.app · Docs · v0.1.0 release notes · GPL-3.0
KepCup is an OpenMind product.
OpenMind means opening the thinking—product intent, the hard problems themselves, and how the modules fit together—not just the source tree. In the AI era, that goes further than "just open code": anyone can rebuild these ideas, or fold them into their own product, with coding models and agents. KepCup is free to use, and the design itself is deliberately reusable.
One deliberate exception: the team server (apps/team-server — member accounts, team collaboration, admin console) is a closed-source commercial component. This repository only carries a stub README at that path; the real code lives in a private repository nested there for development, while the client side (desktop) and the shared contracts stay open. See docs/design/63-closed-source-team-server.md and apps/team-server/README.md.
KepCup is an open-source Personal Agent in multi-Bot team form. You create Bots, give them permissions and a working directory, and they collaborate with you—and with each other—without handing your data to a host you do not control. As a multi-Bot assistant you own end to end, it can stand in for hosted teammate products such as Grok Bot, Muse, or Dot.
You choose how it runs—local run or private / self-hosted deploy:
| When… | Choose… | What that looks like |
|---|---|---|
| You mainly use it on one computer, offline-friendly, and are fine opening the app when you need it | Local run | Install the desktop app (or pnpm dev while developing). Bots, memory, mail, and schedules live on that machine. |
| You want the team always online—schedules, mail, and replies while the laptop is closed or you're on the phone | Private deploy | Run the headless server on your NAS or cloud VPS. Any browser / PWA signs in to that same instance. Data stays on infrastructure you control; the desktop does not need to stay awake. |
These are two run modes of the same product and the same core—not a separate “cloud KepCup.” Details for the always-on path: Headless server below, plus apps/server/README.md.
Bots are designed to be like real people. Collaboration should feel human: shared context, clear roles, and work that actually gets done—not endless Bot small talk.
- Product & architecture decisions: docs/design/
- Engineering guidance: docs/dev/
- Release notes: docs/releases/
- Homepage: https://kepcup.app
- License: GPL-3.0
A Bot's behavior follows how real people work. Think about how you collaborate with a real person: if I were the one receiving your instructions, here is how I would behave:
- First I think through what you have asked. If the instruction is clear, I reply to you right away, then get to work. If it is unclear or needs other resources, I still reply first and work out the coordination with you.
- Only after that first round of communication do I start working. On a team I can call on unlimited resources: I just need to provide the right plan and standards, and the executors actually carry out the task.
- After that I keep waiting for your next instruction and can take on other tasks. Tasks I have sent out come back with results when they finish, and I then report the outcome back to you.
Throughout this flow I have two responsibilities: 1. communicate with you; 2. produce plans and drive task execution. In KepCup's design, these two responsibilities are implemented as two loops, each calling the LLM. Every incoming message starts a reply loop; task loops start on demand. All loops run independently, powered underneath by a built-in agent (currently Pi Agent) or third-party agents (Claude Code, Codex, OpenCode, Cursor, and others via ACP). Context stays strictly focused and is designed to stay well clear of the context window limits of mainstream models.
sequenceDiagram
participant U as User
participant Board as Message list<br/>(distilled board)
participant Reply as Reply loop
participant Task as Task loop
U->>Board: Send message
Board->>Reply: Start independent reply loop
Note over Reply: Selective context injection<br/>(not full cumulative history)
Reply->>Task: Start / route work on demand
Note over Task: Tools, files, state<br/>stay within the task
Task-->>Reply: Result / settlement
Reply-->>Board: Distilled reply posted to board
Board-->>U: Visible update
A conversation with a Bot is just a message list for communication: what the user asked, what the key information was, what the final result was—the content itself is lightweight. And when the reply loop starts, the messages it injects are only a few of the most recent messages plus a few of the most relevant messages from history; the full message history is never injected.
flowchart TB
Send["User sends a message"]
subgraph List["Message list"]
direction TB
Gap1["…"]
Rel1["Relevant"]
Gap2["…"]
Rel2["Relevant"]
Gap3["…"]
Rel3["Relevant"]
Tail3["3rd from last"]
Tail2["2nd from last"]
Newest["Newest"]
Gap1 --- Rel1 --- Gap2 --- Rel2 --- Gap3 --- Rel3 --- Tail3 --- Tail2 --- Newest
end
Scattered["3 relevant but non-contiguous messages"]
Recent["Last 3 messages"]
Context["Latest message + relevant past conversation"]
Dual["Dual-loop system"]
Send -->|Appended as the last item| Newest
Rel1 --> Scattered
Rel2 --> Scattered
Rel3 --> Scattered
Tail3 --> Recent
Tail2 --> Recent
Newest --> Recent
Scattered --> Context
Recent --> Context
Context -->|Injected into the Bot| Dual
classDef idle fill:#f4f4f5,stroke:#d4d4d8,color:#71717a
classDef related fill:#eff6ff,stroke:#2563eb,color:#1e3a8a
classDef recent fill:#fff7ed,stroke:#c2410c,color:#9a3412
class Gap1,Gap2,Gap3 idle
class Rel1,Rel2,Rel3 related
class Tail3,Tail2,Newest recent
Group chat is a human social need; Bots do not have that need. The real scenario is gathering several Bots with different responsibilities to achieve a set goal or maintain some state. It has three cores:
- Centralized communication — the user and multiple Bots share one message list
- Planning and collaboration — take in inbound information, whether from user input or automation triggers such as a new email: who executes it, and who needs to pick it up next
- Shared knowledge and delivery — shared wiki / knowledge
The shared message board, project wiki, and the first version of the board are ready; OKR / schedule planning are still on the roadmap. The product cares about orchestrating multiple Bots to collaborate at high quality, not Bot small talk. See docs/design/41-project-team.md.
- Dual-loop core
- Bot conversation logic
- Bots' internal communications
- Bot details (config, memory, skills, wiki, schedules)
- LLM provider configuration
- Multimodal I/O capability configuration
- Web
- Browser use
- Hardware sensor architecture + mic / camera
- User profile
- Third-party agents via ACP (Claude Code / Codex / Cursor / OpenCode)
- Extension Center — skills
- Extension Center — connections (Notion, Linear, Cloudflare, and more)
- Extension Center — MCP
- Extension Center — mail
- Bot on-demand use of Extension Center capabilities
- Bot authorization, sandbox, unattended mode, command allowlist
- Schedules — one-shot & recurring
- Bot micro-app widgets
- Special Bot — Butler (environment setup, create initial Bots)
- Workbench — Items (tasks assigned to Bots) & Memos (fleeting thoughts)
- Project teams — basics & communication
- Project teams — wiki
- Project teams — board (first version)
- Bot message protocol (Bot-to-Bot delegation)
- Plugin system (signed marketplace index, plugin package install, per-Bot / per-project enablement)
- Project teams — OKR
- Project teams — schedule & planning
Issues, discussions, and PRs are welcome—especially around:
- Better authorization — mid-execution confirmation interruptions happen too often; we want fewer interruptions while still blocking dangerous commands by default.
- Multimodal vendor APIs — every vendor does it differently; we want a unified abstraction layer.
- Project teams — beyond board / OKR / planning, what else should there be?
- Workbench — it should bring work together in one interface and reduce the mental load of "remembering which Bot / which team." What's missing, and what ideas do you have?
KepCup stands on many open-source projects and product inspirations. The acknowledgments below do not imply endorsement or affiliation by any trademark holder; logos and names belong to their respective owners.
Thanks to Grok Bot (xAI / Cursor product line) for the product inspiration—conversational Bots, the three-column layout, and a flat UI (see design decisions D46 and 12-ui-layout.md). KepCup is an independent implementation and is not an official derivative or affiliate of Grok Bot.
Electron · Svelte · TypeScript · Vite · Tailwind CSS · shadcn-svelte · TipTap · Lucide · pi · MCP · ACP · Anthropic Sandbox Runtime · SQLite · sqlite-vec · ONNX Runtime · Jina Embeddings v2 base-zh · Zod · electron-builder · MinerU · Nodemailer · es-git
| Project | Purpose |
|---|---|
| Electron | Desktop shell; Bot browser via webContents + CDP |
| Node.js | Runtime (engines.node ≥ 22.19) |
| TypeScript | Language across the repo |
| Vite + electron-vite | Desktop build & HMR |
| pnpm | Monorepo (pnpm@11.22.0) |
| electron-builder / electron-updater | Packaging & in-app updates |
(Chromium ships with Electron and is not listed separately.)
| Project | Purpose |
|---|---|
| Svelte 5 | Renderer UI |
| Tailwind CSS 4 | Styling |
| shadcn-svelte (+ bits-ui) | Component foundation |
| Lucide | Icons |
| TipTap | Composer / rich text |
| streamdown-svelte | Streaming Markdown |
| Paneforge | Resizable panes |
| mode-watcher / svelte-sonner | Theme & toasts |
| @pierre/diffs (+ Shiki) | Diff display |
| Project | Purpose |
|---|---|
pi (@earendil-works/pi-*) |
Built-in dual loop, tools & MCP wrapper |
ACP (@agentclientprotocol/sdk) |
External agent protocol |
MCP (@modelcontextprotocol/sdk) |
Tool servers & connected apps |
| Anthropic Sandbox Runtime | Default sandbox backend (srt) |
| ONNX Runtime | Local embedding inference (installed on demand) |
| Jina Embeddings v2 base-zh | Default local memory vectors (Apache-2.0) |
| Project | Purpose |
|---|---|
| SQLite (+ better-sqlite3-multiple-ciphers) | Encrypted local databases & FTS5 |
| sqlite-vec | Vector extension |
| es-git | Git operations for wiki / skills / checkpoints |
| @napi-rs/keyring | OS keychain for the DB master key |
| ImapFlow / Nodemailer / mailparser | Extension Center mail channel |
| Zod | Runtime validation & RPC contracts |
| birpc | Main process ↔ core RPC |
| undici | HTTP |
| MinerU | Document-parsing preset skill (AGPL-3.0; see NOTICE) |
| cron-parser; bash-parser + acorn; pino / ulid | Scheduling, command parsing, logging & IDs |
And to the maintainers of our transitive dependencies (ESLint / Prettier / Vitest / @types, and pure utility libraries such as clsx / tailwind-merge; Playwright is used for e2e, while the in-product browser is Electron CDP).
The products below are not npm dependencies. Users can install them locally and connect them to KepCup via ACP as optional peer CLIs (see docs/design/28-external-agents-acp.md):
- Claude Code
- Codex
- Cursor
- OpenCode
- DeepSeek Harness
The default sandbox is Anthropic Sandbox Runtime. Platforms can also opt into enhancement paths such as Lima (macOS), rootless Podman (Linux), or bubblewrap on Linux; these are guided by environment detection / docs and are not package dependencies of this repository. See docs/design/10-sandbox.md.
kepcup/
├── apps/desktop/ # Electron desktop app (local run)
├── apps/server/ # Headless server (private / self-hosted deploy, D102)
├── apps/website/ # Official marketing site (kepcup.app)
├── packages/core/ # Business logic & data (separate process)
├── packages/shared/ # Cross-process contracts & types
├── packages/testkit/ # Test infrastructure
├── docs/ # design / dev / guides / releases
└── infra/ # Cloudflare and related infrastructure
Details: docs/dev/01-conventions.md, docs/README.md.
Requires Node.js ≥ 22.19 and pnpm@11.22.0 (see root packageManager).
pnpm install
pnpm dev # build shared/core first, then start the desktop app
pnpm test # unit / integration (prefer targeted runs while iterating — see AGENTS.md)
pnpm test:e2e # Playwright e2e (@kepcup/desktop)Agent conventions: AGENTS.md.
When you pick private / self-hosted deploy (see What is KepCup), the same core (conversations, scheduler, mail, MCP, approvals, memory) runs as an always-on service on a NAS or cloud box (D102). Any device with a browser connects to that same data source—no multi-device sync dance, no “desktop must stay awake.” Sign-in is account + password (set once at first start; no per-device pairing), and there is no Docker—just Node.js ≥ 22.19.
Run from source:
pnpm install && pnpm -r build
# first run (interactive terminal) asks for an admin username & password
node apps/server/dist/cli.js
# LAN / NAS style (reachable from other devices):
node apps/server/dist/cli.js --host 0.0.0.0 --public-url ws://<your-ip>:8642Then open http://<host>:8642 in any browser, sign in, and finish the first-run wizard (model provider, butler Bot). Useful sub-commands: password (rotate — signs out all sessions), version. Common flags: --data-dir (default ~/.kepcup-server), --keystore file (for hosts without a system keychain), --auth pairing (device pairing instead of passwords), --relay <url> (outbound relay mode, no inbound port).
For deployment (systemd, TLS reverse proxy) and packaged installs — a single self-contained tarball from node scripts/pack-server.mjs, attached to GitHub Releases with every desktop release and usable both as npm i -g <tarball-url> and extract-and-run — see apps/server/README.md and the design doc docs/design/49-headless-server.md.
The root license is GPL-3.0. The MinerU skill vendored in the preset skills is redistributed separately under AGPL-3.0—see apps/desktop/resources/plugins/com.kepcup/starter-skills/NOTICE.md. A repository-wide NOTICE file is not yet published.

