Pillbox gives AI agents a structured, searchable memory that survives across sessions. Instead of relying on context windows and ad-hoc notes, the agent actively writes and retrieves knowledge as it works — decisions, bugs fixed, patterns discovered, personal conventions.
Modern AI agents are stateless by default. Every session starts from scratch. Pillbox solves this by giving the agent two types of persistent memory:
- Pills — project-specific knowledge. Tied to a codebase. Organized into work sessions.
- Capsules — personal, cross-project knowledge. Your conventions, workflow preferences, environment context, and long-term goals.
The agent writes knowledge proactively during work, and retrieves it at the start of new sessions. Over time, the agent builds a rich, searchable model of both the project and the person it's working with.
You install Pillbox once. From that point, the agent handles everything.
When you start working on a project, the agent opens a prescription and loads recent context from previous sessions — what was done, what was decided, what's pending. As work progresses, it saves relevant moments automatically: architectural decisions, bugs and their root causes, patterns established, non-obvious discoveries. When the session ends, it closes the prescription.
You never instruct the agent to remember something. It decides what matters, following the same instincts an experienced engineer would use when writing things down.
The result is an agent that feels like it was already there — one that remembers your codebase, your preferences, and your way of working.
| Concept | What it is |
|---|---|
| Bottle | A project. Maps a directory to a database. |
| Prescription | A work session within a bottle. Has a title describing the task. |
| Pill | A piece of project knowledge saved within a prescription. |
| Capsule | A piece of personal knowledge — global, not tied to any project. |
CLI and web interface fully localized in 6 languages: English, Spanish, French, German, Italian, and Portuguese. Auto-detected from your system locale.
Linux / macOS
curl -fsSL https://raw.githubusercontent.com/Kevinsillo/pillbox/main/install.sh | bashWindows (PowerShell)
irm https://raw.githubusercontent.com/Kevinsillo/pillbox/main/install.ps1 | iexThis installs:
pillboxbinary (Rust)pillbox-mcpMCP server- The Pillbox skill for your AI coding assistant
- The global database at
~/.pillbox/pillbox.db
See the installation guide for manual installation and platform-specific options.
1. Initialize a project
cd my-project
pillbox bottle init2. The agent takes it from here
The installer configures the MCP server automatically. Once connected, the agent opens prescriptions, saves pills, and retrieves context on its own — guided by the Pillbox skill.
pillbox status # Global status
pillbox serve start [--port N] # Start HTTP server
pillbox mcp install # Install MCP server
pillbox skill install # Install the Pillbox skill
pillbox bottle init # Initialize a projectFull reference → kevinsillo.github.io/pillbox-docs/reference/cli/
The web dashboard gives you a visual overview of any bottle: open prescriptions, recent pills with their compound tags, activity chart, and database size. Accessible at http://pillbox.local:4242 when the server is running.
Pillbox is split across four repositories that work together as a single system:
- pillbox — Rust binary: CLI, HTTP server, SQLite persistence, embedded WebUI
- pillbox-mcp — TypeScript MCP server, bridges the agent to the core via
pillbox exec - pillbox-skills — Skills for AI coding assistants
- pillbox-docs — Documentation and landing page
The MCP server communicates with the binary via pillbox exec — a JSON stdin/stdout dispatcher. All persistence lives in the Rust core; the MCP layer has no direct database dependency.
The web interface is built with Vite and embedded into the binary at compile time via rust-embed. Served at http://pillbox.local:4242 with no external dependencies.
PolyForm Noncommercial 1.0.0 — free for non-commercial use.

