Fast, MCP-native memory server. One database for documents, graph relationships, and vector search. Built for multi-agent teams tired of context waste.
Rill gives your agents a memory that survives between sessions — one place for the things worth remembering, the entities they're about, and how everything connects. Stand it up with a single Go binary and one database, point any MCP client at it, and browse it all in a fast dark-first web UI.
# Start SurrealDB
surreal start --user root --pass root surrealkv://data
# Build and run Rill
git clone https://github.com/jasondostal/rill.git
cd rill
go build -o rill ./cmd/rill
RILL_PORT=8080 ./rill serve
# Frontend (separate terminal, optional)
cd frontend && npm install && npm run dev -- --hostOpen http://localhost:5173/ — dashboard with memory growth chart, stats, and curation status.
services:
surrealdb:
image: surrealdb/surrealdb:v3.2.5
ports: ["8000:8000"]
command: start --user root --pass root surrealkv://data
volumes: [surreal_data:/data]
healthcheck:
test: ["CMD", "/surreal", "is-ready", "--endpoint", "ws://localhost:8000"]
interval: 5s
retries: 5
rill:
image: ghcr.io/jasondostal/rill:latest
ports: ["8080:8080"]
environment:
- RILL_PORT=8080
- SURREAL_URL=ws://surrealdb:8000
- SURREAL_USER=root
- SURREAL_PASS=root
depends_on:
surrealdb:
condition: service_healthy
volumes:
surreal_data:docker compose up -d
# First boot creates a default admin token — check logs:
docker compose logs rill | grep "default token created"Web UI — browse, search, and filter every memory; open any one to read, edit, or delete it inline. An Explore view renders the entity/memory graph so you can see how things connect. Cmd-K opens a global command palette with inline search, and the whole app is keyboard-first (↑↓/j/k to move, Enter to open, Esc to close). Dark-first with a live-tunable OKLCH theme system.
CLI — a single authenticated binary for the terminal:
go build -o rill ./cmd/rill
export RILL_HOST=https://rill.example.com # or http://localhost:8080
export RILL_TOKEN=rill_your_token_here
rill orient # the rendered orient blob
rill recall "architecture decisions" --k 5
rill entities --type project
echo '{"kind":"decision","summary":"Deployed Rill to production",
"project":"rill","author":"me"}' | rill rememberMemory tooling reaches full parity across the CLI, MCP, and REST surfaces —
anything an agent can do over MCP (remember, recall, merge-entity,
set-version, doc-put, …) has a rill subcommand and a REST route. Run
rill --help for the full list; tokens are managed in the web UI at /settings.
macOS sidecar — a native menu-bar companion (SwiftUI) for fast capture. Jot a memory, pick a kind, and save with ⌘↵ without leaving what you're doing; recent memories stay a glance away. It talks to the same REST API as the CLI.
MCP server — drop Rill into any MCP client (Claude Desktop, LM Studio, etc.) and your agents read and write the same memory:
{
"mcpServers": {
"rill": {
"url": "https://rill.example.com/mcp",
"headers": {
"Authorization": "Bearer rill_your_token_here"
}
}
}
}A default admin token is printed to server logs on first start. Manage tokens via the web UI at /settings. See DEPLOY.md for auth modes, proxy setup, and recovery procedures.
| Layer | Choice | Why |
|---|---|---|
| Language | Go 1.26 | Single binary, fast concurrency, small footprint |
| Database | SurrealDB 3.0 | Documents + graph + vectors in one engine |
| Frontend | SvelteKit 2 | Dark theme, OKLCH colors, instant HMR |
| Auth | Bearer tokens + RILL_AUTH_MODE | PATs for agents, local login or SSO for humans |
Under the hood, Rill stores each memory alongside the entities it mentions and links them into a graph; retrieval fuses vector similarity with full-text search, and a background curation pass clusters, dedups, and ages memories over time. You don't have to think about any of it — you store and search; Rill keeps the graph coherent.
- ARCHITECTURE.md — package structure, data flows, schema
- ROADMAP.md — feature milestones
- CHANGELOG.md — release history
MIT — see LICENSE.


