# Repository Briefing: Bitterbot-AI/bitterbot-desktop
> Source: https://repoforai.com/repo/Bitterbot-AI/bitterbot-desktop (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/Bitterbot-AI/bitterbot-desktop
- **Official Docs / Website**: https://bitterbot.ai
- **Category**: Agents & Frameworks (智能体与框架)
- **Primary Language**: TypeScript
- **License**: MIT
- **Engineering Health**: A+ (96/100 · Maintenance 35/35 · Adoption 21/25 · Releases 20/20 · License 20/20)
- **Latest Release**: v1.15.0 (2026-11-27) — https://github.com/Bitterbot-AI/bitterbot-desktop/releases
- **Review Snapshot**: 2026-12-02
- **Deployment / Stack Signals**: Docker, Self-Hosted, Local AI, CLI
- **Momentum**: 2,482 ★ total (+0 24h / +3 7d) · 419 forks
- **Topics**: `a2a-protocol`, `agent-economy`, `agent-memory`, `ai-agent`, `chatbot`, `cognitive-architecture`, `decentralized-ai`, `desktop-app`, `dream-engine`, `local-first`, `multi-channel`, `open-source`
- **When to Use**: Best for: Individuals or small teams who want a self-hosted project assistant with inspectable memory, recurring reports, and an ongoing presence in their existing chat channels. Skip if: You need a fully managed service, have no operator to maintain tool permissions and upgrades, or require an audited payment workflow.

## Overview
```text
### Architecture & Core Mechanics
Bitterbot is a TypeScript personal agent built around a long-running gateway. The gateway serves the browser Control UI and keeps scheduled and durable work running even when the UI is closed. The `bitterbot` CLI is declared in `package.json`, and `bitterbot.mjs` is used for in-container onboarding. Dependencies include `@mariozechner/pi-agent-core`, the Anthropic and Bedrock SDKs, and SDKs for MCP and ACP. Browser automation uses Playwright Chromium. The tree separates `extensions/`, `skills/`, and `orchestrator/`; the P2P orchestrator has a Rust build path.

Memory, identity, and skills live in local files and SQLite. A compact facts ledger puts core facts in context directly; semantic retrieval and a typed knowledge graph cover longer histories, with Deep Recall available for histories beyond a single context window. Dream cycles consolidate memory and turn observed outcomes into candidate skills. Candidates are compared with the incumbent on held-out tasks before canary rollout, and monitoring can reverse a promotion. ACP, optional A2A, and a separately enabled OpenAI-compatible endpoint expose different integration paths.

### Key Capabilities & Differentiators
The Control UI, WhatsApp, Telegram, Discord, Signal, Slack, and email are entry points to an agent that can browse, execute code, work with files, and run scheduled tasks while the gateway stays up. Setup offers Anthropic, OpenAI, Google Gemini, and OpenRouter; Bedrock, Together, Venice, Ollama, and vLLM are additional options. The Control UI can switch models per conversation, and usage costs are tracked per model, with estimates distinguished from known prices.

The memory system weighs corroboration and recency and retains superseded facts. Version 1.15.0 adds standing practices: repeated omissions can prompt a one-time confirmation, after which a scoped, editable practice is displayed when applied. Operators can inspect skill-validation evidence in the Evolution tab or with `bitterbot skills evidence`. Circles serves shared planning and consent-gated requests between independently operated nodes; signed P2P skill exchange separately quarantines and validates incoming skills and supports retractions.

### Trade-offs & Limitations
Compared with a managed assistant, Bitterbot gives operators inspectable state and a choice of inference providers, but also makes them responsible for backups, credentials, channel permissions, uptime, and upgrades. Compared with a simple local chat UI, it adds scheduled work, tool execution, and learning, all of which broaden the permission surface and increase resource use. With a hosted model, budget for calls from background work as well as chat; with local inference, measure memory or VRAM pressure and latency alongside Chromium and concurrent jobs.

Production skill evolution is on by default and can be disabled. Passing the evaluation suite supports promotion on the tasks tested, not reliability on unrelated work. Circles is also enabled by default, though incoming peer messages cannot invoke tools or enter searchable memory. Member removal propagates only as other nodes apply it, so do not assume immediate revocation across a Circle. Keep the wallet and marketplace disabled unless needed: payment features are opt-in and have not had a third-party audit.

### Hardware & Deployment Guide
The signed installer bundles Node for macOS on Apple silicon or Intel and Linux on x64 or arm64. Windows installation runs inside WSL2; put the checkout on the Linux filesystem. The npm launcher is documented for Node 18+, but source development requires Node 22.12+ and pnpm, plus Playwright Chromium for browser automation. Build the P2P orchestrator with Rust if no prebuilt binary is available. Ollama or vLLM can keep inference local; hosted models, web search, and external messaging still need their respective connectivity when enabled.

For servers, use the Compose file from a release; its entrypoint requires image 1.5.0 or later. Start it with `docker compose up -d`, then retrieve the first-run setup link with `docker compose logs bitterbot-gateway`. The link expires after 30 minutes, and the UI is on `127.0.0.1:19001`; use SSH forwarding for remote access rather than exposing the port directly. Back up `~/.bitterbot` on local installs and preserve the configured persistent state in Docker. Use a patched release: v1.14.2 fixed a high-severity Deep Recall issue affecting v1.0.0–v1.14.1, and v1.15.0 adds standing practices.
```

## Key Capabilities
```text
- Local state: Files and SQLite hold memory, identity, and skills; a canonical facts ledger can supersede a fact without erasing its history.
- Standing practices: v1.15.0 turns repeated corrections into confirmed, editable practices scoped to a request type.
- Background scheduling: Dream cycles consolidate memory and prepare briefs, gated by new input, idle time, and budgets.
- Skill promotion: Held-out comparisons and triggering, regression, and cost checks precede canary rollout; monitoring can roll back a promotion.
- Model routing: Switch models per conversation, with hosted providers and local inference via Ollama or vLLM.
- Peer boundaries: Circles treats peer messages as untrusted input; P2P skill exchange separately uses signatures, receiver quarantine, validation, and retractions.
```

## Quick Start / Clone
```bash
curl -fsSL https://github.com/Bitterbot-AI/bitterbot-desktop/releases/latest/download/install.sh | bash
```
