- Connect
- Claude Code
Keep Claude Code aligned across long projects.
Claude Code forgets when the session ends. Connect Bilinc once and it can recall the decisions your repos already made before it edits, and keep what each session settled, with where it came from and every earlier version.
Set it up.
Claude Code connects to the hosted server at https://mcp.bilinc.space/mcp and signs in with OAuth, so there is no key to copy.
- Add the connector for every project. One command adds the hosted server at user scope, so Bilinc follows you across projects.
Terminal claude mcp add --transport http --scope user bilinc https://mcp.bilinc.space/mcp - Sign in. Then run
/mcp, pick bilinc and choose Authenticate. Bilinc opens in your browser to sign you in. On the approval screen you choose the workspace and whether the connection is read-only or read and write. - Tell Claude Code how to use it. Paste the memory contract below into
CLAUDE.md, or into the project instructions you already keep.
Or use the local adapter
If you would rather keep a key on your machine, install the package, sign in, and let bilinc mcp install add the local adapter for every project.
pip install -U bilinc
bilinc login
eval "$(bilinc mcp install --client claude-code)"What it changes for Claude Code.
A Claude Code session starts with what the repo, the chat and CLAUDE.md tell it. Decisions made in earlier sessions, why a migration was rolled back, which flag is safe to remove, live in someone's head or in a long thread nobody reopens. With Bilinc connected, Claude Code can ask for them before it starts: recall returns each memory with its source, when it was last written or confirmed, and its version.
Writes stay careful. remember only creates new keys, so a new session cannot silently replace what an earlier one stored. Changing a memory goes through revise, and in Claude, revising, forgetting and rolling back always ask you first. Every change is versioned, so you can compare the workspace with a checkpoint and go back to it.
Because the connector is added at user scope, the same memory is there in every project you open. Connect Claude on the web, the desktop or your phone to the same workspace and they recall it too.
Things to ask.
Ask in your own words; the agent picks the Bilinc tool that fits.
- “Check Bilinc: what did we decide about the billing database, and why?”
- “Before this refactor, create a Bilinc snapshot so we can go back to it.”
- “Diff Bilinc against this morning's snapshot and tell me what changed.”
- “Remember the outcome of this session: what changed, how we verified it, and the caveats. Leave out secrets.”
The memory contract
Paste this into the instructions Claude Code reads, so it recalls before it acts and keeps only what is worth keeping.
Use Bilinc Cloud for durable project memory.
Before editing, recall prior architecture, billing, auth, and deployment decisions.
After the run, commit only reusable outcomes and verification notes.
Never store secrets or raw customer data.What Claude can do, and when it asks.
The connector’s tools, as the remote MCP guide lists them. A read-only connection only sees the four read tools.
| Tool | What it does | Access |
|---|---|---|
recall | Search memory; each result carries its source, last update and version, and a marker when it is past its review window. | read, runs without asking |
list_snapshots | List saved checkpoints. | read, runs without asking |
diff | Compare a checkpoint with the current state or another checkpoint. | read, runs without asking |
status | Workspace, plan, credits and whether this connection can write. | read, runs without asking |
remember | Store a new memory. Never overwrites an existing key. | write, runs without asking |
create_snapshot | Save a checkpoint of the whole workspace. | write, runs without asking |
preview_rollback | Show what a rollback would change and issue a confirmation token. | write access, changes nothing |
revise | Replace a memory, or confirm it by sending the same value; the old value stays in history. | write, Claude asks first |
forget | Remove a memory from recall, with a recorded reason. | write, Claude asks first |
rollback | Restore a checkpoint using the preview token. | write, Claude asks first |
dream_start | Start tidying memory: the entries changed since the last dream, for Claude to review. | write, runs without asking |
dream_apply | Merge duplicates, retire stale entries, keep or flag the rest; undo with dream_undo. | write, Claude asks first |
dream_undo | Undo a dream's own changes in one step, for 7 days. | write, Claude asks first |
Questions.
Doesn't Claude Code already remember things?
It does, on one machine. CLAUDE.md holds the instructions you write, and auto memory holds notes Claude writes for itself; Anthropic's memory docs call auto memory machine-local, not shared across machines or cloud environments. Bilinc holds what every machine and agent should share, with who wrote it and every earlier version. The Claude Code memory guide, linked at the top of this page, covers both.
Does Claude Code need an API key for Bilinc?
Not with the connector. You sign in once through /mcp and Authenticate, and Claude Code keeps the connection. The local adapter reads the key that bilinc login saved on your machine; only a machine without a saved key needs BILINC_API_KEY.
Should I use the connector or the local adapter?
The connector is the recommended path: one command, an OAuth sign-in and no key on disk. The local adapter runs as a stdio process through the bilinc package, for setups that prefer a key kept on the machine. Both reach the same hosted workspace.
Can Claude Code overwrite a memory by mistake?
remember only creates new keys. Changing an existing memory goes through revise, which can require the version you last read, so a change made elsewhere is never overwritten unseen. Claude asks before revising, forgetting or rolling back, and the earlier version stays in the history.
How do I undo a bad run?
Create a snapshot before risky work. If a run writes something wrong, diff shows what changed since that checkpoint, and rollback restores the workspace to it after a preview you confirm. Rollback works on checkpoints, not on single keys.
What does Claude Code send to Bilinc?
What it puts into the tools it calls: memory keys, values, queries and checkpoint ids. Claude Code decides what goes into a value, so whatever it writes into a memory is sent; your session is not streamed to Bilinc. You can disconnect it at any time under Connected apps in the dashboard.
Bilinc connects the same way everywhere.
One workspace, every client. The memory guides and comparisons answer the questions underneath.