LabPersonal AI

Airlock

A private AI desk with two partners, one on your machine and one in the cloud. A local gate rules on every crossing, and every reply flags the numbers it made up.

Built for
Nebius × NVIDIA Global AI Hackathon, Personal AI track · 2026
Stack
  • Node
  • SQLite
  • Ollama
  • NVIDIA Nemotron
  • Nebius Token Factory
  • Tavily
Links
The Airlock desk: a local model on the left, a cloud model on the right, one shared conversation, and amber lines marking what crossed to the cloud.

The problem

Two questions started this: what leaves your machine, and where did that answer come from?

A personal AI is private until the first time it calls a bigger model. Most apps make that call invisibly. You paste an API key into a settings page, and from then on your notes travel with every question. You can’t tell what left, when, or to whom.

The second question came from watching small models work. In test runs, two local models invented sensor readings (“500 kPa”) and then listed them as “known for certain.” One named log files it had “written” when no files existed. A system-prompt rule against it, replayed at the exact moments it happened, changed nothing measurable. So Airlock stopped asking models to behave and started checking their work against the record instead.

The approach

Airlock is a desk with two AI participants sharing one conversation. One runs on your machine (NVIDIA Nemotron 3 Nano 4B through Ollama). The other can reach Nemotron 3 in the cloud through Nebius Token Factory. Everything you write stays local by default.

The boundary is the product. Before anything crosses to the cloud, a credential scanner checks it, then a separate local gate model rules on it. The gate has to be local: to ask a remote model whether something may leave, you’d have to send it first. That rule is enforced in code, since the gate refuses to run on a remote model. And it fails closed. If the gate is down, slow, or answers nonsense, nothing is sent.

Airlock withholding a message that contains a card number.

A card number on its way to the cloud side. The scanner caught it before any model read it, so nothing was sent.

Every crossing goes on a permanent record: messages, tool results, web searches, even a brief you carry out by hand. What has a cloud model ever seen? becomes a query instead of a guess. Delete a message and its words are erased from disk, but the record of where it went stays, because an audit trail you can edit away isn’t one.

Code checks the facts, not a model. Every reply is compared against the thread’s own record:

  • each number is traced to where it was first said (your message, a file a tool read, the calculator, or nowhere, in which case it’s underlined);
  • a calculator result keeps its underline if one of its inputs had no source. The sum is checked, the premise is not;
  • words copied from the other participant are dimmed;
  • a reply that names a file nobody opened, or claims a page it never fetched, is marked.

A small local model’s pizza-budget reply with provenance marks on its numbers.

A 4B model audits a pizza budget. Calculator results using your numbers stay plain; a figure it worked out in its head is underlined.

One door to the network. Only one file in the codebase may call fetch, and it refuses any content-bearing connection without a clearance the kernel issued for those exact words and that exact model. A test fails if any other file reaches the network.

What went wrong, and what it taught us

  • The gate was briefly running in the cloud. It picked its model from the app’s default, which was Nemotron on Token Factory whenever a key was present. Nothing failed, because a remote model answers the gate prompt perfectly well. It just answers after the content has already crossed. The gate now resolves a local model itself and refuses a remote one.
  • The gate blocked harmless questions because of our own prompt. Replaying false withholds from a copy of the database showed the gate was reading Airlock’s system prompt and judging it as the user’s. It now reads only what the user wrote. Three tuning rounds took friction on the tuning set from 12 of 32 to zero.
  • A fake test server is only as good as its strictness. The first real cloud tool call failed because our fake accepted messages the real validator rejected. The fake now validates as strictly as the real endpoint.

The lesson we keep: for small models, prefer a deterministic check over a prompt rule. And measure a gate both ways, by what it leaks and what it wrongly blocks, because a gate that blocks everything is safe and useless.

Result

  • No secret released on any test set, by any version of the gate prompt. The current prompt has 0 of 52 harmless cases withheld on the 99-case tuning set, and 1 of 5 on the latest held-out set, published rather than hidden.
  • About 860 assertions across twenty test suites; sixteen run offline on a clean clone, with fakes for both the cloud and Ollama.
  • Forked from Glimmer, our earlier local-first chat app, on September 11, 2026. The boundary, gate, kernel, crossing record, tools, and every provenance mark were built in about 80 commits after that.
  • Open source under Apache 2.0, with a 2:45 demo video.
Lab