Omnibride
by DUYA-LABS
README.md
# Omnibride
**One shared memory for all your AI tools.**
You tell Claude Code that the repo uses pnpm. Tomorrow Cursor runs `npm install`. Codex has never heard of the
decision you made last week about storing prices in cents. Every AI tool starts every session knowing nothing.
Omnibride is one memory that Claude Code, Cursor, Codex, Claude Desktop, VS Code, Windsurf and any other
[MCP](https://modelcontextprotocol.io) client read from and write to. What one tool learns, the others know.
It runs on your own computer; your notes never leave it.
Open source, self-hosted, no account and no key needed. Built by [Duya Labs](https://duyalabs.xyz). MIT licensed.

**[Watch the 24-second demo](docs/media/omnibride-demo.mp4)**
| Connect a tool in one step | See which tool read or changed what |
| --- | --- |
|  |  |
## What your tools get
Six MCP tools:
| Tool | What it does |
|---|---|
| `get_context` | At the start of a task: the memories for this project and the global ones. Pinned memories and instructions come first, and the result never exceeds a fixed size (6,000 characters by default), however many memories you have. |
| `recall` | Search by keyword, and by meaning when an embedding service is configured. |
| `remember` | Save one short, durable statement. If an almost identical one exists, it is updated instead of duplicated. |
| `update_memory`, `forget` | Change or delete one by id (deleted memories stay in the bin for 30 days). |
| `list_projects` | The projects memories are grouped by. |
A tool tells Omnibride its working directory, and Omnibride maps it to a project by folder, so
`~/code/acme-shop/src` gets acme-shop's memories plus your global ones and nothing from other projects.
## Safe by design
- **Secrets are refused.** API keys, tokens, private keys, passwords and URLs with credentials are never stored,
because every connected tool can read every memory.
- **Memories are data, not orders.** Tools receive them marked as notes saved by your tools, with the source of
each one, never as instructions that override what you say.
- **You can see and undo everything.** The web page shows every memory, which tool saved it, and which tool read
it. When a new memory replaces a similar one, the old wording goes to the bin, so a wrong merge can be undone.
- **Local by default.** It listens on 127.0.0.1 only and answers only for `localhost`, IP addresses and host
names you allow, which blocks websites from reaching it through DNS rebinding. Tools connecting over HTTP
need their own token, which can be read-only and revoked on its own.
## Quick start
You need Node.js 22.13 or newer.
```bash
git clone https://github.com/DUYA-LABS/omnibride.git
cd omnibride
npm install
npm run build
npm start # http://localhost:3930
```
Open http://localhost:3930, create your account, then open **Connect a tool**. It shows the exact line to paste
for each tool, with the paths on your computer filled in. For Claude Code it is one command:
```bash
claude mcp add --scope user omnibride -- node /path/to/omnibride/dist/cli.js stdio --client claude-code
```
Memories live in `~/.omnibride/omnibride.db`. Tools start Omnibride themselves (`omnibride stdio`), and the web
page and every tool share that one database. Then ask your tool: *"What do you remember about this project?"*
To try it with sample memories first: `npm run demo` (prints a sign-in for the web page). Point `DATA_DIR` at a
new folder so the demo stays separate from your real memories.
### Search by meaning (optional)
Keyword search works out of the box. To also find memories by meaning ("how do we store money?" finds "prices
are integer cents"), set any OpenAI-compatible embeddings endpoint in `~/.omnibride/.env`:
```bash
EMBED_BASE_URL=http://localhost:11434/v1 # Ollama, free and local
EMBED_MODEL=nomic-embed-text
# or OpenAI (text-embedding-3-small), or NVIDIA's free API (nvidia/nemotron-3.5-embed-1b)
```
If the service is down, memories are still saved and searched by keyword, and they are indexed once it is back.
### With Docker
```bash
docker compose up -d --build # web page on http://localhost:3930, data in a volume
docker compose logs omnibride # shows the one-time setup code for creating your account
```
The compose file publishes the port on 127.0.0.1 only. Creating the owner account from anywhere other than the
computer Omnibride runs on (Docker counts as elsewhere) needs the setup code from the log, so nobody else on your
network can claim a fresh install.
Tools then connect over HTTP with a token from the **Connect a tool** page, because they cannot start a process
inside the container.
## How it is built
- Node 22 + TypeScript. SQLite (built into Node) with FTS5 for keyword search, and vectors stored next to each
memory for meaning search, merged by reciprocal rank fusion. Fine up to tens of thousands of memories.
- The official MCP TypeScript SDK: stdio for local tools, stateless Streamable HTTP at `/mcp` for the rest.
- Hono for the web API, React for the web page. One process, one database file, one Docker image.
Tested with unit tests, a real stdio session started the way a tool starts it, real embeddings, and a browser
journey through every page. See [docs/security.md](docs/security.md) for the threat model.
## Status
Version 0.1. It works across the tools above today. Not done yet: ChatGPT web connectors (they need a public HTTPS
address with OAuth) and shared team memory.
## Development
```bash
npm run dev # API with reload
npm test # unit tests
npm run typecheck
node test/e2e/stdio.mjs ~/.omnibride-demo/.env # real stdio session against a demo install
```
## License
MIT. See [LICENSE](LICENSE).