Jankis
by lbergold-dev
README.md
<p align="center">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="jankis-logo/jankis-logo-dark.svg">
<img src="jankis-logo/jankis-logo.svg" alt="Jankis" width="380">
</picture>
</p>
# Jankis
[](https://github.com/lbergold-dev/jankis/actions/workflows/ci.yml)
**Stop introducing yourself to every AI.** Jankis gives all your AI apps one shared memory of
you: your preferences, your projects, the way you work. Tell ChatGPT on your phone about a new
project, and Claude Code knows it at your desk the next morning.
Self-hosted, free and open source, plain Markdown. Your memory, on your server, in your files.
## Why
I have always been fascinated by personal AI assistants like Jarvis in Iron Man, or, as the dark
version, HAL 9000 in *2001: A Space Odyssey*: one system that knows you and helps with
everything. Today's language models are held back by their context window. It is limited in
size, the more you put into it the less reliably they use it, and they do not learn from your
conversations in their weights.
Until a new architecture learns differently, Jankis is my bridge: keep using agents as tools,
in whatever app fits, but give all of them one memory that knows you, grows with every
conversation and stays in your hands.
## What you get
- **Explain once, every app knows it.** No more repeating the same context in every chat.
Jankis speaks MCP, the open standard for AI tools, so Claude, ChatGPT, Gemini, Claude Code,
Codex, Cursor and whatever comes next share one memory. Switch apps or providers whenever you
like: your memory comes along.
- **Sharper answers for fewer tokens.** Agents never dump your knowledge base into the context
window. They read a map with one line per note, open the right note and read only the
sections they need. Your memory can grow to hundreds of notes and an agent still reads just a
few of them: less cost, fewer usage limits hit, and better answers, because a model uses the
relevant part more reliably when its context is not stuffed.
- **A memory that keeps itself tidy.** Inspired by Andrej Karpathy's
[LLM wiki](https://gist.github.com/karpathy/442a6bf555914893e9891c11519de94f) idea: clear rules
for what is worth storing and where it goes, typed links between notes, topics that split
when they grow, finished things archived, a maintenance run when you ask for one and a daily
cleanup. It gets more useful with every conversation instead of becoming a junk drawer.
- **Truly yours, and safe.** Plain Markdown on your own server, readable in Obsidian, backed
up to your private GitHub repository every two hours. No vendor lock-in, no subscription,
nothing in someone else's cloud. Only your GitHub account gets in, no port is open, agents are
told to ignore instructions hidden in web pages or emails, and the server rejects passwords,
keys and card numbers.
- **Light.** Seven tools, no database, no AI inside the server, about 100 MB of RAM. It runs
on a 5 EUR server or on your own computer.
## How it works
```
Claude · ChatGPT · Gemini · Claude Code · Codex · Cursor · ...
│ MCP over HTTPS, login with your GitHub account
▼
Jankis server (yours) ──► vault: Markdown notes ──► private GitHub repo (backup)
```
An agent first reads the **map** (one line per note: summary and links), then the table of
contents of a relevant note, then only the sections it needs. Reading every file "just in
case" would fill the context window with things that do not matter for the question.
Writes are checked: a stale write is rejected, sensitive data is rejected, every change is
logged. The rules for agents live in the tool descriptions, so every app gets them.
## Get started
**Server mode (recommended):** all apps, also on your phone and in ChatGPT and Gemini. Needs a
small Ubuntu server (about 5 EUR a month), a free Tailscale account and GitHub. About an hour.
→ [docs/server.md](docs/server.md)
**It can also be free.** Instead of renting a server, an old laptop or mini PC at home that stays
switched on will do: Tailscale reaches it without opening a port on your router, so only
electricity costs remain. The guide and `deploy/setup.sh` are tested on a rented Ubuntu server;
a machine at home is not tested yet → [Other devices](docs/server.md#other-devices).
Or let your coding agent (Claude Code, Codex, Cursor) do it with you:
```text
Set up Jankis (https://github.com/lbergold-dev/jankis) on my Ubuntu server <SERVER_IP> by following docs/server.md. Run deploy/setup.sh from a local clone again after each step. When a step needs me (a browser, an account, a value), tell me exactly what to do and wait. Finish only when `jankis check` passes and the outside test answers 401.
```
**Local mode:** five minutes, free, but only for desktop agents on the same computer.
→ [docs/local.md](docs/local.md)
**Then connect your apps** and add one paragraph to their personal instructions, so agents use
Jankis by themselves → [docs/clients.md](docs/clients.md)
| Tested | Not tested yet (presets exist) |
|---|---|
| Claude (web, desktop, iPhone, iPad), Claude Code (via claude.ai or its own config), ChatGPT, Gemini app, Antigravity, VS Code / Copilot (local mode) | Codex, Cursor, VS Code with login (server mode) |
## Why not just ...?
**... the built-in memory of each app?** It stays inside that app: what ChatGPT remembers,
Claude and Gemini never see. It is a list of short entries that the app picks and condenses on
its own, without links between topics, and its space is limited: ChatGPT's saved memories, for
example, stop at a fixed size ("Memory full"). Jankis is one memory for all of them: linked
notes that can grow to hundreds without filling the context window, readable and editable as
files, in your hands.
**... a memory plugin or connector made for one app?** Then your memory works only where that
plugin exists, and switching apps means starting over. Jankis uses MCP, the open standard that
Claude, ChatGPT, Gemini and the common coding agents accept as a custom connector, so all of
them share the same memory, and so will the next app that speaks MCP.
**... point a local agent at my Obsidian vault?** That is simpler and a good start: no server,
and you edit everything in Obsidian. Jankis adds what a plain folder lacks:
- it works from your phone and from cloud apps (ChatGPT, Gemini, Claude on the web), not only
on the computer where the files are;
- agents read a map and single sections instead of listing folders and opening whole files,
so they spend their context window on what matters;
- every agent follows the same rules for what to store and where, with typed links, dates,
expiry and archive, instead of each one inventing its own;
- the server guards every write: stale edits are rejected, secrets are filtered, every change is
logged and backed up with Git.
**... another memory tool?** There are good ones, and Jankis learned from several of them. It
aims to be the lean choice: free and open source, self-hosted on a small server or your own
computer, about 100 MB of RAM, plain files instead of a database, and still everything a
personal memory needs: every app, a navigable graph, rules that agents follow, and backups.
## Security
Only your GitHub account (checked by its numeric ID on every request), only the apps you allow,
no open port, a hardened service, and filters for secrets. What Jankis does not protect against
is just as important: [docs/security.md](docs/security.md).
## Development
```bash
uv sync
uv run pytest
uv run ruff format && uv run ruff check
```
Issues and pull requests are welcome, especially tested guides for other systems and better
personal instructions for apps.
## License
[Apache-2.0](LICENSE)
## About
Built by [Leonhard Bergold](https://www.linkedin.com/in/leonhard-bergold/), AI student, as a
step towards a personal AI that really knows you.
The name comes from Sammy Jankis in the film Memento, a man who cannot form new memories.
Neither can today's AI models; Jankis keeps the notes for them.
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessOutdated data